File size: 534 Bytes
cc131d8
 
 
 
7621038
cc131d8
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from dataclasses import dataclass

@dataclass
class ViuAIConfig:
    vocab_size: int = 64009
    d_model: int = 1280
    n_layers: int = 24
    n_heads: int = 20
    n_kv_heads: int = 4
    ffn_hidden: int = 3456
    context_length: int = 2048
    rope_theta: float = 10000.0
    norm_eps: float = 1e-5
    z_loss_weight: float = 1e-4    # set to 0.0 during SFT
    use_checkpoint: bool = True
    attn_dropout: float = 0.0      # 0.0 for pretraining, 0.1 for SFT
    resid_dropout: float = 0.0     # 0.0 for pretraining, 0.1 for SFT