Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
imthanhlv
/
gpt2news
like
1
Text Generation
Transformers
PyTorch
JAX
Vietnamese
gpt2
gpt
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
8
Train
Deploy
Use this model
f7f3419
gpt2news
/
create_config.py
imthanhlv
added config
9c0b1aa
over 3 years ago
raw
Copy download link
history
blame
Safe
200 Bytes
from
transformers
import
GPT2Config
model_dir =
"."
# ${MODEL_DIR}
config = GPT2Config.from_pretrained(
"gpt2"
, resid_pdrop=
0.0
, embd_pdrop=
0.0
, attn_pdrop=
0.0
)
config.save_pretrained(model_dir)