Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
papuGaPT2
like
12
Follow
Flax Community
391
Text Generation
Transformers
PyTorch
JAX
TensorBoard
Polish
Model card
Files
Files and versions
xet
Metrics
Training metrics
Community
18
Deploy
Use this model
refs/pr/7
papuGaPT2
/
create_config.py
dkleczek
praying now
7848bdf
almost 5 years ago
raw
Copy download link
history
blame
Safe
197 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)