sundanese-gpt2-base / create_config.py
w11wo's picture
config and tokenizer
f5e3080
raw
history blame contribute delete
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)