Skip to content

add a debug config for deepseek + mxfp8 - #3934

Merged
vkuzo merged 4 commits into
mainfrom
gh/vkuzo/2/head
Jul 20, 2026
Merged

vkuzo merged 4 commits into
mainfrom
gh/vkuzo/2/head

Conversation

@vkuzo

@vkuzo vkuzo commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

This establishes a baseline to set up numerics testing on deepseek + mxfp8
(in future PRs).

Test Plan:

> NGPU=2 MODULE=deepseek_v3 CONFIG=deepseek_v3_debugmodel_mxfp8 ./run_train.sh --parallelism.expert_parallel_degree=2 --debug.seed 42 --debug.deterministic
...
[rank0]:[titan] 2026-07-17 12:05:19,271 - root - INFO - step:  1  loss:  7.98741  grad_norm:  3.7610  memory:  3.87GiB(2.17%)  tps: 589  tflops: 0.32  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:19,271 - root - INFO - Synchronizing and adjusting timeout for all ProcessGroups to 0:01:40
[rank0]:[titan] 2026-07-17 12:05:19,496 - root - INFO - step:  2  loss:  6.09081  grad_norm:  4.2098  memory:  4.26GiB(2.39%)  tps: 72,915  tflops: 39.59  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:19,713 - root - INFO - step:  3  loss:  5.03595  grad_norm:  3.2568  memory:  4.28GiB(2.40%)  tps: 75,562  tflops: 41.03  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:19,935 - root - INFO - step:  4  loss:  4.88503  grad_norm:  2.8289  memory:  4.28GiB(2.40%)  tps: 73,908  tflops: 40.13  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:20,152 - root - INFO - step:  5  loss:  4.57753  grad_norm:  2.7556  memory:  4.30GiB(2.41%)  tps: 75,442  tflops: 40.96  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:20,386 - root - INFO - step:  6  loss:  4.34882  grad_norm:  2.4547  memory:  4.30GiB(2.41%)  tps: 70,064  tflops: 38.04  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:20,616 - root - INFO - step:  7  loss:  4.19819  grad_norm:  2.0798  memory:  4.30GiB(2.41%)  tps: 71,281  tflops: 38.70  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:20,835 - root - INFO - step:  8  loss:  4.13636  grad_norm:  2.2233  memory:  4.30GiB(2.41%)  tps: 75,123  tflops: 40.79  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:21,050 - root - INFO - step:  9  loss:  4.35154  grad_norm:  2.0714  memory:  4.30GiB(2.41%)  tps: 75,967  tflops: 41.24  mfu: N/A
[rank0]:[titan] 2026-07-17 12:05:21,278 - root - INFO - step: 10  loss:  4.01144  grad_norm:  1.9330  memory:  4.30GiB(2.41%)  tps: 72,055  tflops: 39.12  mfu: N/A

> NGPU=2 MODULE=deepseek_v3 CONFIG=deepseek_v3_debugmodel_mxfp8 ./run_train.sh --parallelism.expert_parallel_degree=2 --debug.seed 42 --debug.deterministic --compile.enable --compile.components model
...
[rank0]:[titan] 2026-07-17 12:08:04,498 - root - INFO - step:  1  loss:  7.98741  grad_norm:  3.7609  memory:  2.73GiB(1.53%)  tps: 592  tflops: 0.32  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:04,498 - root - INFO - Synchronizing and adjusting timeout for all ProcessGroups to 0:01:40
[rank0]:[titan] 2026-07-17 12:08:04,601 - root - INFO - step:  2  loss:  6.08946  grad_norm:  4.2068  memory:  2.91GiB(1.63%)  tps: 159,250  tflops: 86.46  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:04,700 - root - INFO - step:  3  loss:  5.03481  grad_norm:  3.2568  memory:  2.91GiB(1.63%)  tps: 165,134  tflops: 89.66  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:04,801 - root - INFO - step:  4  loss:  4.88479  grad_norm:  2.8279  memory:  2.91GiB(1.63%)  tps: 163,066  tflops: 88.53  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:04,900 - root - INFO - step:  5  loss:  4.57788  grad_norm:  2.7554  memory:  2.91GiB(1.63%)  tps: 165,983  tflops: 90.12  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:05,007 - root - INFO - step:  6  loss:  4.34986  grad_norm:  2.4559  memory:  2.91GiB(1.63%)  tps: 153,739  tflops: 83.47  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:05,103 - root - INFO - step:  7  loss:  4.19825  grad_norm:  2.0797  memory:  2.91GiB(1.63%)  tps: 171,121  tflops: 92.91  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:05,199 - root - INFO - step:  8  loss:  4.13631  grad_norm:  2.2178  memory:  2.91GiB(1.63%)  tps: 170,850  tflops: 92.76  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:05,295 - root - INFO - step:  9  loss:  4.35203  grad_norm:  2.0757  memory:  2.91GiB(1.63%)  tps: 169,834  tflops: 92.21  mfu: N/A
[rank0]:[titan] 2026-07-17 12:08:05,397 - root - INFO - step: 10  loss:  4.01161  grad_norm:  1.9338  memory:  2.91GiB(1.63%)  tps: 161,108  tflops: 87.47  mfu: N/A

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@vkuzo

vkuzo commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor Author

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 16, 2026
vkuzo added 2 commits July 17, 2026 11:10
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@vkuzo
vkuzo merged commit 7a3dab7 into main Jul 20, 2026
20 of 22 checks passed
mreso added a commit to mreso/torchtitan that referenced this pull request Jul 20, 2026
Absorbs 4 upstream commits (mxfp8 MoE ep=1 pytorch#3935, deepseek mxfp8 debug config
pytorch#3934, model config in Trainer to_dict pytorch#3919, GPU-agnostic AutoParallel tests
pytorch#3805). No conflicts; pytorch#3935 touches common MoE but the HF backend imports and
MoE EP=2 training verified clean (12.35 -> 7.23).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants