Downloads · 30 days
12
1% of all-time downloads
memeai/cheburek-davinci-1
cheburek-davinci-1 is a text generation model from memeai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
12
1% of all-time downloads
All-time downloads
820
Public
Repo size
1.4 GB
Likes
2
Public
Click a slice to open those files.
.bin702 MB · 100%
From the Hugging Face model README
Модель опубликована под лицензией MIT!
from transformers import GPT2LMHeadModel, GPT2Tokenizer
model_name_or_path = "путь до папки с моделью"
tokenizer = GPT2Tokenizer.from_pretrained(model_name_or_path)
model = GPT2LMHeadModel.from_pretrained(model_name_or_path).cuda()
input_ids = tokenizer.encode(message.content, return_tensors="pt").cuda()
out = model.generate(input_ids.cuda(), repetition_penalty=5.0, do_sample=True, top_k=5, top_p=0.95, temperature=1)
generated_text = list(map(tokenizer.decode, out))
print(generated_text[0])
Пока их нет! Но если ты хочешь добавить смешной случай открывай pull request