Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
imthanhlv
/
vigpt2medium
like
1
Text Generation
Transformers
PyTorch
JAX
gpt2
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
15
Train
Deploy
Use this model
5ac8697
vigpt2medium
/
flax_to_pt.py
imthanhlv
add torch model
56d26ba
almost 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(
"."
)