Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Renzhem
/
g
like
0
License:
cc
Model card
Files
Files and versions
Community
Renzhem
commited on
Nov 18, 2022
Commit
68ff802
•
1 Parent(s):
2a6b00f
yes
Browse files
Files changed (1)
hide
show
gpt
+5
-0
gpt
ADDED
Viewed
@@ -0,0 +1,5 @@
1
+
from transformers import AutoTokenizer, AutoModelForCausalLM
2
+
3
+
tokenizer = AutoTokenizer.from_pretrained("gpt2")
4
+
5
+
model = AutoModelForCausalLM.from_pretrained("gpt2")