Skip to content

Commit 7d844ca

Browse files
committed
Add qwen3 metax functional regression case
1 parent b03a04f commit 7d844ca

3 files changed

Lines changed: 77 additions & 2 deletions

File tree

.github/configs/cuda.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ test_matrix:
9292
functional:
9393
train:
9494
- model: gpt
95-
test_case: gpt3_mcore_te_tp1_pp1_mock_data_dist_optimizer
95+
test_case: qwen3_0p6b_mcore_te_tp1_pp1_no_mmap_bin_files
9696
training_script: pretrain_gpt.py
9797
n_repeat: 1
9898
golden_environment: dev
9999
golden_platform: dgx_a100
100-
enable_lightweight_mode: true
100+
enable_lightweight_mode: false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"lm loss": {"start_step": 1, "end_step": 10, "step_interval": 1, "values": {"1": 11.93016, "2": 11.87934, "3": 11.78204, "4": 11.84415, "5": 11.64288, "6": 11.57093, "7": 11.56676, "8": 11.75107, "9": 11.77425, "10": 11.44834}}}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
ENV_VARS:
2+
CUDA_DEVICE_MAX_CONNECTIONS: 1
3+
NVTE_ALLOW_NONDETERMINISTIC_ALGO: 0
4+
NCCL_ALGO: Ring
5+
CUBLAS_WORKSPACE_CONFIG: :4096:8
6+
MODEL_ARGS:
7+
--num-layers: 28
8+
--hidden-size: 1024
9+
--ffn-hidden-size: 3072
10+
--kv-channels: 128
11+
--num-attention-heads: 16
12+
--group-query-attention: true
13+
--num-query-groups: 8
14+
--log-params-norm: true
15+
--tensorboard-dir: ${TENSORBOARD_PATH}
16+
--micro-batch-size: 1
17+
--global-batch-size: 2
18+
--seq-length: 256
19+
--max-position-embeddings: 40960
20+
--train-iters: 10
21+
--timing-log-level: 0
22+
--save: ${CHECKPOINT_SAVE_PATH}
23+
--load: ${CHECKPOINT_LOAD_PATH}
24+
--data-path: /home/gitlab-runner/data/pile_wikipedia_demo/pile_wikipedia_demo
25+
--split: 100,0,0
26+
--tokenizer-type: HuggingFaceTokenizer
27+
--tokenizer-model: /home/gitlab-runner/tokenizers/qwentokenizer
28+
--legacy-tokenizer: true
29+
--trust-remote-code: true
30+
--distributed-backend: nccl
31+
--lr: 1.0e-5
32+
--lr-decay-style: cosine
33+
--min-lr: 1.0e-6
34+
--weight-decay: 0.1
35+
--clip-grad: 1.0
36+
--lr-warmup-fraction: .01
37+
--log-interval: 1
38+
--save-interval: 100000
39+
--eval-interval: 100000
40+
--eval-iters: 0
41+
--transformer-impl: transformer_engine
42+
--tensor-model-parallel-size: 1
43+
--pipeline-model-parallel-size: 1
44+
--no-mmap-bin-files: true
45+
--deterministic-mode: true
46+
--no-check-for-nan-in-loss-and-grad: true
47+
--no-gradient-accumulation-fusion: true
48+
--attention-softmax-in-fp32: true
49+
--use-mcore-models: true
50+
--ckpt-format: torch
51+
--bf16: true
52+
--attention-backend: unfused
53+
--disable-bias-linear: true
54+
--reset-position-ids: true
55+
--reset-attention-mask: true
56+
--qk-layernorm: true
57+
--normalization: RMSNorm
58+
--norm-epsilon: 1e-6
59+
--position-embedding-type: rope
60+
--no-position-embedding: true
61+
--rotary-base: 1000000
62+
--rotary-percent: 1.0
63+
--no-rope-fusion: true
64+
--swiglu: true
65+
--attention-dropout: 0.0
66+
--hidden-dropout: 0.0
67+
--init-method-std: 0.006
68+
--seed: 42
69+
--adam-beta1: 0.9
70+
--adam-beta2: 0.95
71+
--make-vocab-size-divisible-by: 64
72+
TEST_TYPE: regular
73+
METRICS:
74+
- "lm loss"

0 commit comments

Comments
 (0)