xfxcwynlc's picture
Add fresh SFT and resume guide, original model config and dry-run launcher
841ed93 verified
Raw History Blame Contribute Delete
2.88 kB
MODEL_ARGS:
--use-distributed-optimizer: true
--dist-ckpt-optim-fully-reshardable: true
--overlap-grad-reduce: true
--overlap-param-gather: true
--optimizer: muon
--muon-momentum: 0.95
--muon-num-ns-steps: 5
--muon-matched-adamw-rms: 0.2
--muon-ns-num-head-groups: 4
--use-mcore-models: true
--sequence-parallel: true
--use-flash-attn: false
--disable-bias-linear: true
--no-save-optim: false
--no-check-for-nan-in-loss-and-grad: false
--cross-entropy-loss-fusion: true
--cross-entropy-fusion-impl: native
--manual-gc: true
--manual-gc-interval: 10
--transformer-impl: transformer_engine
--no-masked-softmax-fusion: false
--num-layers: 12
--hidden-size: 1280
--ffn-hidden-size: 7168
--num-attention-heads: 16
--kv-channels: 128
--max-position-embeddings: 131072
--position-embedding-type: rope
--rotary-base: 1600000
--make-vocab-size-divisible-by: 3232
--normalization: RMSNorm
--norm-epsilon: 1e-6
--swiglu: true
--untie-embeddings-and-output-weights: true
--multi-latent-attention: true
--use-sandwich-norm: true
--attn-post-norm-scale: 0.003
--ffn-post-norm-scale: 0.003
--attention-dropout: 0.0
--hidden-dropout: 0.0
--clip-grad: 1.0
--weight-decay: 0.1
--qk-layernorm: true
--adam-beta1: 0.9
--adam-beta2: 0.95
--num-experts: 64
--moe-layer-freq: ([0]*1+[1]*11)
--moe-ffn-hidden-size: 896
--moe-shared-expert-intermediate-size: 1792
--moe-router-load-balancing-type: seq_aux_loss
--moe-router-topk: 6
--moe-grouped-gemm: true
--moe-aux-loss-coeff: 1e-4
--moe-router-topk-scaling-factor: 2.5
--moe-router-score-function: sigmoid
--moe-router-enable-expert-bias: true
--moe-router-bias-update-rate: 1e-3
--moe-router-dtype: fp32
--moe-permute-fusion: true
--moe-router-fusion: true
--moe-token-dispatcher-type: alltoall
--moe-layer-recompute: false
--q-lora-rank: 384
--kv-lora-rank: 512
--qk-head-dim: 128
--qk-pos-emb-head-dim: 64
--v-head-dim: 128
--rotary-scaling-factor: 1.0
--mscale: 1.0
--mscale-all-dim: 0.0
--mtp-num-layers: 1
--mtp-loss-scaling-factor: 0.0
--mtp-log-accuracy: false
--log-output-health: true
--log-max-attention-logit: false
--moe-swiglu-max-monitor: true
--enable-grad-spike-monitor: true
--activation-stats-monitor: true
--activation-stats-interval: 100
--mhc-num-streams: 4
--mhc-init-alpha: 0.01
--mhc-hres-init-bias: 4.0
--mhc-recompute-interval: 0
--mhc-identity-hres: true
--mhc-idhres-kernel: triton
--init-method-std: 0.006
--embedding-init-method-std: 0.006
--log-timers-to-tensorboard: true
--log-memory-to-tensorboard: true
--log-num-zeros-in-grad: false
--log-params-norm: true
--log-validation-ppl-to-tensorboard: true
--log-throughput: true
--log-interval: 1
--bf16: true
--distributed-timeout-minutes: 3000
--num-dataset-builder-threads: 8