Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
keshan
/
sinhala-gpt2
like
1
Text Generation
Transformers
PyTorch
google-tensorflow
TensorFlow
JAX
TensorBoard
mc4
Sinhala
gpt2
feature-extraction
Sinhala
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Metrics
Training metrics
Community
1
Train
Deploy
Use this model
ced582d
sinhala-gpt2
/
config.py
keshan
Saving weights and logs of step 10
5339b17
over 3 years ago
raw
Copy download link
history
blame
Safe
194 Bytes
from
transformers
import
GPT2Config
model_dir =
"./sihala-gpt2"
config = GPT2Config.from_pretrained(
"gpt2"
, resid_pdrop=
0.0
, embd_pdrop=
0.0
, attn_pdrop=
0.0
)
config.save_pretrained(model_dir)