[Performance] Qwen3.8-Flash-Next: low useful throughput in B300 full-parameter training (~33 TFLOPS/GPU)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
調査の方向性
Start by reviewing the reported configuration and the performance breakdown in the issue, especially replicated ViT computation and QSA preparation overhead. The report does not identify specific repository files or tests, and reproduction depends on custom data and model adaptations. Done means identifying validated execution paths or configurations that explain or improve useful throughput.
索引モデルが issue の本文から書いたものです。
説明
Checklist / 检查清单
- I have searched existing issues, and this is a new bug report. / 我已经搜索过现有的 issues,确认这是一个新的 bug report。
Bug Description / Bug 描述
We observe low end-to-end useful throughput when training Qwen3.8-Flash-Next with Megatron-SWIFT on 32 B300 GPUs.
Each update processes two packed inputs of 65,600 tokens each. Excluding media decoding, unprofiled steady-state performance is approximately 7.00 seconds/update, or 18,747 tokens/s.
A separate profile shows the following approximately 7.06-second device window on the slowest rank:
Category | Seconds -- | -- Non-communication GPU activity, exclusive | 3.99 NCCL activity, exclusive, including waiting | 2.06 No device activity | 1.01Compute/communication overlap is approximately 0.007 seconds. Within the non-communication time, GEMM/matrix kernels account for approximately 0.58 seconds, FA/QSA kernels 0.59 seconds, and copy/cat/index plus CUDA memory operations 0.80 seconds. The remainder mainly consists of pointwise, normalization, reductions, sorting, and fills.
Our current useful-work estimate gives approximately 33 TFLOPS/GPU end to end. Even hypothetically removing communication and idle time, throughput would only reach approximately 57.5 useful TFLOPS/GPU. This estimate excludes replicated computation and recomputation; it is a semantic FLOP subtotal, not measured hardware FLOPS.
Are there known execution-path inefficiencies or recommended configurations that could explain this?
How to Reproduce / 如何复现
Environment
- 32 × NVIDIA B300; BF16 full-parameter training.
- ms-swift 4.7.0.dev0, commit c598c01ffd6e93bd0fe949ca0a1b6ce5375e4a0c.
- mcore-bridge 1.7.0.dev0, commit 9c43ac42eb5883655648b5c5c5280b42cc53b527.
- Megatron-Core 0.19.0, PyTorch 2.8.0+cu128, Transformer Engine 2.16.1.
- flash-attn 2.8.3, FlashQLA 0.1.3.
Effective configuration
tensor_model_parallel_size: 2
sequence_parallel: true
context_parallel_size: 8
cp_comm_type: all_gather
pipeline_model_parallel_size: 1
expert_model_parallel_size: 32
expert_tensor_parallel_size: 1
micro_batch_size: 1
global_batch_size: 2
packing: true
padding_free: true
max_length: 65600
moe_grouped_gemm: true
moe_permute_fusion: true
moe_token_dispatcher_type: alltoall
recompute_granularity: null
recompute_method: null
recompute_num_layers: null
vit_gradient_checkpointing: true
use_distributed_optimizer: true
overlap_grad_reduce: false
overlap_param_gather: false
LLM, ViT, and merger parameters are trainable. N-gram embeddings are frozen and offloaded to CPU.
We replay fixed real packed tensors, warm up for two updates, and measure eight unprofiled updates including forward, backward, gradient processing, and Adam.
Reproduction limitation: this setup includes custom data/merger and QSA/FlashQLA adaptations. It is not yet a standalone, unmodified upstream reproduction, so we cannot attribute all overhead to ms-swift.
Additional Information / 补充信息
We would particularly appreciate guidance on:
- Replicated ViT computation: the current HF vision path executes the full ViT before CP/SP partitioning, repeating visual computation across TP × CP = 16 ranks. Is there an existing vision-DP-over-CP or vision-TP solution supporting packed inputs and trainable ViT/merger gradients?
- QSA preparation overhead: the current path involves full-length query/KV and an approximately 1 GiB selection bitmap per layer/rank, followed by reductions, sorting, and index construction. Is there a more efficient training implementation?
- Recommended full-parameter configuration: which TP/CP/EP, recomputation, and communication-overlap combinations are validated for this model? Permute fusion reduced update time by approximately 6%, while DDP gradient/parameter overlap alone was essentially neutral.
- 主要言語
- Python
- スター
- 16.2k
- フォーク
- 1.8k
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 68
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelscope/ms-swift のほかの issue
-
get_multimodal_target_regex(..., exclude_router=True) does not exclude shared_expert_gate対応中かも @KonnyakuMatcha が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelscope/ms-swift#10696 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] GRPO REAL loss crashes with beta>0 and kl_in_reward=True (NoneType * Tensor)対応中かも @newcloud123 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
modelscope/ms-swift#10690 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] GRPO REAL loss divides by all groups instead of valid groups, silently scaling gradients対応中かも @newcloud123 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
modelscope/ms-swift#10688 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 半日 初心者へのやさしさ 62/100
modelscope/ms-swift#10621 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] `get_seed` consumes a draw from the shared RandomState even when decision augmentation is disabled, changing the train/val split and dataset shuffle対応中かも @ryznren が 38 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelscope/ms-swift#10466 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
modelscope/ms-swift の issue をすべて見る
似ている issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンgood first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
omarelshamy25x/shamy-hijri#63 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
polish
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores対応中かも @AshutoshSingh840 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
UKGovernmentBEIS/control-arena#992 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
mvalentsev/awesome-free-ai-coding#70 ·
メンテナーはふだん 1 日以内に返信