cp: [recipe,model,ckpt] DeepSeek-V4 backports (4131, 4271, 4305, 4306, 4338) into r0.5.0#4337
Merged
Merged
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
yaoyu-33
previously approved these changes
Jun 12, 2026
ko3n1g
approved these changes
Jun 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Combined backport to
r0.5.0for the requested DeepSeek-V4 changes.Included cherry-picks:
00174bc14952876c67b827a0b2c55457c3112617->d745e8b0d3eeb4af90eb21cb38745ca22b3a785a3af343edc83e0352ca8c54acfb94766340fbfa2d->8e100bd521c5e27c3bf0993dcb36dcb8ba626116c9ab9cc124a055392927eee3b2220bc0049caa18->bc8692627c50e06632b499205153302cc4eeb3c05f2423312a7f19bebe0c881209900857b58b4a6c->f7d51e4d782da155dba31c170e909aaea1719410655eb6d0b3b9a0c0ef31de234d2fdcabc7ad774a->99223662411ea036a9f72984f67ee843515e0ee7ae87ec35e0dc14bb2c73a2156196a6e757c89f77->8606ebc4e3c844f5cd3b88fa0a378cfc072b54b0#4131 is included because #4305 updates the DeepSeek-V4-Flash SFT recipes introduced by #4131.
#4306 is included because the DSv4 PP>1 import/export round trip can otherwise fail when
run_config.yamlserializes the finalized pipeline layout as an object stub instead of a concrete list. The backport regenerates and forwards the resolved layout during export.The #4338 follow-up addresses the Claude bot comment about H100 CI determinism by forcing Blackwell fused-kernel support in the shared DeepSeek-V4 recipe test builder; the explicit unavailable-kernel test still overrides the helper to
False.Validation
git diff --check origin/r0.5.0..HEADuv run --no-sync python -m py_compile examples/conversion/convert_checkpoints_multi_gpu.py src/megatron/bridge/models/model_provider.py src/megatron/bridge/models/deepseek/deepseek_v4_bridge.py src/megatron/bridge/recipes/deepseek/deepseek_v4.py tests/unit_tests/models/deepseek/test_deepseek_v4_bridge.py tests/unit_tests/recipes/test_deepseek_recipes.py tests/functional_tests/test_groups/recipes/test_deepseek_recipes_finetune.pyuv run --no-sync --with pre-commit pre-commit run --all-filesAttempted targeted unit tests with
uv run --frozen --group test python -m pytest tests/unit_tests/models/deepseek/test_deepseek_v4_bridge.py tests/unit_tests/recipes/test_deepseek_recipes.py, but this host cannot install the lockednvidia-resiliency-ext==0.6.0wheel because the available wheel tag ismanylinux_2_39_x86_64while the host ismanylinux_2_31_x86_64.