Upload config.yaml to L56-D1920-qwen_mamba2_qwen2-e1-i1920-s256-hd64-gn6-A0-S4096-step1-rand2b
Browse files- config.yaml +125 -0
config.yaml
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
!!python/object/new:configs.Config
|
| 2 |
+
dictitems:
|
| 3 |
+
model: !!python/object/new:configs.Config
|
| 4 |
+
dictitems:
|
| 5 |
+
__type__: configs.Transformer_Config
|
| 6 |
+
alibi: null
|
| 7 |
+
attention_type: mamba2
|
| 8 |
+
attn_classes_path: transformers.models.qwen2.modeling_qwen2.QWEN2_ATTENTION_CLASSES
|
| 9 |
+
attn_path: rwkv6attn.RWKV6Attention
|
| 10 |
+
balance_state: 0
|
| 11 |
+
brope: null
|
| 12 |
+
classname: qwen2
|
| 13 |
+
cmix: x060
|
| 14 |
+
cmix2: x060
|
| 15 |
+
ctx_len: 4096
|
| 16 |
+
dim_att: 0
|
| 17 |
+
dim_ffn: 4800
|
| 18 |
+
dropout: 0.0
|
| 19 |
+
eos_token_id: 2
|
| 20 |
+
gate_rank_type: 0
|
| 21 |
+
gdn: !!python/object/new:configs.Config
|
| 22 |
+
dictitems:
|
| 23 |
+
__type__: configs.GDN_Config
|
| 24 |
+
expand_v: 2
|
| 25 |
+
head_dim: 64
|
| 26 |
+
num_heads: 6
|
| 27 |
+
num_v_heads: 6
|
| 28 |
+
groupnorm_att: 0
|
| 29 |
+
head_size: 64
|
| 30 |
+
head_size_divisor: 8
|
| 31 |
+
hf_cfg: null
|
| 32 |
+
hf_path: ''
|
| 33 |
+
inv_other_layer_ratio: 1
|
| 34 |
+
kv_cache_compression_ratio: 16
|
| 35 |
+
lora_rank_decay: 0
|
| 36 |
+
lora_rank_gate: 0
|
| 37 |
+
lora_rank_iclr: 0
|
| 38 |
+
lora_rank_tokenshift: 0
|
| 39 |
+
lora_rank_value_residual_mix: 0
|
| 40 |
+
mamba: !!python/object/new:configs.Config
|
| 41 |
+
dictitems:
|
| 42 |
+
__type__: configs.Mamba_Config
|
| 43 |
+
attn_layer_indices: []
|
| 44 |
+
d_conv: 4
|
| 45 |
+
d_inner: 1920
|
| 46 |
+
d_state: 256
|
| 47 |
+
expand: 1
|
| 48 |
+
headdim: 64
|
| 49 |
+
ngroups: 6
|
| 50 |
+
n_embd: 1920
|
| 51 |
+
n_layer: 56
|
| 52 |
+
num_key_value_heads: 6
|
| 53 |
+
parallel: 0
|
| 54 |
+
preserve_last_n_layers: 0
|
| 55 |
+
reinit_att: 0
|
| 56 |
+
rms_norm_eps: 1.0e-06
|
| 57 |
+
rope: !!python/object/new:configs.Config
|
| 58 |
+
dictitems:
|
| 59 |
+
__type__: configs.RoPE_Config
|
| 60 |
+
base: 490000.0
|
| 61 |
+
rebase: 1.0
|
| 62 |
+
rescale: 1.0
|
| 63 |
+
tie_word_embeddings: false
|
| 64 |
+
tmix: qwen_mamba2
|
| 65 |
+
tmix2: qwen2
|
| 66 |
+
use_pos_emb: 1
|
| 67 |
+
use_tokenshift: 1
|
| 68 |
+
vocab_padding_idx: 102
|
| 69 |
+
vocab_size: 99000
|
| 70 |
+
runtime: !!python/object:configs.Runtime_Config
|
| 71 |
+
epoch_count: 999999999
|
| 72 |
+
epoch_global_steps: 999999999
|
| 73 |
+
global_step_bsz: 32
|
| 74 |
+
my_pile_prev_p: 0
|
| 75 |
+
my_timestamp: 2025-09-24-15-53-42
|
| 76 |
+
proj_path: out/L56-D1920-qwen_mamba2_qwen2-e1-i1920-s256-hd64-gn6-A0-S4096--step1-rand2b
|
| 77 |
+
run_name: 'qwen_mamba2_qwen2 L56 D1920 ctx4096 '
|
| 78 |
+
train: !!python/object/new:configs.Config
|
| 79 |
+
dictitems:
|
| 80 |
+
accelerator: gpu
|
| 81 |
+
accumulate_grad_batches: 1
|
| 82 |
+
adam_eps: 1.0e-08
|
| 83 |
+
attention_distillation_stage: 1
|
| 84 |
+
beta1: 0.9
|
| 85 |
+
beta2: 0.95
|
| 86 |
+
check_val_every_n_epoch: 1
|
| 87 |
+
data_file: ../cache/datasets/huggingface/Teaven/Selection/yulan-random2b/YuLan-Mini/data
|
| 88 |
+
data_type: binidx
|
| 89 |
+
devices: 8
|
| 90 |
+
ds_bucket_mb: 200
|
| 91 |
+
epoch_begin: 0
|
| 92 |
+
epoch_save: 5
|
| 93 |
+
grad_cp: 0
|
| 94 |
+
gradient_clip_val: 1.0
|
| 95 |
+
layerwise_lr: 1
|
| 96 |
+
load_model: out/YuLanMini-2.4B.pth
|
| 97 |
+
load_partial: 1
|
| 98 |
+
log_every_n_steps: 50
|
| 99 |
+
lr2_final: -1
|
| 100 |
+
lr2_init: -1
|
| 101 |
+
lr_decay_type: cos
|
| 102 |
+
lr_endpoint: 1.0
|
| 103 |
+
lr_final: 1.0e-05
|
| 104 |
+
lr_init: 0.001
|
| 105 |
+
lr_wait: 0.0
|
| 106 |
+
magic_prime: 451961
|
| 107 |
+
micro_bsz: 4
|
| 108 |
+
my_exit_tokens: 1851236987
|
| 109 |
+
num_nodes: 1
|
| 110 |
+
optimizer: dsfusedadamw
|
| 111 |
+
precision: bf16
|
| 112 |
+
proj_dir: out
|
| 113 |
+
proj_name: L56-D1920-qwen_mamba2_qwen2-e1-i1920-s256-hd64-gn6-A0-S4096
|
| 114 |
+
proj_suffix: step1-rand2b
|
| 115 |
+
proj_suffix0: ''
|
| 116 |
+
seed_everything: 1337
|
| 117 |
+
strategy: deepspeed_stage_1
|
| 118 |
+
teacher: null
|
| 119 |
+
train_stage: 3
|
| 120 |
+
val_check_interval: null
|
| 121 |
+
validation_data_file: ''
|
| 122 |
+
wandb: block-distill
|
| 123 |
+
warmup_steps: 50
|
| 124 |
+
weight_decay: 0
|
| 125 |
+
weight_decay_final: -1.0
|