The Ollama journal shows "unable to find a kv cache slot"

The story of parallelization :)
With one idle Thor I am using it to compute some takeaways from research publications using handmade query.

With 2 parallel workers and num_ctx=8192, the combined KV cache (2 x 8192 = 16K entries) exceeds what fits alongside the 5.3 GB model in GPU memory.

The second concurrent request fails because there’s no room.

The current fix is to reduce NUM_CTX to 4096 so both workers fit (2 x 4096 = 8K entries)

Anyone here with a similar experiences?

I found that my earlier crash with 2 workers wasn’t a memory issue – it was a corrupted CUDA driver (syncpoint allocation failures) / moving into some corrective actions - stay tuned :)

Is it possible that the Thor’s CUDA driver can’t handle 2 concurrent inference streams?

Hi,

Thor can handle multiple streams.
Do you meet the same issues when using num_ctx=4096?

In our previous experiment, Ollama allocates memory incrementally, and it might causes issues in the case that memory is tight.
Have you tried other LLM frameworks like vLLM?

Thanks.

  1. Q1 on Ollama with gemma3:27b → failing (EOF crashes, num_ctx=32768 too large for Jetson allocator)

  2. Decided to migrate to vLLM → installed it, downloaded gemma-3-27b-it (55 GB)

  3. vLLM failed to start → libtorch_cuda.so: cannot open shared object file

  4. Root cause: pip install vllm pulled CPU-only PyTorch (torch 2.9.1+cpu) because there are no CUDA aarch64 PyPI wheels for Python 3.12 on Jetson

  5. Installed CUDA toolkit 13.0 (nvcc now available at /usr/local/cuda-13.0/bin/nvcc) but still no CUDA torch available

vLLM cannot currently run on this Thor system until PyTorch with CUDA 13 support for aarch64 is available. NVIDIA or PyTorch.org may eventually publish aarch64+CUDA13 wheels for Python 3.12

Am I seeing it still wrong?

Hi,

You can find the vLLM container below:

Below is an example for Gemma3 27B for your reference:

Thanks.