Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
flax-community
/
gpt2-base-thai
like
10
Follow
Flax Community
321
Text Generation
Transformers
PyTorch
JAX
TensorBoard
oscar
Thai
gpt2
gpt2-base-thai
text-generation-inference
Inference Endpoints
License:
mit
Model card
Files
Files and versions
Metrics
Training metrics
Community
1
Train
Deploy
Use this model
refs/pr/1
gpt2-base-thai
/
create_config.py
w11wo
tokenizer and config
0538a72
over 3 years ago
raw
Copy download link
history
blame
Safe
189 Bytes
from
transformers
import
GPT2Config
model_dir =
"./"
config = GPT2Config.from_pretrained(
"gpt2"
, resid_pdrop=
0.0
, embd_pdrop=
0.0
, attn_pdrop=
0.0
)
config.save_pretrained(model_dir)