Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
imthanhlv
/
vigpt2medium
like
1
Text Generation
Transformers
PyTorch
JAX
gpt2
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
15
Train
Deploy
Use this model
refs/pr/12
vigpt2medium
/
create_config.py
imthanhlv
first commit
99b6635
almost 3 years ago
raw
Copy download link
history
blame
Safe
183 Bytes
from
transformers
import
GPT2Config
config = GPT2Config.from_pretrained(
"gpt2-medium"
, resid_pdrop=
0.0
, embd_pdrop=
0.0
, attn_pdrop=
0.0
, vocab_size=
50257
)
config.save_pretrained(
"."
)