File size: 253 Bytes
66f1733
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import time
from transformers import AutoConfig, AutoTokenizer, AutoModelForCausalLM

start = time.time()
model = AutoModelForCausalLM.from_pretrained("tcmmichaelb139/gpt2-medium-tinystories")
print(model)

print("Loaded model in", time.time() - start)