Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
flax-community
/
gpt2-base-thai
like
10
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
f87acc5
gpt2-base-thai
/
create_config.py
w11wo
tokenizer and config
0538a72
about 3 years ago
raw
Copy download link
history
blame
No virus
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)