After finally getting my hands on a GB10 I ran some simple torch and diffusers Python code to see how quickly Z-Image-Turbo (BF16 mostly) can generate images on this little magic box. So I used 9 steps, 1024x1024, same prompt: “A dog chasing a stick thrown by an astronaut on the moon, with a lunar lander in the background, and the Earth on the horizon”. Results:
What
time (secs)
Default attention, BF16, no compile
12.1
Sage attention, BF16, no compile
13.2
Flash attention, BF16, no compile
12.9
Default attention, BF16, compile
8.1
Default attention, GGUF Q8_0, compile
9.1
The time is average of the last 5 runs, ignoring the first 2 runs. Interestingly it took 2 runs for torch’s lazy compile to finish its job, those runs taking about 30s each. For me, 8s is not bad at all.
I’m wondering if I can run in BF8. I can see Nvidia’s TransformerEngine could be of use, but I haven’t tried installing it yet. And the code would be a little less simple. Anyway, I’ll post a few more results in this thread.
I’m now getting 7.2s per 1024x1024 image with Z-Image-Turbo (9 steps). I suppose the nearly one second speedup is due to the latest updates, nothing else has changed. Meanwhile, with SDXL 1.0, 1024x1024 image, 30 steps, guidance 7.5, I’m getting 11.3s per image. Will probably try Qwen-Image and Flux.2-Klein next.
I tried Qwen Image 2512. A 1024x1024 image, 50 steps. Took around 61s, or around 1 minute. Takes up a lot of memory (around 50%). I think I might try the FP8 version.
I tried FLUX.2-klein-9B. It’s a distilled model designed to run in just 4 steps. Giving it my standard prompt and a desired1024x1024 image, it takes my GX10 about 4.4s to generate an image. This model and Z-Image-Turbo are pretty good quality.
So far results are:
Model
Number of steps
Generation time
Z-Image-Turbo
9
7.2s
SDXL 1.0
30
11.3s
Qwen-Image-2512
50
61.0s
ERNIE-Image-Turbo
8
11.2s
FLUX.2-klein-9B
4
4.4s
with generation time being how long it takes to generate an image after we have compiled the pipeline. Which can take a few goes due to the lazy nature of torch’s compile process.
Next, I want to try some image editing with FLUX.2-klein-9B and maybe a quantised version of Qwen-Image-Edit-2511.
I made two changes for Krea2-Turbo. One was to add:
torch.set_float32_matmul_precision('high')
That improved it from 39.3s to around 32s. Then I set an environment flag:
export DIFFUSERS_ATTN_BACKEND=_native_cudnn
And that improved Krea2-Turbo to 13.9s. It also improved ERNIE-Image from 11.2s to 8.8s. No improvement for ZImageTurbo. Haven’t tested yet for the others.
Do you have a repo where you share your diffuser’s test code? Might be interesting to share if you don’t mind. Comfyui is nice but maybe dropping to more basic diffuser code might actually be best on DGX spark.
With NVFP4 quantisation as described in this post:
I have seen some significant speed-ups:
Model
Steps
Gen time
Gen time (NVFP4)
Z-Image-Turbo
9
7.2.s
5.6s
ERNIE-Image-Turbo
8
8.8s
6.4s
FLUX.2-klein-9B
4
4.4s
3.3s
Krea2-Turbo
8
13.9s
12.4s
Curious to see not much improvement for Krea2-Turbo. Oh well, hopefully that project in the aforementioned thread takes off and adds more models and even better optimisations. It’s been interesting to see how fast image generation is on the GB10 just using the diffusers library.
This quantization would work for FLUX.2-klein-9B too. just change in model cards that you using not dev but that one and it should work. plus Dev and 9B has edit image option that is big advantage compared to other 2 libs