Skip to content

Fix Flux quality: don't quantize text encoder#115

Draft
stikves wants to merge 2 commits into
apple:mainfrom
stikves:fix/flux-text-encoder-quantization
Draft

Fix Flux quality: don't quantize text encoder#115
stikves wants to merge 2 commits into
apple:mainfrom
stikves:fix/flux-text-encoder-quantization

Conversation

@stikves

@stikves stikves commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

The Flux text encoder (Qwen-based, 3B) was marked quantizable=True, causing it to be exported at INT4 when --compression 4bit is used. This degrades prompt adherence (cosine 0.9655 vs reference) because the conditioning signal loses semantic precision at 4-bit.

Set quantizable=False for the Flux text encoder so it stays at f16 regardless of global compression setting. The transformer (4B) remains INT4 — it's quality-insensitive since it just predicts noise.

Fixes #111.

stikves and others added 2 commits July 17, 2026 14:02
The Flux text encoder (Qwen-based, 3B) was marked quantizable=True,
causing it to be exported at INT4 when --compression 4bit is used.
This degrades prompt adherence (cosine 0.9655 vs reference) because
the conditioning signal loses semantic precision at 4-bit.

Set quantizable=False for the Flux text encoder so it stays at f16
regardless of global compression setting. The transformer (4B) remains
INT4 — it's quality-insensitive since it just predicts noise.

Fixes apple#111.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flux quality subjectively regressed in beta v3

1 participant