Skip to content

[Quantization] Add support for Comfy Quants backend #14705

Open

Description

@DN6

Add support for the Comfy Quant quantization toolkit

Supported formats: FP8 (E4M3/E5M2), INT8 (W8A8, tensorwise), MXFP8, NVFP4, INT4 (SVDQuant W4A4, AWQ W4A16).

comfy-quants is export-only. The inference needs to run with comfy-kitchen

Proposed approach

Add a ComfyQuantConfig / ComfyQuantizer that uses comfy-kitchen to wrap weights as a QuantizedTensor with the appropriate layout.

from diffusers import FluxTransformer2DModel, ComfyQuantConfig

config = ComfyQuantConfig(compute_dtype=torch.bfloat16)
model = FluxTransformer2DModel.from_single_file(
   "path/to/comfy_quant_checkpoint.safetensors",
   quantization_config=config,
)

Related

• comfy-quants https://github.com/Comfy-Org/comfy-quants
• comfy-kitchen https://github.com/Comfy-Org/comfy-kitchen

Activity

  1. PrakshaaleJain commented on Sep 4, 2026

    @PrakshaaleJain
    Contributor

    Hi @DN6, can I take this work up?

  2. DN6 commented on Sep 7, 2026

    @DN6
    CollaboratorAuthor

    @PrakshaaleJain Sure thing 👍🏽 Assigning to you.

  3. added this to the Release 0.41.0 milestone on Sep 7, 2026
  4. moved this from Todo to In Progress in Diffusers Roadmapon Sep 9, 2026
  5. PrakshaaleJain commented on Sep 9, 2026

    @PrakshaaleJain
    Contributor

    Hi @DN6, I have created a PR regarding the issue, please have a review of it.

  6. removed this from the Release 0.41.0 milestone on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions