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") |
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") |