Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
flax-community
/
papuGaPT2
like
9
Follow
Flax Community
318
Text Generation
Transformers
PyTorch
JAX
TensorBoard
Polish
Inference Endpoints
Model card
Files
Files and versions
Metrics
Training metrics
Community
18
Train
Deploy
Use this model
d6a25cb
papuGaPT2
/
create_config.py
dkleczek
praying now
7848bdf
over 3 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)