Transformers
Back to all models
Model: openai-gpt

Monthly model downloads

openai-gpt openai-gpt
- downloads
last 30 days

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

			
Copy model
tokenizer = AutoTokenizer.from_pretrained("openai-gpt") model = AutoModel.from_pretrained("openai-gpt")

Config

See raw config file
afn: "gelu" ...
attn_pdrop: 0.1 ...
embd_pdrop: 0.1 ...
initializer_range: 0.02 ...
layer_norm_epsilon: 0.00001 ...
n_ctx: 512 ...
n_embd: 768 ...
n_head: 12 ...
n_layer: 12 ...
n_positions: 512 ...
n_special: 0 ...
resid_pdrop: 0.1 ...
vocab_size: 40478 ...