INT8 Quantized model of FLUX.2-klein-4B for ComfyUI
Generation speed
- Tested on
- RTX5090 (400W), ComfyUI with torch2.10.0+cu130
- RTX3090 (280W), ComfyUI with torch2.9.1+cu130
- RTX3060 (PCIe4.0 x4), ComfyUI with torch2.9.1+cu130
- Generates 1216x1856, 4steps, cfg 1.0
- Second~Fifth run measured by varying only the seed
Result
How to run
- pull https://github.com/BobJohnson24/ComfyUI-Flux2-INT8 on
ComfyUI/custom_nodes.
- run ComfyUI and search
INT8.
- Use the
Load Diffusion Model INT8 (W8A8) node for model loading.
- Use the
Load LoRA INT8 nodes for Lora loading.
How to reproduce
- install https://github.com/silveroxides/convert_to_quant
pip install convert_to_quant
- quantize using bf16 model.
convert_to_quant -i models/flux-2-klein-4b.safetensors --int8 --block_size 128 --comfy_quant --flux2 --scaling_mode tensor
- model will be saved as
models/flux-2-klein-4b_learned_int8mixed_tensorwise.safetensors