모델/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

|
11/5/2025
|
5:45:54 PM
| Discussion|
0
Anime style illustration of an angry woman on the left delivering a knee strike to the crotch of her boyfriend on the right, who shows a face of suffering
Woman with skull makeup sleeping on a surreal bed made of numerous unique human hands, wearing a black shirt with 'do not touch' text and gray pants in a dimly lit room.
A bald man wearing glasses, gray shirt, and white cargo pants sits in an old laboratory at a computer, surrounded by vintage electronic equipment, illuminated by dim light at dawn.

추천 매개변수

samplers

euler_beta, euler_simple

steps

32

vae

ae.safetensors

E4M3 format provides higher precision near zero values, while E5M2 gives a wider numeric range with lower precision near zero.

Choosing between E4M3 and E5M2 depends on the distribution of weight values in the model.

The scaled fp8 FLUX.1 [dev] model is experimental and tuned for highest quality with fp8 matrix multiplication hardware support.

This model works with TorchCompileModel but does not work with Redux or some ControlNet models.

For use with ComfyUI, place the model in ComfyUI/models/diffusion_models/ and load with the "Load Diffusion Model" node.

버전 하이라이트

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

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.

기여자

이전
Pony gradient play - V1
다음
Chroma - The Fashionable Mech - Chroma - v2.0

모델 세부사항

모델 유형

Checkpoint

기본 모델

Flux.1 D

모델 버전

fp8_e4m3fn

모델 해시

47d8dbdc6d

제작자

토론

댓글을 남기려면 log in하세요.

모델 컬렉션 - FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2

FLUX.1 [dev] fp8 versions - Scaled fp8/fp8_e4m3fn/fp8_e5m2 - fp8_e4m3fn 제작 이미지

기본 모델 이미지

flux 이미지