Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
imthanhlv
/
gpt2news
like
1
Text Generation
Transformers
PyTorch
JAX
Vietnamese
gpt2
gpt
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
8
Train
Deploy
Use this model
refs/pr/5
gpt2news
/
flax_to_pt.py
imthanhlv
Saving weights and logs of step 37500
1f656b0
over 3 years ago
raw
Copy download link
history
blame
Safe
147 Bytes
from
transformers
import
AutoModelForCausalLM
pt_model = AutoModelForCausalLM.from_pretrained(
'.'
, from_flax=
True
)
pt_model.save_pretrained(
"."
)