Skip to content

fix: preserve Hyper parameter layouts in VeOmni chunked loading - #1660

Open
Cui-yshoho wants to merge 1 commit into
mindspore-ai:masterfrom
Cui-yshoho:fix/veomni-chunked-ep-load
Open

Cui-yshoho wants to merge 1 commit into
mindspore-ai:masterfrom
Cui-yshoho:fix/veomni-chunked-ep-load

Conversation

@Cui-yshoho

@Cui-yshoho Cui-yshoho commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Paired: GitHub #1660 ↔ GitCode !2028

What type of PR is this?
/kind bug

What does this PR do / why do we need it:
Fix VeOmni chunked pretrained-weight loading with Hyper FSDP and EP. Reading a Hyper parameter through .data loses its distributed layout, causing incorrect chunk shapes when expert parameters are also FSDP-sharded.

Expose storage-sharing Torch checkpoint views to the native chunk loader while preserving live Hyper parameter identity. Keep VeOmni chunk scheduling and the existing ordinary loading path unchanged; restore the lookup binding when the adapter is removed.

Which issue(s) this PR fixes:
Addresses the EP chunk-loading review in ByteDance-Seed/VeOmni#1466.

Test results:

  • Hyper VeOmni adapter unit tests: 75 passed.
  • Four-NPU EP2 × expert-FSDP2 loading with the chunk threshold forced to zero: passed; native and Hyper loss/grad_norm matched exactly.
  • VeOmni two-NPU training, native comparison, DCP resume and selected runtime/config regressions: 143 passed.
  • git diff --check passed. Pylint 3.3.7 reported no new diagnostics relative to master; existing diagnostics remain.

Code review checklist:

  • Necessary regression coverage added.
  • No public API or dependency changes.

@Cui-yshoho

Copy link
Copy Markdown
Contributor Author

Please run CI for the VeOmni EP chunked-loading fix. Local validation passed: 75 adapter unit tests, 143 VeOmni regressions, and a four-NPU forced-chunk EP loading comparison.

@Cui-yshoho

Copy link
Copy Markdown
Contributor Author

/retest

@mindspore-ai-bot

Copy link
Copy Markdown

Gate trigger failed: please fix the /check-pr findings and obtain the pr-check-pass label before retrying.

@Cui-yshoho

Copy link
Copy Markdown
Contributor Author

/check-pr

@Cui-yshoho

Copy link
Copy Markdown
Contributor Author

/retest

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #2091 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ❌ FAILURE 21%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate - ❌ FAILURE 2091
Smoke_Ascend910b_Torch ❌ FAILURE Error_Logs

@Cui-yshoho

Copy link
Copy Markdown
Contributor Author

/retest

@mindspore-ai-bot

Copy link
Copy Markdown

🔵 The pipeline #2095 is running. Please wait a moment... (Link)

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details(Full/Incremental) Detail
Coverage Line Coverage ❌ FAILURE 79%/0% Link

@mindspore-ai-bot

Copy link
Copy Markdown
Platform Type Module Excution Time Time Limit
- distributed_data 407.738s 450.0s
- activation_memory 425.707s 375.0s
- shard 207.105s 300.0s
- optimizer 385.346s 300.0s
- clip_grad 119.904s 120.0s
- pipeline_parallel 814.691s 675.0s
- fully_shard 431.426s 600.0s
- accuracy 124.778s 120.0s
- tensor_parallel 259.957s 300.0s
- swap_optimizer 390.371s 300.0s
- llama3_examples 114.105s 120.0s
- distributed_checkpoint 114.299s 120.0s
- expert_parallel 177.73287s 200.0s
- dtensor 88.853s 120.0s
- context_parallel 77.513s 240.0s
- process_group 94.233s 90.0s
- init_weights 81.055s 118.75s
- auto_models 96.96s 150.0s
- multicore 3.29263s 120.0s

@mindspore-ai-bot

Copy link
Copy Markdown
Project Name Build_Stage Build Result Details
Hyper-parallel_Github_Gate - ❌ FAILURE 2095

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants