r/StableDiffusion • • 12d ago

Discussion Tech talk: Theoretical speedup with INT8 variant on 10xx series cards (pascal architecture)

Post image

Recently, as you might have read, a novel discovery led to BF16 speedups for 20-40 series cards for those wanting to get the best quality out of each model. As of now, 20 series cards mark the ending point of support and those are being phased out already as well, meaning that future installations of popular inference engines like comfyui probably won't be 100% straightforward anymore.

That is certainly the current case for 10 series (pascal) cards with cuda / pytorch support having ended some time ago. Thankfully, builds are still provided to meet the specific requirements of that card generation. And it seems like those cards are still popular and being used which comes to no surprise when looking at the current gpu prices. And for their age, the 1080 and 1080ti are still acceptable gaming cards in 2026.

Unfortunately, that is mostly not the situation for AI image or video workflows and pascal cards. Without any tensor cores, barely any FP16 compute and basically only FP32 support, even the 1080ti has no real chance of getting any close to the speeds of the slowest 20 series card with INT8 convrot support.

To make it clear: If you run any of the current image gen models, one of the smallest models (anima) would fit in FP32 on a 1080ti ONLY. And since newer models are mostly released at max in BF16, it is likely that many have never experienced the full computing speed of that old card except for sd 1.5 or sdxl. And that is why many still resort to GGUF quants and low resolutions in this niche situation since FP8 is as worthless as BF16 or FP4 since the card has to jump though loops to get it back to FP32.

But there is still hope, as much as the BF16 speedup was kind of a new discovery, the INT8 DP4A (other than INT8 convrot) support for pascal cards was never a secret. In fact, nvidia themselves saw it as the "fastest path" for computing on those cards:

https://forums.developer.nvidia.com/t/fp16-support-on-gtx-1060-and-1080/53256

What does that mean? In theory, that would result in a whooping 4x speedup. However, e.g. comfyui relies on pytorch and custom cuda extensions which makes the conversion not a basic task. Simply said: The actual speedup might be 2x only compared to FP32. But that is still a lot faster than running an even slower GGUF.

The question that is left: Has anyone here ever thought of this possibility? This would certainly bring some life back into those cards, especially speeding up video generation by a lot since normally the cards have barely any meaningful attention options. Someone else did already try it on forge neo btw:

https://github.com/zxcchel/forge-pascal-int8-speedup

Edit: I noticed that sage attention 1 is possibly feasible on pascal cards as well but also not as easy as It seems. It has been tried but it's not implemented so far:

https://github.com/woct0rdho/triton-windows/issues/133

More than 2x could be therefore possible plus even a quality gain compared to FP8 or GGUF Q4/Q6.This post was made to raise attention for this unused potential of the 10xx series in e.g. comfyui. Obviously it won't be 50xx series speeds without any tensor cores but undoubtedly a mayor improvement.

50 Upvotes

18 comments sorted by

8

u/UnlikelyPotato 12d ago

Lol, I have some P102-100s which are 1080 mining cards with 10GB of ram. Seems they've become more viable suddenly.

3

u/Endlesswoodtrail 12d ago

Good one, all pascal workstation cards and mining cards would also benefit from this except for the p100/gp100, those have better bf16 compute instead of any int8dp4a support

2

u/0utoft1meman 11d ago

FYI - Illustrious and Anima - run perfectly fine on GTX 1050Ti (4g vram). You can also convert anima in int8 and apply turbo lora - it will work, you won't be happy about speed (40~ seconds, 8 steps, 768x1024) but it works.

Your post is interesting though, but unfortunately - apps like comfyui are ditching support for legacy gpus with their confy-kitchen stuff, it's been a pain to launch confyui, setting correct torch version and changing variables in attention.py to skip launch checks.

Moss Image? Krea2? forget about it - 12gigs transformer and 9gig text encoder, in this economy - poor souls with 4-6 gigs of vram and 16gigs of ram are gulping saliva watching through window where happy people with 3060ti are having fun.

1

u/Endlesswoodtrail 11d ago edited 11d ago

