Transformers
Back to all models
Model: gpt2-medium

Monthly model downloads

gpt2-medium gpt2-medium
- downloads
last 30 days

pytorch

tf

How to use this model directly from the πŸ€—/transformers library:

			
Copy model
tokenizer = AutoTokenizer.from_pretrained("gpt2-medium") model = AutoModel.from_pretrained("gpt2-medium")

Config

See raw config file
attn_pdrop: 0.1 ...
embd_pdrop: 0.1 ...
initializer_range: 0.02 ...
layer_norm_epsilon: 0.00001 ...
n_ctx: 1024 ...
n_embd: 1024 ...
n_head: 16 ...
n_layer: 24 ...
n_positions: 1024 ...
n_special: 0 ...
predict_special_tokens: true ...
resid_pdrop: 0.1 ...
vocab_size: 50257 ...