# Run VLLM in Spark

**URL:** <https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862>\
**Category:** DGX Spark / GB10\
**Created:** [October 24, 2025, 4:52pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862 "2025-10-24T16:52:57Z")\
**Posts on this page:** 19\
**Page:** 8

<div class="post-metadata">

**Author:** ![wdhong](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wdhong](https://forums.developer.nvidia.com/u/wdhong)\
**Post date:** [January 22, 2026, 2:05am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/143 "2026-01-22T02:05:03Z")

</div>

Can I concurrently run both oss-20B and oss-120B? I’m currently utilizing TensorRT for simultaneous execution, but I’m experiencing significant performance degradation.

---

<div class="post-metadata">

**Author:** ![PrinceHal](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/princehal/32/451063_2.png) [@PrinceHal](https://forums.developer.nvidia.com/u/PrinceHal)\
**Post date:** [January 22, 2026, 2:18am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/144 "2026-01-22T02:18:26Z")

</div>

You would have to launch two instances of vllm on different ports. Would that work for you?

---

<div class="post-metadata">

**Author:** ![eugr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/eugr/32/449615_2.png) [@eugr](https://forums.developer.nvidia.com/u/eugr)\
**Post date:** [January 23, 2026, 12:48am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/145 "2026-01-23T00:48:26Z")

</div>

You can run two separate instances of vLLM on different ports, like @PrinceHal suggested, just make sure you set `--gpu-memory-utilization` accordingly, so both take less than 0.9 of total VRAM (e.g. 0.2+0.7).

If you want to access both on a single port, or launch/unload on demand, you can try [llama-swap](https://github.com/mostlygeek/llama-swap) or it’s fork [llmsnap](https://github.com/napmany/llmsnap) which has some vLLM additions.

---

<div class="post-metadata">

**Author:** ![christopher\_owen](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/christopher_owen/32/469895_2.png) [@christopher\_owen](https://forums.developer.nvidia.com/u/christopher_owen)\
**Post date:** [January 31, 2026, 9:59am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/146 "2026-01-31T09:59:31Z")

</div>

> [@wdhong](#):
>
> significant performance degradation.

Not sure if it would be helpful for you, but you could give this a shot for improving performance:

[https://forums.developer.nvidia.com/t/vllm-on-gb10-gpt-oss-120b-mxfp4-slower-than-sglang-llama-cpp-what-s-missing/](https://forums.developer.nvidia.com/t/vllm-on-gb10-gpt-oss-120b-mxfp4-slower-than-sglang-llama-cpp-what-s-missing/)

---

<div class="post-metadata">

**Author:** ![lkesem](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@lkesem](https://forums.developer.nvidia.com/u/lkesem)\
**Post date:** [April 1, 2026, 2:06pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/147 "2026-04-01T14:06:00Z")

</div>

Hey, can you please update with the instruction to run on vllm with spark GB10(in virtual env)?

currently I am hitting this error after when sending the curl request:

> (EngineCore pid=419501) out, softmax\_lse = torch.ops.\_vllm\_fa2\_C.varlen\_fwd(
> 
> (EngineCore pid=419501) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> (EngineCore pid=419501) File “/home/lkesem/.venv/lib/python3.12/site-packages/torch/\_ops.py”, line 1269, in \__call_\_
> 
> (EngineCore pid=419501) return self.\_op(\*args, \*\*kwargs)
> 
> (EngineCore pid=419501) ^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> (EngineCore pid=419501) torch.AcceleratorError: CUDA error: the provided PTX was compiled with an unsupported toolchain.
> 
> (EngineCore pid=419501) Search for `cudaErrorUnsupportedPtxVersion' in ￼ for more information.￼`

I am using those packages:

```auto

[pip3] torch==2.11.0+cu130

[pip3] torch_c_dlpack_ext==0.1.5

[pip3] torchaudio==2.11.0+cu130

[pip3] torchvision==0.26.0+cu130

PyTorch version : 2.11.0+cu130

```

i build it with  
`TORCH_CUDA_ARCH_LIST=“12.0;12.1” MAX_JOBS=12 pip install -vv --no-build-isolation -e . `

i used the recent vllm – which means that the cmake change apply(the patch)  
i used `python use_existing_torch.py`

without pointing to PTX.

and run into the same error building with:  
export TRITON\_PTXAS\_PATH=/usr/local/cuda/bin/ptxas

---

<div class="post-metadata">

**Author:** ![eugr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/eugr/32/449615_2.png) [@eugr](https://forums.developer.nvidia.com/u/eugr)\
**Post date:** [April 1, 2026, 4:31pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/148 "2026-04-01T16:31:07Z")

</div>

At this point, I’d suggest to just use our community Docker: [GitHub - eugr/spark-vllm-docker: Docker configuration for running VLLM on dual DGX Sparks · GitHub](https://github.com/eugr/spark-vllm-docker)

It is battle tested, has a CI pipeline that generates nightly wheels and runs the resulting image through a series of regression tests. We keep a close eye on the most recent developments and sometimes include PRs that are not

It’s also used by other QOL projects, like sparkrun.

---

<div class="post-metadata">

**Author:** ![Marsy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/marsy/32/456092_2.png) [@Marsy](https://forums.developer.nvidia.com/u/Marsy)\
**Post date:** [April 28, 2026, 5:28am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/149 "2026-04-28T05:28:47Z")

</div>

Why stop at _ **2 or 3** _ nodes? :)

---

<div class="post-metadata">

**Author:** ![raphael.amorim](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/raphael.amorim/32/446733_2.png) [@raphael.amorim](https://forums.developer.nvidia.com/u/raphael.amorim)\
**Post date:** [April 29, 2026, 7:54pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/150 "2026-04-29T19:54:52Z")

</div>

we have not stopped at 2 nodes, there’s a 3-nodes mesh guide:

> **[3-Node Mesh Networking on DGX Spark with spark-vllm-docker and sparkrun |...](https://blog.spark-arena.com/posts/2-three-node-mesh/three-node-mesh/)**
>
> by \[@eugr\](https://forums.developer.nvidia.com/u/eugr/summary) and \[@dbsci\](https://forums.developer.nvidia.com/u/dbsci/summary)

---

<div class="post-metadata">

**Author:** ![Marsy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/marsy/32/456092_2.png) [@Marsy](https://forums.developer.nvidia.com/u/Marsy)\
**Post date:** [April 29, 2026, 8:45pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/151 "2026-04-29T20:45:38Z")

</div>

Fixed :) ( 3 \< # )

---

<div class="post-metadata">

**Author:** ![dbsci](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dbsci/32/467918_2.png) [@dbsci](https://forums.developer.nvidia.com/u/dbsci)\
**Post date:** [April 29, 2026, 9:55pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/152 "2026-04-29T21:55:12Z")

</div>

4? 5? 6? 7? 8?

Don’t worry. We can keep going ;-)

(sparkrun, community docker, they do it!)

---

<div class="post-metadata">

**Author:** ![Marsy](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/marsy/32/456092_2.png) [@Marsy](https://forums.developer.nvidia.com/u/Marsy)\
**Post date:** [May 10, 2026, 3:37am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/153 "2026-05-10T03:37:05Z")

</div>

Yes!

Though I would not recommend anything but 1, 2, 4, and 8. Some model architectures just fail with non-power of twos cluster. At least for me running MiniMax-M2.7 (full precision) on 4 node cluster in a 100gbe network. When I attempted to 6 nodes, it would fail using the latest VLLM image from Nvidia (26.04-py3).

Though I would like to be proven wrong.

---

<div class="post-metadata">

**Author:** ![erlendboe](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erlendboe](https://forums.developer.nvidia.com/u/erlendboe)\
**Post date:** [June 7, 2026, 9:01am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/154 "2026-06-07T09:01:48Z")

</div>

I now (7 June 2026) get this error ( **cudaErrorUnsupportedPtxVersion** ) with the community docker.

I’m on a single DGX Spark.  
I have done the following:

$ git pull  
$ docker builder prune  
$ ./build-and-copy.sh  
$ ./run-recipe.sh qwen3.5-122b-int4-autoround --solo

@eugr How can I debug this and find out where the problem is? Are there any commands that I can run to get system information that can pinpoint the problem?

$ nvcc --version  
nvcc: NVIDIA (R) Cuda compiler driver  
Copyright (c) 2005-2026 NVIDIA Corporation  
Built on Thu\_Mar\_19\_11:11:41\_PM\_PDT\_2026  
Cuda compilation tools, release 13.2, V13.2.78  
Build cuda\_13.2.r13.2/compiler.37668154\_0

$ which nvcc  
/usr/local/cuda/bin/nvcc

$ ls -al /usr/local/cuda  
lrwxrwxrwx 1 root root 22 Sep 13 2025 /usr/local/cuda → /etc/alternatives/cuda

$ ls -l /etc/alternatives/cuda  
lrwxrwxrwx 1 root root 20 May 31 11:57 /etc/alternatives/cuda → /usr/local/cuda-13.2

LD\_LIBRARY\_PATH is not set. Should it be? (LD\_LIBRARY\_PATH=/usr/local/cuda-13.2/compat)

$ apt list --installed | grep cuda-lib

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

cuda-libraries-13-0/unknown,now 13.0.3-1 arm64 [installed,automatic]  
cuda-libraries-13-2/unknown,now 13.2.1-1 arm64 [installed,automatic]  
cuda-libraries-dev-13-0/unknown,now 13.0.3-1 arm64 [installed,automatic]  
cuda-libraries-dev-13-2/unknown,now 13.2.1-1 arm64 [installed,automatic]

$ apt list --installed | grep cuda-compat

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

cuda-compat-13-2/unknown,now 595.71.05-1ubuntu1 arm64 [installed]

---

<div class="post-metadata">

**Author:** ![eugr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/eugr/32/449615_2.png) [@eugr](https://forums.developer.nvidia.com/u/eugr)\
**Post date:** [June 7, 2026, 3:24pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/155 "2026-06-07T15:24:22Z")

</div>

> [@erlendboe](#):
>
> cudaErrorUnsupportedPtxVersion

Can you post an output of `nvidia-smi`? I can’t reproduce on my Sparks, but I think I’ve seen that on a machine that had 595.xx driver installed.

---

<div class="post-metadata">

**Author:** ![erlendboe](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erlendboe](https://forums.developer.nvidia.com/u/erlendboe)\
**Post date:** [June 7, 2026, 6:18pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/156 "2026-06-07T18:18:02Z")

</div>

$ nvidia-smi  
Sun Jun 7 20:16:22 2026  
±----------------------------------------------------------------------------------------+  
| NVIDIA-SMI 580.159.03 Driver Version: 580.159.03 CUDA Version: 13.0 |  
±----------------------------------------±-----------------------±---------------------+  
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |  
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |  
| | | MIG M. |  
|=========================================+========================+======================|  
| 0 NVIDIA GB10 On | 0000000F:01:00.0 On | N/A |  
| N/A 49C P0 11W / N/A | Not Supported | 0% Default |  
| | | N/A |  
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+  
| Processes: |  
| GPU GI CI PID Type Process name GPU Memory |  
| ID ID Usage |  
|=========================================================================================|  
| 0 N/A N/A 9266 G /usr/lib/xorg/Xorg 416MiB |  
| 0 N/A N/A 10427 G /usr/bin/gnome-shell 207MiB |  
| 0 N/A N/A 10649 G /usr/bin/kalendarac 6MiB |  
| 0 N/A N/A 11546 G …bin/akonadi\_archivemail\_agent 6MiB |  
| 0 N/A N/A 11559 G …/bin/akonadi\_mailfilter\_agent 452MiB |  
| 0 N/A N/A 11567 G /usr/bin/akonadi\_sendlater\_agent 6MiB |  
| 0 N/A N/A 11568 G …/akonadi\_unifiedmailbox\_agent 6MiB |  
| 0 N/A N/A 429777 C+G …writer/86/usr/bin/ghostwriter 272MiB |  
| 0 N/A N/A 508702 C VLLM::EngineCore 10151… |  
±----------------------------------------------------------------------------------------+

---

<div class="post-metadata">

**Author:** ![eugr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/eugr/32/449615_2.png) [@eugr](https://forums.developer.nvidia.com/u/eugr)\
**Post date:** [June 7, 2026, 8:41pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/157 "2026-06-07T20:41:16Z")

</div>

> [@erlendboe](#):
>
> cudaErrorUnsupportedPtxVersion

Interesting. Can you try to launch with `--no-cache-dirs` and see if that happens again?

---

<div class="post-metadata">

**Author:** ![erlendboe](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@erlendboe](https://forums.developer.nvidia.com/u/erlendboe)\
**Post date:** [June 8, 2026, 5:45am UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/158 "2026-06-08T05:45:40Z")

</div>

I get the same error when I do:  
./run-recipe.sh qwen3.5-122b-int4-autoround --solo --no-cache-dirs

Are there any other things that I can check?

---

<div class="post-metadata">

**Author:** ![eugr](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/eugr/32/449615_2.png) [@eugr](https://forums.developer.nvidia.com/u/eugr)\
**Post date:** [June 8, 2026, 3:18pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/159 "2026-06-08T15:18:26Z")

</div>

OK, I was able to reproduce on one of my Sparks, will likely have to downgrade the base image.

---

<div class="post-metadata">

**Author:** ![david.gareth.roberts](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@david.gareth.roberts](https://forums.developer.nvidia.com/u/david.gareth.roberts)\
**Post date:** [August 6, 2026, 8:08pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/160 "2026-08-06T20:08:05Z")

</div>

For anyone here chasing fast multi-model swapping on the Spark’s unified memory — I ended up writing a small vLLM plugin for it and just open-sourced it: [GitHub - dgr237/vllm-snapshot: Fast model suspend/restore for vLLM sleep mode — snapshot weights to disk and swap models on one GPU in seconds, not minutes. · GitHub](https://github.com/dgr237/vllm-snapshot) .

vLLM’s sleep mode gets you most of the way (it keeps the process + CUDA graphs warm), but on GB10 a level-2 wake still has to re-run reload\_weights, which was ~82s (safetensors) / ~30 min (instanttensor) for a 26B NVFP4 MoE here — and it’s a processing wall, not disk I/O, so faster loaders don’t help. The plugin snapshots the built weight regions byte-for-byte to disk and restores them with a bulk cudaMemcpy: ~1.6s restore, ~9s full swap, correct and reproducible.

It’s a native plugin (adds /suspend and /restore to vanilla vLLM’s server — no external runtime), with an autosuspend option + a Compose depends\_on pattern so N models boot one-at-a-time instead of OOM-ing the box. Research prototype, only validated on GB10/SM121 so far — feedback and swap numbers from other setups very welcome.

---

<div class="post-metadata">

**Author:** ![swesty](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@swesty](https://forums.developer.nvidia.com/u/swesty)\
**Post date:** [August 6, 2026, 9:29pm UTC](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862/161 "2026-08-06T21:29:53Z")

</div>

Since this thread is where a lot of us landed while fighting vLLM on the Spark, I wrote up the timeline I’ve worked through since December in case it saves anyone the hours:

- [Field notes: the Hard Way](https://blog.swesty.net/blog/vllm-on-dgx-spark-gb10-field-notes/) — what broke, which images actually work today, the FP4 checkpoint-format rule, unified-memory OOM math, and measured tok/s.

- [Technical report: the Complete Guide](https://blog.swesty.net/blog/vllm-dgx-spark-technical-report/) — the kernel-level why: sm\_121, CUTLASS/FlashInfer/Marlin, NVFP4/MXFP4/FP8 wiring, and how vLLM’s backend oracle picks a path.

Most of this is much less of a problem since ~May '26, but the why still helps for tuning. I’m no expert — if you spot a technical mistake in either, please tell me. Happy to learn from it.

[Previous page](https://forums.developer.nvidia.com/t/run-vllm-in-spark/348862.md?page=7)