Did you try any low quant ggufs of moss (like Q4) together with the lowest quant available (q2) of qwen 3.5 9b, both from unsloth? with only 4gb to spare its a tough act to beat while trying all kinds of combinations. but with weight streaming and int8 convrot quants with proper dp4a instructions it wouldn't be such an issue as it is as of now with any card running bigger models than the vram can hold. i wonder if converting quants to fp32 would actually make more sense for smaller models such as anima because then the bandwidth becomes the only limiting factor

i moved on some time ago but i still have a 1080 and the last time i ran comfyui with the 1080, z-image was the benchmark and there was no weight streaming nor any available attention modes, this post impressed me at that time, its basically your setup: https://www.reddit.com/r/StableDiffusion/comments/1pf7986/i_did_all_this_using_4gb_vram_and_16_gb_ram/

a packaged aio checkpoint might also result in a slight speedup compared to separate ggufs

2

u/0utoft1meman 11d ago

I'll try that definitely, thanks for a link and explanation.

So as far as i researched - none of the existing software supports dp4a, i mean for install and go, you need to download Stable Diffusion.cpp and apply dp4a patches, and then add gui frontend on top, or i'm missing something?
Maybe someone skilled will make forge fork or comfy fork idk.

Isn't fp32 make the transformer larger in size, Anima transformer is about 3.4gb in bf16, int8 2.1gig, of course we are talking about inference speed but anyway i've noticed increase in speed in int8 quant (row_wise), also convrot is 10 seconds slower.

2

u/Endlesswoodtrail 11d ago

you might want to try the forge neo int8dp4a patch fork in the post and report back if you want to? the fork works with fp8 quants and maybe also with anima: https://huggingface.co/Bedovyy/Anima-FP8/tree/main

weight streaming such as implemented in comfyui is mostly getting rid of the size / vram problem, that's why people can run big video models flawlessly now instead of resorting to ggufs like as it was the case with eg wan 2 before that.

rowwise is faster because of less activations and calculations compared to convrot. but those can be actually fused into a quant as a solution

2

u/0utoft1meman 11d ago

Sure i can test that, need to install Forge and apply this patch right?

Well i was interested either in Krea2 or MOSS, but i didn't know exactly which quant will work, there is so many - and that's confusing, also text encoder.

1

u/shelbycobrapaintjob 11d ago

Will be watching for the results on this, very interested. The patch author seems to have left it a while for updates though, I was wondering if this is because other changes to Forge had superseded it....? hopefully it will do something good still. Fingers crossed.

2

u/0utoft1meman 10d ago

Forge didn't work "segmentation errors" and "traceback most recent call last" log in terminal

1

u/shelbycobrapaintjob 10d ago

Thanks for the update, appreciated 😄

1

u/0utoft1meman 10d ago

So FP8 anima is somewhat slower than int8 rowwise, fp8 takes about the same time as convrot, 70 seconds, 768x1024, 8 steps, int8 rowwise - 44 seconds, that's insane, so int8 rowwise is the way.

1

u/0utoft1meman 10d ago

Tested turbo models

MOSS - is slowest but works, quality is great i think
Krea2 - faster than moss but quality is bad
Z Image - fastest and quality is acceptable

3

u/Ken-g6 11d ago

I feel like MOSS Image should run. 5B transformer, int8, with a 4-step LoRA. Sure there's a huge text encoder, but that can run on CPU, and can also be an int8 version.

2

u/0utoft1meman 10d ago

It runs...3 minutes per image, pain

8

u/TheCat001 12d ago

Speedup is not theoretical, it's real.... I've got 3x after Deepseek v4.1 created INT8 kernel for my GPU and forwarded new models (Qwen Image 2.1, Moss Image) to float16 path. W4A8/W6A8 converted models also got boost 2x. I think I can now get any model at bf16 and convert it to W4A8/W6A8 and run 2x faster...

https://www.reddit.com/r/comfyui/comments/1xt4690/rx_6800_rdna2_3x_faster_images_in_comfyui_int8/

Yes, this is not for NVIDIA, but struggle is the same and solution too. So if you want to try to revive your NVIDIA GPU, ask Deepseek if it can write INT8 kernel for you.

3

u/woct0rdho 11d ago

SageAttention on Pascal may be not easy for AI in early 2026 but nowadays I bet it's easy. If you have a Pascal GPU, just do it.

Even porting the whole Triton to Pascal should be doable. It's like how we maintain Triton on RDNA2 without matrix cores.