Skip to content

Commit 30f7024

Browse files
committed
[train][DeepSeek-V4]: update deepseek-v4 test configs.
1 parent 6042a61 commit 30f7024

4 files changed

Lines changed: 15 additions & 17 deletions

File tree

flagscale/train/megatron/training/arguments_fs.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -813,11 +813,6 @@ def _add_distributed_args(parser):
813813
action='store_true',
814814
help='Indicate whether not running on a shared file system.',
815815
)
816-
group.add_argument(
817-
'--use-padded-layerwise-optimizer',
818-
action='store_true',
819-
help='Enable pad when use layer-wise optimizer.'
820-
)
821816
return parser
822817

823818

tests/functional_tests/train/deepseek/conf/tp1_pp2_ep2_v4.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ experiment:
2626
CUDNN_BENCHMARK: "false"
2727
CUDNN_DETERMINISTIC: "true"
2828
# Only for debug
29-
# NVTE_DEBUG: 1
30-
# NVTE_DEBUG_LEVEL: 2
29+
NVTE_DEBUG: 1
30+
NVTE_DEBUG_LEVEL: 2
31+
TORCH_COMPILE_DISABLE: 1
3132
# CUDA_LAUNCH_BLOCKING: 1
3233
# NCCL_DEBUG: INFO
3334
# NCCL_NVLS_ENABLE: 0 # Some CUDA and NCCL versions maybe cause Cuda failure 401 'the operation cannot be performed in the present state'. Set it for debug is ok. But this will cause performance drop, please check your CUDA and NCCL versions.
@@ -36,6 +37,7 @@ experiment:
3637
# CUDA_VISIBLE_DEVICES: "0,1,2,3,4,5,6,7"
3738
# CUDA_DEVICE_MAX_CONNECTIONS: 1
3839
# NVTE_TORCH_COMPILE: 0
40+
MEGATRON_LOGGING_LEVEL: 40
3941
cmds:
4042
before_start: source /root/miniconda3/bin/activate flagscale-train
4143
action: run

tests/functional_tests/train/deepseek/conf/train/tp1_pp2_ep2_v4.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ system:
1818
reset_attention_mask: true
1919
qk_layernorm: true
2020
sequence_parallel: true
21-
use_distributed_optimizer: false
22-
use_padded_layerwise_optimizer: false
21+
use_distributed_optimizer: true
2322
num_distributed_optimizer_instances: 1
2423
overlap_grad_reduce: true
2524
overlap_param_gather: true
26-
attention_backend: auto
27-
check_weight_hash_across_dp_replicas_interval: 1
25+
attention_backend: unfused
26+
check_weight_hash_across_dp_replicas_interval: 10
27+
check_for_large_grads: true
2828
calculate_per_token_loss: true
29+
deterministic_mode: true
30+
recompute_granularity: selective
2931
recompute_modules:
3032
- mhc
3133
precision:
@@ -69,8 +71,7 @@ model:
6971
clip_grad: 1.0
7072
position_embedding_type: rope
7173
untie_embeddings_and_output_weights: true
72-
no_position_embedding: true
73-
no_rope_fusion: true
74+
no_position_embedding: true # no use
7475

7576
# mla args ==================
7677
multi_latent_attention: true
@@ -114,6 +115,7 @@ model:
114115
o_lora_rank: 128
115116
q_lora_rank: 128
116117
csa_compress_ratios: "[128]*2+([128]+[4])*1+[128]"
118+
activation_func_clamp_value: 10.0
117119

118120
# mtp_args
119121
mtp_num_layers: 1
@@ -136,15 +138,13 @@ model:
136138
# pytorch_profiler_collect_callstack: true
137139

138140
optimizer:
139-
optimizer: dist_muon
140-
muon_tp_mode: distributed
141141
clip_grad: 1.0
142142
weight_decay: 0.1
143143
adam_beta1: 0.9
144144
adam_beta2: 0.95
145145
lr_scheduler:
146-
lr: 3.0e-3
147-
min_lr: 3.0e-4
146+
lr: 3.9e-6
147+
min_lr: 3.9e-7
148148
lr_warmup_fraction: 0.01
149149
lr_decay_style: WSD
150150
lr_wsd_decay_style: cosine
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"lm loss:": {"values": [12.32605, 12.32894, 18.66876, 13.79999, 9.770184, 10.72942, 10.59103, 10.65058, 10.09267, 10.82254]}}

0 commit comments

Comments
 (0)