Teriks/FLUX.2-klein-9B-Qwen3-text-encoder

ComfyUI safetensors float8_e4m3fn and nvfp4 quantization of black-forest-labs/FLUX.2-klein-9B, written by dgenerate 6.0.0.

The license of the source model applies to these weights.

Comfy-Org/flux2-klein-9B publishes qwen_3_8b_fp8mixed.safetensors and qwen_3_8b_fp4mixed.safetensors without lm_head.weight. This Qwen3-8B config sets tie_word_embeddings to false, so those files cannot rewrite a prompt with --pipeline-prompt-enhance. These files were quantized from black-forest-labs/FLUX.2-klein-9B text_encoder, which includes lm_head.weight. float8_e4m3fn and nvfp4 each cover every linear that fits. The Comfy fp8mixed file stores some linears as float8_e4m3fn and leaves others in BF16. The Comfy fp4mixed file mixes nvfp4 and float8_e4m3fn.

Source

Model black-forest-labs/FLUX.2-klein-9B
Pipeline Flux2KleinPipeline
Components text_encoder (Qwen3ForCausalLM)
Formats fp8, nvfp4

Quantization

Keep the original repository as the model and pass the quant file with the matching component option, so the config still comes from the repository.

Tensor names are the ones the component stored.

Format File
float8_e4m3fn ComfyUI safetensors quant
nvfp4 ComfyUI safetensors quant

--formats accepts short names and presets. q4 is Q4_K. q8 is Q8_0. fp8 is float8_e4m3fn.

Command

dgenerate --sub-command quantize black-forest-labs/FLUX.2-klein-9B --subfolders text_encoder --formats fp8 nvfp4 --output 'D:\dgenerate-quants\flux2-klein-9b-qwen3' --hf-upload Teriks/FLUX.2-klein-9B-Qwen3-text-encoder --hf-upload-card 'extra:Comfy-Org/flux2-klein-9B publishes qwen_3_8b_fp8mixed.safetensors and qwen_3_8b_fp4mixed.safetensors without lm_head.weight. This Qwen3-8B config sets tie_word_embeddings to false, so those files cannot rewrite a prompt with --pipeline-prompt-enhance. These files were quantized from black-forest-labs/FLUX.2-klein-9B text_encoder, which includes lm_head.weight. float8_e4m3fn and nvfp4 each cover every linear that fits. The Comfy fp8mixed file stores some linears as float8_e4m3fn and leaves others in BF16. The Comfy fp4mixed file mixes nvfp4 and float8_e4m3fn.'

Files

Path Size
config.json 1.5 KB
text_encoder-float8_e4m3fn.safetensors 8.2 GB
text_encoder-nvfp4.safetensors 5.1 GB
Downloads last month
38
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Teriks/FLUX.2-klein-9B-Qwen3-text-encoder

Quantized
(58)
this model