Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
dkleczek
/
papuGaPT2
like
0
Text Generation
Transformers
PyTorch
JAX
TensorBoard
Polish
gpt2
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Metrics
Training metrics
Community
1
Train
Deploy
Use this model
3b456c2
papuGaPT2
/
convert_to_pytorch.py
dkleczek
Copying papuGaPT2 Flax model repo
3b456c2
about 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(
"./"
)