Downloads · 30 days
153
2% of all-time downloads
SiberiaSoft/ruGPT3_medium_chitchat
ruGPT3_medium_chitchat is a text generation model from SiberiaSoft. 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
153
2% of all-time downloads
All-time downloads
8.7K
Public
Repo size
3 GB
Likes
6
Public
Click a slice to open those files.
.bin1.5 GB · 100%
From the Hugging Face model README
Модель русскозычного чат бота, работающая в режиме чит-чат (без контекста предыдущих сообщений)
Пример работы с моделью:
import torch
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained('SiberiaSoft/ruGPT3_medium_chitchat')
model = AutoModelWithLMHead.from_pretrained('SiberiaSoft/ruGPT3_medium_chitchat')
inputs = tokenizer('[FIRST] Привет [SECOND]', return_tensors='pt')
generated_token_ids = model.generate(
**inputs,
top_k=10,
top_p=0.95,
num_beams=3,
num_return_sequences=5,
do_sample=True,
no_repeat_ngram_size=2,
temperature=1.0,
repetition_penalty=1.2,
length_penalty=1.0,
eos_token_id=50257,
max_length = 400
)
generation = [tokenizer.decode(sample_token_ids) for sample_token_ids in generated_token_ids]
print(generation)