g / gpt
Renzhem's picture
yes
68ff802
raw
history blame contribute delete
165 Bytes
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("gpt2")
model = AutoModelForCausalLM.from_pretrained("gpt2")