[Quant] Support MXFP4 W4A16 for compressed-tensors MoE models #138
Closed
dsikka wants to merge 122 commits intomxfp4-w4a16-ct-densefrom
Closed
[Quant] Support MXFP4 W4A16 for compressed-tensors MoE models #138dsikka wants to merge 122 commits intomxfp4-w4a16-ct-densefrom
dsikka wants to merge 122 commits intomxfp4-w4a16-ct-densefrom
Conversation
Signed-off-by: Jeremy Teboul <jeremyte@meta.com>
…ject#29354) Signed-off-by: Runkai Tao <rt572@physics.rutgers.edu> Co-authored-by: Jee Jee Li <pandaleefree@gmail.com>
Signed-off-by: jiahanc <173873397+jiahanc@users.noreply.github.com>
Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
…llm-project#31836) Signed-off-by: Andrew Xia <axia@fb.com> Co-authored-by: Andrew Xia <axia@fb.com>
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
…-project#31336) Signed-off-by: izhuhaoran <izhuhaoran@qq.com> Signed-off-by: zhuhaoran <zhuhaoran.zhr@alibaba-inc.com>
…oject#31998) Signed-off-by: Nick Hill <nickhill123@gmail.com>
mgoin
reviewed
Jan 10, 2026
|
|
||
| self.moe_quant_config = self.get_fused_moe_quant_config(layer) | ||
| if self.moe_quant_config is not None: | ||
| self.kernel = make_nvfp4_moe_kernel( |
Member
There was a problem hiding this comment.
This works because Marlin autodetects mxfp4?
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
Signed-off-by: Russell Bryant <rbryant@redhat.com>
…t#32056) Signed-off-by: yewentao256 <zhyanwentao@126.com>
…t#31616) Signed-off-by: c0de128 <kevin.mckay@outlook.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
Signed-off-by: Andy Xie <andy.xning@gmail.com>
Signed-off-by: Lucas Kabela <lucaskabela@meta.com>
Signed-off-by: Roger Wang <hey@rogerw.io> Co-authored-by: Roger Wang <hey@rogerw.io>
Signed-off-by: Patryk Saffer <patryk.saffer99@gmail.com> Signed-off-by: PatrykSaffer <patryk.saffer@mistral.ai> Co-authored-by: Patryk Saffer <patryk.saffer99@gmail.com> Co-authored-by: Luka Govedič <ProExpertProg@users.noreply.github.com> Co-authored-by: Michael Goin <mgoin64@gmail.com>
…rocess (vllm-project#31295) Signed-off-by: c0de128 <kevin.mckay@outlook.com>
…imize forward (vllm-project#31939) Signed-off-by: maang <maang_h@163.com>
…project#31895) Signed-off-by: Roi Koren <roik@nvidia.com>
…chema test examples (vllm-project#32063) Signed-off-by: Andreas Karatzas <akaratza@amd.com>
…project#32074) Signed-off-by: Lucas Wilkinson <lwilkins@redhat.com>
…vision encoder (vllm-project#32233) Signed-off-by: Andreas Karatzas <akaratza@amd.com>
Signed-off-by: Xingyu Liu <charlotteliu12x@gmail.com>
Signed-off-by: esmeetu <jasonailu87@gmail.com>
vllm-project#32061) Signed-off-by: Andreas Karatzas <akaratza@amd.com>
vllm-project#32126) Signed-off-by: YunzhuLu <lucia.yunzhu@gmail.com> Co-authored-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…m-project#32243) Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…ct#32198) Signed-off-by: NickLucche <nlucches@redhat.com>
…ject#29867) Signed-off-by: Mickael Seznec <mickael@mistral.ai> Signed-off-by: Michael Goin <mgoin64@gmail.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com> Co-authored-by: Michael Goin <mgoin64@gmail.com>
…architecture (vllm-project#32240) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
…ct#32215) Signed-off-by: Matthew Bonanni <mbonanni@redhat.com>
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
…-project#32251) Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
…ect#32169) Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…ory leak (vllm-project#32181) Signed-off-by: Mathis Felardos <mathis@mistral.ai>
Signed-off-by: Matthew Bonanni <mbonanni@redhat.com> Co-authored-by: Luka Govedič <ProExpertProg@users.noreply.github.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
…-project#32050) Signed-off-by: Sage Moore <sage@neuralmagic.com>
Signed-off-by: Andrew Xia <axia@fb.com> Signed-off-by: Andrew Xia <mitandrewxia@gmail.com> Signed-off-by: Lu Fang <30275821+houseroad@users.noreply.github.com> Co-authored-by: Andrew Xia <axia@fb.com> Co-authored-by: Lu Fang <30275821+houseroad@users.noreply.github.com>
Signed-off-by: Dmitry Tokarev <dtokarev@nvidia.com>
…nt (vllm-project#32058) Signed-off-by: yewentao256 <zhyanwentao@126.com>
…vllm-project#31711) Signed-off-by: rabi <ramishra@redhat.com>
Signed-off-by: Dipika Sikka <dipikasikka1@gmail.com>
eec67ec to
af677f5
Compare
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.
Purpose
Follow-up to: vllm-project#31926
Add MoE support for MXFP4 CT Models. Currently only supporting weight-only quantization through the marlin integration.
There's a ton of shared boilerplate code between mxfp4 and nvfp4 that we should consider combining.
Test Plan
Qwen3 MoE MXFP4A16: https://huggingface.co/nm-testing/Qwen3-30B-A3B-MXFP4A16/tree/main
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.