Skip to content

[Bug] Result is Black Image when using Flux Kontext with fp4 on Blackwell (5090) #511

Description

@ech3lon42

Checklist

Describe the Bug

Running the flux kontext workflow (nunchaku-flux.1-kontext-dev.json) using fp4 model on 5090 (svdq-fp4_r32-flux.1-kontext-dev) results in black image.

Using

  • updated ComfyUI
  • nunchaku wheel 0.3.1 for torch 2.7 (installed using wheel download workflow)
  • nunchaku @ https://huggingface.co/mit-han-lab/nunchaku/resolve/main/nunchaku-0.3.1+torch2.7-cp311-cp311-win_amd64.whl#sha256=6ccd7600d1ad6f9bb93fc624a14b9769ce67b94a597c958380d92ef302538b42
  • ComfyUI-nunchaku version: 0.3.3
  • torch==2.7.0+cu128
  • sageattention @ https://github.com/woct0rdho/SageAttention/releases/download/v2.1.1-windows/sageattention-2.1.1+cu128torch2.7.0-cp311-cp311-win_amd64.whl#sha256=629da9f19e810f98c8eb1d4d9af07cd29b500069b358689ff9bc48defe057795
  • 5090, latest drivers
  • CUDA 12.8

Nunchaku with svdq-fp4-flux.1-dev works normally. Flux Kontext (without nunchaku) also works normally.

Full Log log_nunchaku031_ComfyUINunchaku033_black_image_5090_fp4.txt

Image

Am I doing something wrong or is this a bug?

Environment

Windows, 5090, CUDA 12.8, Torch 2.7.0+cu128, Sage Attention 2.1, Nunchaku Wheel 0.3.1, NunchakuComfyUI 0.3.3

Full environment: pip_freeze.txt

Reproduction Steps

Running the flux kontext workflow (nunchaku-flux.1-kontext-dev.json) using svdq-fp4_r32-flux.1-kontext-dev results in black image on 5090.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions