Skip to content

u/comfyanonymous

In this archive from Jan 2023 to Oct 2026

56
posts
378
comments
93
media
14k
score

Top posts

Top comments

This seems to be just torch.compile (Linux only) + fp8 matrix mult (Nvidia ADA/40 series and newer only).

To use those optimizations in ComfyUI you can grab the first flux example on this page: https://comfyanonymous.github.io/ComfyUI_examples/flux/

And select weight_dtype: fp8_e4m3fn_fast in the "Load Diffusion Model" node (same thing as using the --fast argument with fp8_e4m3fn in older comfy). Then if you are on Linux you can add a TorchCompileModel node.

And make sure your pytorch is updated to 2.4.1 or newer.

This brings flux dev 1024x1024 to 3.45it/s on my 4090.

119 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.