For those who would like to play around with vLLM OMNI for image generation and the newest Qwen-Image-2.1 like me, I would like to share the following files for creating a vLLM OMNI docker image for our sparks.
For transparency: it’s a side product of testing agent harnesses. It started with Hermes Agent Desktop (using DS4F on a regular x86_64 linux system with RTX 5090) and after a successful build on that platform, I failed to reproduce it on my Spark. So that the fix for the GB10 version was made by Claude Desktop.
But back to the original topic. The official release does not support Qwen/Qwen-Image-2.1 yet.
My first approach was working for the official vLLM image on a RTX 5090, but not for the GB10 chip with my my favorite community image. That is not “standard” - so it needs some patching which is done in the Dockerfile. More details in the comments of the Dockerfile.
It is using the 20260921 build - Package dgx-vllm-eugr-nightly-b12x · GitHub - as base - that version was tested on my spark. Later versions might break, but at some point the Qwen-Image-2.1 will land in the official release.
Just copy the Dockerfile and docker-compose.yml onto your spark and start it with:
docker compose up -d --build
For adjusting the port and/or adding a HF_TOKEN create a .env as in:
PORT=8091
HF_TOKEN=hf_asUcanSEE…
and you will have an endpoint on port 8091 to play with.
Thanks for running it! ~40 s vs our 54 s with plain diffusers at the same 1024² / 40 steps, with similar memory (~30 GB vs 31.6 GB), so vLLM-OMNI looks like the faster way to serve it on the Spark. I’ll add a pointer to your numbers in my post.