literary-lm / config.json
khulnasoft's picture
Add files using upload-large-folder tool
f608ef3 verified
{
"model_type": "gpt2",
"architecture": "GPT2LMHeadModel",
"vocab_size": 32000,
"n_positions": 1024,
"n_ctx": 1024,
"n_embd": 768,
"n_layer": 12,
"n_head": 12,
"activation_function": "gelu_new",
"resid_pdrop": 0.1,
"embd_pdrop": 0.1,
"attn_pdrop": 0.1,
"layer_norm_epsilon": 1e-5,
"initializer_range": 0.02,
"summary_type": "cls_index",
"summary_use_proj": true,
"summary_activation": null,
"summary_proj_to_labels": true,
"summary_first_dropout": 0.1,
"bos_token_id": 1,
"eos_token_id": 2,
"task_specific_params": {
"text-generation": {
"do_sample": true,
"max_length": 512,
"temperature": 0.8,
"top_p": 0.9
}
}
}