File size: 491 Bytes
ff017bf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
---
### 2. config.json
This file defines your model’s architecture and hyperparameters. (Below is an example based on GPT‑2.)
```json
{
"architectures": [
"GPT2LMHeadModel"
],
"activation_function": "gelu_new",
"attn_pdrop": 0.1,
"bos_token_id": 50256,
"eos_token_id": 50256,
"hidden_dropout": 0.1,
"initializer_range": 0.02,
"model_type": "gpt2",
"n_ctx": 1024,
"n_embd": 768,
"n_head": 12,
"n_layer": 12,
"n_positions": 1024,
"resid_pdrop": 0.1
}
|