Skip to content

[train, tools]: Add lightweight HF ↔ MCore DCP conversion with DSv4 support - #1319

Open
LiJunscs wants to merge 12 commits into
flagos-ai:mainfrom
LiJunscs:dsv4_ckpt
Open

LiJunscs wants to merge 12 commits into
flagos-ai:mainfrom
LiJunscs:dsv4_ckpt

Conversation

@LiJunscs

Copy link
Copy Markdown
Collaborator

PR Category

Tools

PR Types

New Features

PR Description

Introduce a shared YAML-driven converter with reusable tensor layouts, configuration mapping, and streaming IO. The initial release supports DSv4 dense DCP checkpoints and decodes HF FP8/MXFP4 weights to FP32 by default, without additional low-precision training adapters.

Validation: BF16 training passed with PP2/EP2, SBHD, sequence length 4096, and four layers. All 131 model tensors remained byte-exact after roundtrip conversion, and the resulting checkpoint loaded with default checks and completed another training step. Native TE quantized checkpoints, optimizer-state restoration, and other model integrations are outside this PR’s scope.

@LiJunscs LiJunscs changed the title Add lightweight HF ↔ MCore DCP conversion with DSv4 support [train, tools]: Add lightweight HF ↔ MCore DCP conversion with DSv4 support Oct 29, 2026

This branch has not been deployed

No deployments
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