File size: 183 Bytes
99b6635
 
 
 
1
2
3
4
5
from transformers import GPT2Config

config = GPT2Config.from_pretrained("gpt2-medium", resid_pdrop=0.0, embd_pdrop=0.0, attn_pdrop=0.0, vocab_size=50257)
config.save_pretrained(".")