Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
papuGaPT2
like
10
Follow
Flax Community
327
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/12
papuGaPT2
/
convert_to_pytorch.py
dkleczek
praying now
7848bdf
over 3 years ago
raw
Copy download link
history
blame
Safe
155 Bytes
#!/usr/bin/env python3
from
transformers
import
GPT2LMHeadModel
model = GPT2LMHeadModel.from_pretrained(
"./"
, from_flax=
True
)
model.save_pretrained(
"./"
)