models/FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2 - fp8_e4m3fn

FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2 - fp8_e4m3fn

|
8/6/2025
|
7:18:17 AM
| Discussion|
0
Anime style side view of an angry woman in a red tank top and black skirt delivering a knee strike to the crotch of a man wearing a shirt and tie, who shows a pained expression.
A woman with skull makeup and bright orange hair lies asleep on a bed made of many unique human hands, wearing a black shirt with 'do not touch' text and gray yoga pants in a dimly lit room.
A bald man wearing glasses and a gray shirt with white cargo pants studies on a computer in an old laboratory with dim lighting, captured in VHS footage style with analog video artifacts.

Recommended Parameters

samplers

euler_simple, euler_beta

steps

32

vae

ae.safetensors

Tips

E4M3 offers more precision near zero values while E5M2 covers wider number range with less precision; choice depends on model weight distribution.

Scaled fp8 FLUX.1 is faster than Q quantized models but may have slightly lower quality.

Use this model with the newest ComfyUI version and the TorchCompileModel node; set weight_dtype to default.

Model doesn't work with Redux or some ControlNet models.

Version Highlights

fp8_e4m3fn version of FLUX.1 [dev]. This file was originally uploaded by Kijai here on Hugging Face.

Creator Sponsors

Update:

I've added some other fp8 versions of FLUX.1 [dev] that aren't hosted on Civitai anymore, specifically fp8_e4m3fn and fp8_e5m2, in addition to the scaled fp8 FLUX.1 [dev] version I had originally posted.

The fp8_e4m3fn and fp8_e5m2 models were originally uploaded by Kijai here on Hugging Face, where they note that E5M2 and E4M3 do give slightly different results, but it's hard/impossible to say which is better. E4M3 is what people are typically referring to when they say FP8.

Here's some info from this Reddit post regarding fp8_e4m3fn and fp8_e5m2:

FP stands for Floating Point. Any signed floating point number is stored as 3 parts:

  1. Sign bit

  2. Mantissa

  3. Exponent

So number = sign * mantissa * 2^exponent

E5M2 means that 2 bits represent mantissa and 5 bits represent exponent. E4M3 means that 3 bits represent mantissa and 4 bits represent exponent.

E5M2 can represent wider range of numbers than E4M3 at cost of lower precision of the numbers. But the amount of different numbers that can be represented are the same: 256 distinct values. So if we need more precision around 0 then we use E4M3 and if we need more precision closer to min/max values then we use E5M2.

The best way to choose what format to use is to analyze distribution of weight values in the model. If they tend to be closer to zero we use E4M3 or E5M2 otherwise.

Original:

I haven't seen this uploaded on here.

This is the scaled fp8 FLUX.1 [dev] model uploaded to HuggingFace by comfyanonymous. It should give better results than the regular fp8 model, much closer to fp16, but runs much faster than Q quants. Works with the TorchCompileModel node. Note: for whatever reason, this model does not work with Redux nor with some ControlNet models.

The fp8 scaled checkpoint is a slightly experimental one that is specifically tuned to try to get the highest quality while using the fp8 matrix multiplication on the 40 series/ada/h100/etc... so it will very likely be lower quality than the Q8_0 but it will inference faster if your hardware supports fp8 ops.

From HuggingFace :

Test scaled fp8 flux dev model, use with the newest version of ComfyUI with weight_dtype set to default. Put it in your ComfyUI/models/diffusion_models/ folder and load it with the "Load Diffusion Model" node.

Contributor

Previous
_MOHAWK_ - v2.0
Next
Pony PDXL Negative Embeddings - XXX Rating

Model Details

Model type

Checkpoint

Base model

Flux.1 D

Model version

fp8_e4m3fn

Model hash

47d8dbdc6d

Creator

Discussion

Please log in to leave a comment.

Model Collection - FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2

Images by FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2 - fp8_e4m3fn

Anime style side view of an angry woman in a red tank top and black skirt delivering a knee strike to the crotch of a man wearing a shirt and tie, who shows a pained expression.
A woman with skull makeup and bright orange hair lies asleep on a bed made of many unique human hands, wearing a black shirt with 'do not touch' text and gray yoga pants in a dimly lit room.
A bald man wearing glasses and a gray shirt with white cargo pants studies on a computer in an old laboratory with dim lighting, captured in VHS footage style with analog video artifacts.

base model Images

Photorealistic scene of undead characters including zombies and skeletons walking through a spooky cemetery illuminated by glowing jack-o'-lanterns under a dark, ominous sky.

flux Images

A dark, eerie face composed of white ASCII characters on a black background, with glowing eyes and a highly detailed texture.
Cartoony scene in Windwaker style showing a small boy standing at a fork in the road with two castles: a bright one labeled family, friends, happiness; and a dark fiery one labeled Flux.
Stylized forest scene with tall trees, autumn foliage, bright light rays shining through, and a clear water surface reflecting the scenery.
A complex steampunk industrial structure with rusted metal, metal ladders, and warm yellow lights, towering above a dense foggy landscape.
Side profile of a female android with light beige weathered skin and intricate exposed mechanical parts showing gears and circuits, against a muted dark background.
Anime-style close-up portrait of a female collector wearing spectacles, holding a glowing orb with both hands in an attic filled with old books and artifacts.
A bright mountainous landscape with a turquoise river flowing through a rocky canyon, snow-capped peaks in the background, and green pine trees on cliffs. Underwater, a shadowy rocky canyon riverbed is visible.
Anime-style portrait of an elegant woman with a short bob hairstyle wearing a black top, standing in warm ambient lighting with soft shadows and a golden drink on the table.
Orange tabby cat wearing a tattered green cloak and floppy hat, singing seriously while holding a rustic wooden lute, illuminated by soft lighting against a dark background.
A person in a hoodie interacts with an abstract scene dominated by a vibrant lightning bolt, surrounded by swirling patterns and glowing orbs.