irish-gpt2 / create_gpt2_config.py
James Barry
Create create_gpt2_config.py
d52d853
raw
history blame
210 Bytes
from transformers import GPT2Config
language="irish"
config = GPT2Config.from_pretrained("gpt2", resid_pdrop=0.0, embd_pdrop=0.0, attn_pdrop=0.0, vocab_size=50257)
config.save_pretrained(f"./{language}-gpt2")