Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
gpt2-medium-indonesian
like
6
Follow
Flax Community
327
Text Generation
Transformers
PyTorch
JAX
TensorBoard
Indonesian
gpt2
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Metrics
Training metrics
Community
6
Train
Deploy
Use this model
c9bc4ca
gpt2-medium-indonesian
/
jax2torch.py
cahya
add config
aa4d81d
over 3 years ago
raw
Copy download link
history
blame
Safe
210 Bytes
from
transformers
import
GPT2Config, GPT2LMHeadModel
'''
This is a script to convert the Jax model to Pytorch model
'''
model = GPT2LMHeadModel.from_pretrained(
"."
, from_flax=
True
)
model.save_pretrained(
"."
)