Skip to content

[Migration] Migrate GGUF quantization support to plugin#39612

Merged
vllm-bot merged 46 commits into
vllm-project:mainfrom
Isotr0py:remove-gguf
Jun 12, 2026
Merged

[Migration] Migrate GGUF quantization support to plugin#39612
vllm-bot merged 46 commits into
vllm-project:mainfrom
Isotr0py:remove-gguf

Conversation

@Isotr0py

@Isotr0py Isotr0py commented Apr 12, 2026

Copy link
Copy Markdown
Member

Purpose

After this PR, GGUF support will be migrated to https://github.com/vllm-project/vllm-gguf-plugin, you can still use GGUF models normally after plugin installation!

uv pip install vllm-gguf-plugin

Test Plan

uv pip install "vllm-gguf-plugin>=0.0.2"
pytest -s -v tests/plugins_tests/gguf/

Test Result

All tests pass.


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@mergify

mergify Bot commented Apr 12, 2026

Copy link
Copy Markdown
Contributor
@mergify mergify Bot added documentation Improvements or additions to documentation ci/build llama Related to Llama models multi-modality Related to multi-modality (#4194) rocm Related to AMD ROCm v1 labels Apr 12, 2026
@github-project-automation github-project-automation Bot moved this to Todo in AMD Apr 12, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes hardcoded GGUF support from the core vLLM codebase and replaces it with a more extensible ModelFormatHandler architecture. The changes involve deleting GGUF-specific CUDA kernels, documentation, and tests, while refactoring model loaders and layers (Linear, MoE, Embedding) to use generic quantization configuration hooks. I have no feedback to provide.

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@mergify

mergify Bot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @Isotr0py.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label Apr 13, 2026
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@mergify mergify Bot removed the needs-rebase label May 5, 2026
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@mergify

mergify Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @Isotr0py.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label May 7, 2026
Isotr0py added 6 commits May 8, 2026 23:25
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@Isotr0py Isotr0py requested a review from khluu as a code owner June 11, 2026 13:07
Isotr0py added 5 commits June 11, 2026 22:01
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@mergify mergify Bot removed the needs-rebase label Jun 11, 2026
Isotr0py added 4 commits June 11, 2026 23:06
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@Isotr0py

Copy link
Copy Markdown
Member Author

@mgoin The GGUF plugin test pass now: https://buildkite.com/vllm/ci/builds/71683#019ebaa4-74dd-4462-9b0b-24cff7c5bbf3, perhaps it's safe to merge this PR to catch up the v0.23 release now?

@mgoin mgoin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work getting this all together. I still do think it would be good to keep it installed by default to avoid breaking existing flows, but usage is not that high

@vllm-bot vllm-bot merged commit 6635279 into vllm-project:main Jun 12, 2026
189 of 192 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AMD Jun 12, 2026
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 13, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 13, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
Saddss pushed a commit to Saddss/vllm that referenced this pull request Jun 14, 2026
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 15, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
mikekg added a commit to mikekg/vllm that referenced this pull request Jun 16, 2026
…ddings

After vllm-project#39612, ParallelLMHead.tie_weights delegates to quant_method.tie_weights
and QuantizeMethodBase.tie_weights raised NotImplementedError. Only
UnquantizedEmbeddingMethod implemented it, so a model with tied word embeddings
quantized via ModelOpt (NVFP4/FP8) -- or whose lm_head is excluded and gets
UnquantizedLinearMethod -- crashed at load with NotImplementedError (e.g. the
Gemma family). Default the base to sharing the weight tensor, matching the
behavior ParallelLMHead.tie_weights had directly before vllm-project#39612; methods needing
special handling (e.g. GGUF) still override.

Fixes vllm-project#45543.

Signed-off-by: Mike G <180722391+mikekg@users.noreply.github.com>
(cherry picked from commit 9752054)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/build documentation Improvements or additions to documentation llama Related to Llama models multi-modality Related to multi-modality (#4194) ready ONLY add when PR is ready to merge/full CI is needed rocm Related to AMD ROCm v1

4 participants