Text Generation
Not-For-All-Audiences
ChatR / Gpt-2
ImRasul1's picture
Create Gpt-2
eaa1ed2 verified
raw
history blame contribute delete
268 Bytes
from transformers import AutoTokenizer, AutoModelForCausalLM
# Загрузка модели (замените 'gpt2' на нужную)
model_name = "gpt2"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)