Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
papuGaPT2
like
10
Follow
Flax Community
322
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
refs/pr/4
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)