mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2727] [CLOSED] tools: add opt-in FP4-Local CSF checkpoint conversion #4232
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4232
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2727
Author: @hagope
Created: 10/16/2026
Status: ❌ Closed
Base:
main← Head:feat/fp4-local-csf-converter📝 Commits (5)
c286ffatools: add opt-in FP4-Local CSF checkpoint conversionbc79b6adocs: clarify CSF converter test prerequisites9b06de2Bound CSF conversion buffers when checkpoint shards interleave layers1e344acPreserve explicit checkpoint metadata across AutoConfig normalization090e641Document full-checkpoint conversion and text-serving validation📊 Changes
6 files changed (+1014 additions, -0 deletions)
View changed files
📝
docs/NVFP4.md(+5 -0)➕
docs/NVFP4_CSF.md(+146 -0)➕
tools/nvfp4_csf.py(+101 -0)➕
tools/nvfp4_csf_convert.py(+362 -0)➕
tools/test_nvfp4_csf.py(+79 -0)➕
tools/test_nvfp4_csf_convert.py(+321 -0)📄 Description
The FP4-Local checkpoint stores expert scales as CSF streams and uses mixed MXFP8/NVFP4 weights, which the existing offline converter cannot read. This adds a separate explicit converter that writes a main text GGUF and a streamed BF16 PLE GGUF for Strata’s existing readers.
Refs #2726. The full pinned checkpoint has now been converted and served through Strata 0.1.44.1 on an RTX 5090 32 GB / Core Ultra 9 285K / 64 GiB RAM / Ubuntu host.
--dry-runreports the conversion plan. Outputs/manifests are new files; source checkpoint files remain read-only.full_attentionnames needed by the pinned metadata writer. Both full-run failures have regression tests with failing negative controls against the previous implementation.nvfp4_convert.pyremain unchanged. Compatibility adapters are scoped to the new command and restored on exit/failure.Validation:
git diff --checkpassed.The docs record the pinned checkpoint/reference revisions, precision changes, memory needs, conversion caveats and measurements. Full answer-quality comparison, full-context retrieval, vision and MTP remain untested.
Format reference: vLLM #60646. AI-assisted implementation and testing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.