Transformers
Back to all models
Model: gpt2

Monthly model downloads

gpt2 gpt2
- downloads
last 30 days

pytorch

tf

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

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

Config

See raw config file
initializer_range: 0.02 ...
layer_norm_epsilon: 0.00001 ...
n_ctx: 1024 ...
n_embd: 768 ...
n_head: 12 ...
n_layer: 12 ...
n_positions: 1024 ...
vocab_size: 50257 ...