Skip to content

[conversion] fix: skip absent auto mappings across PP - #6

Draft
bobboli wants to merge 1 commit into
fix/dsv4-integrationfrom
fix/dsv4-pp-optional-mapping
Draft

[conversion] fix: skip absent auto mappings across PP#6
bobboli wants to merge 1 commit into
fix/dsv4-integrationfrom
fix/dsv4-pp-optional-mapping

Conversation

@bobboli

@bobboli bobboli commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

Skip an automatic parameter mapping when its Megatron parameter is absent from every pipeline stage. Other mappings continue to require the parameter on at least one PP rank.

This prevents an optional mapping from aborting Megatron-to-HF export with Object must exist on at least one PP rank, while preserving the existing error for required explicit mappings.

Stack

This PR is stacked on #3, which contains the DeepSeek V4 hash-layer config fix and the DSV4 Bridge backport below it.

Scope

This PR contains only the PP optional-mapping fix and its regression test. It intentionally excludes the unrelated nested rope_theta config change from the old combined branch.

Validation

  • python -m pytest tests/unit_tests/models/test_param_mapping.py -q: 55 passed
  • targeted pre-commit hooks: passed

Signed-off-by: Bo Li <22713281+bobboli@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant