Downloads · 30 days
25
1% of all-time downloads
radm/rugpt3medium-tathagata
rugpt3medium-tathagata is a text generation model from radm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is the model for text generation for Russian based on rugpt3mediumbasedongpt2. Тhis model was trained and run to generate text on RTX 3080
Downloads · 30 days
25
1% of all-time downloads
All-time downloads
1.8K
Public
Parameters
457M
3 GB on disk
Likes
3
Public
Click a slice to open those files.
.bin1.5 GB · 50%
How the weights are stored.
F32356M · 78%
From the Hugging Face model README
This is the model for text generation for Russian based on rugpt3medium_based_on_gpt2.
Тhis model was trained and run to generate text on RTX 3080
from transformers import GPT2LMHeadModel, GPT2Tokenizer
import torch
DEVICE = torch.device("cuda:0")
model_name_or_path = "radm/rugpt3medium-tathagata"
tokenizer = GPT2Tokenizer.from_pretrained("sberbank-ai/rugpt3medium_based_on_gpt2")
model = GPT2LMHeadModel.from_pretrained(model_name_or_path).to(DEVICE)
text = "В чем смысл жизни?\n"
input_ids = tokenizer.encode(text, return_tensors="pt").to(DEVICE)
model.eval()
with torch.no_grad():
out = model.generate(input_ids,
do_sample=True,
num_beams=4,
temperature=1.1,
top_p=0.9,
top_k=50,
max_length=250,
min_length=50,
early_stopping=True,
no_repeat_ngram_size=2
)
generated_text = list(map(tokenizer.decode, out))[0]
print()
print(generated_text)
Dataset based on summaries of major Buddhist, Hindu and Advaita texts such as:
Dataset link: tathagata