NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[DGX Spark][Inference] Ollama /api/generate completely hangs on Spark aarch64 — zero response after 2+ minutes

Open zNeill opened this issue 6 months ago • 5 comments

Description

Description

Ollama API /api/generate returns no response on DGX Spark (aarch64 GB10). Tested with both nemotron-3-nano:30b and qwen2.5:7b — waited 2+ minutes, zero bytes returned. Ollama service is running and responds normally to metadata APIs (/api/tags, /api/show, /api/ps all return 200), but generate requests hang indefinitely. journalctl shows no /api/generate request logged at all — the request is accepted but never processed.

This is different from GitHub #2598 which reports 10-17s latency on v0.0.28. This is a complete hang (infinite timeout) on v0.0.37 with Ollama 0.23.2 on FastOS 1.135.29. No local inference is possible on Spark via Ollama, making the entire COMPUTEX express setup path non-functional.
Environment
Device:        DGX Spark (spark-dadc, 10.173.104.110)
OS:            DGX Spark FastOS 1.135.29 (2026-04-13, customer build)
Architecture:  aarch64
Node.js:       v22.22.2
npm:           10.9.7
Docker:        Docker 29.2.1
OpenShell CLI: openshell 0.0.36
NemoClaw:      v0.0.37
OpenClaw:      N/A (onboard not completed)
Ollama:        0.23.2
GPU:           NVIDIA GB10, Driver 580.142, CUDA 13.0
Total RAM:     121Gi (116Gi available after cleanup)
Steps to Reproduce
1. DGX Spark with Ollama 0.23.2 installed and service running
2. Verify Ollama responds: curl -s http://localhost:11434/api/tags (returns 200)
3. Verify models: ollama list (shows qwen2.5:7b and nemotron-3-nano:30b)
4. Send generate request:
   curl -s --max-time 120 http://localhost:11434/api/generate \
     -d '{"model":"qwen2.5:7b","prompt":"hi","stream":false}'
5. Wait 2 minutes
6. Repeat with nemotron-3-nano:30b — same result
Expected Result
Ollama returns a text response within a reasonable time (expected <10s for qwen2.5:7b on Spark hardware).
Actual Result
curl: (28) Operation timed out after 120001 milliseconds with 0 bytes received

ollama ps shows no model loaded (NAME column empty).
journalctl -u ollama shows metadata API calls (GET /api/tags, POST /api/show) but
NO /api/generate entries — the generate request is never logged/processed.
Logs
$ journalctl -u ollama --no-pager -n 10
May 08 07:39:39 spark-dadc ollama[1990154]: [GIN] 200 | 28.4µs | 127.0.0.1 | HEAD "/"
May 08 07:39:39 spark-dadc ollama[1990154]: [GIN] 200 | 11.92µs | 127.0.0.1 | GET "/api/ps"
(no /api/generate entries at all)

$ ollama ps
NAME    ID    SIZE    PROCESSOR    CONTEXT    UNTIL
(empty — no model loaded)

$ curl -v --max-time 120 http://localhost:11434/api/generate \
    -d '{"model":"qwen2.5:7b","prompt":"hi","stream":false}'
* Operation timed out after 120001 milliseconds with 0 bytes received

Bug Details

Field Value
Priority Unprioritized
Action Dev - Open - To fix
Disposition Open issue
Module Machine Learning - NemoClaw
Keyword DGX_Spark_OTA_Computex, NemoClaw, NEMOCLAW_GH_SYNC_APPROVAL, NemoClaw_Inference, NemoClaw-SWQA-RelBlckr-Recommended

[NVB#6157920]

zNeill avatar May 08 '26 10:05 zNeill

Disclosure: I work on Atlas, one of the OpenAI-compatible inference servers that runs on Spark. Answering generically about unblocking the local-inference path, not redirecting.

If Ollama's /api/generate is fully wedged on Spark aarch64 with no response after 2+ minutes, the symptom usually maps to one of two things: NVML probe choking on GB10's unified-memory layout (HAMi hit the same root cause, fix is Project-HAMi/HAMi#1841), or the model size exhausting the unified pool because the host RAM accounting is being treated as separate from GPU memory.

While that gets unstuck upstream, NemoClaw's vLLM managed-install path (just landed in #3007 / #3317) plus a couple of alternatives all expose OpenAI-compatible APIs, so anything routing chat-completions can be pointed at them without changes:

# Option 1: vLLM (NemoClaw managed install, per #3007)
# Option 2: Atlas Rust runtime, public Spark image
sudo docker run -d --name atlas \
  --network host --gpus all --ipc=host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  avarok/atlas-gb10:latest \
  serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \
    --port 8888 \
    --max-seq-len 16384 \
    --gpu-memory-utilization 0.88 \
    --kv-cache-dtype nvfp4 \
    --speculative --mtp-quantization nvfp4 \
    --enable-prefix-caching

# Then point NemoClaw at http://localhost:8888/v1

That one-liner gets you a ~133 tok/s OpenAI-compatible server on :8888 with MTP enabled. Recipe set covering the rest of the POR models (Qwen3.6-35B, Qwen3-Coder-Next, MiniMax, etc.) is at Avarok-Cybersecurity/atlas-recipes, each with its own README block.

Either alternative side-steps the Ollama hang while it's investigated.

tbraun96 avatar May 10 '26 23:05 tbraun96

Disclosure: I work on Atlas, one of the OpenAI-compatible inference servers that runs on Spark. Answering generically about unblocking the local-inference path, not redirecting.

If Ollama's /api/generate is fully wedged on Spark aarch64 with no response after 2+ minutes, the symptom usually maps to one of two things: NVML probe choking on GB10's unified-memory layout (HAMi hit the same root cause, fix is Project-HAMi/HAMi#1841), or the model size exhausting the unified pool because the host RAM accounting is being treated as separate from GPU memory.

While that gets unstuck upstream, NemoClaw's vLLM managed-install path (just landed in #3007 / #3317) plus a couple of alternatives all expose OpenAI-compatible APIs, so anything routing chat-completions can be pointed at them without changes:

# Option 1: vLLM (NemoClaw managed install, per #3007)
# Option 2: Atlas Rust runtime, public Spark image
sudo docker run -d --name atlas \
  --network host --gpus all --ipc=host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  avarok/atlas-gb10:latest \
  serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \
    --port 8888 \
    --max-seq-len 16384 \
    --gpu-memory-utilization 0.88 \
    --kv-cache-dtype nvfp4 \
    --speculative --mtp-quantization nvfp4 \
    --enable-prefix-caching

# Then point NemoClaw at http://localhost:8888/v1

That one-liner gets you a ~133 tok/s OpenAI-compatible server on :8888 with MTP enabled. Recipe set covering the rest of the POR models (Qwen3.6-35B, Qwen3-Coder-Next, MiniMax, etc.) is at Avarok-Cybersecurity/atlas-recipes, each with its own README block.

Either alternative side-steps the Ollama hang while it's investigated.

tbraun96 avatar May 10 '26 23:05 tbraun96

Disclosure: I work on Atlas, one of the OpenAI-compatible inference servers that runs on Spark. Answering generically about unblocking the local-inference path, not redirecting.

If Ollama's /api/generate is fully wedged on Spark aarch64 with no response after 2+ minutes, the symptom usually maps to one of two things: NVML probe choking on GB10's unified-memory layout (HAMi hit the same root cause, fix is Project-HAMi/HAMi#1841), or the model size exhausting the unified pool because the host RAM accounting is being treated as separate from GPU memory.

While that gets unstuck upstream, NemoClaw's vLLM managed-install path (just landed in #3007 / #3317) plus a couple of alternatives all expose OpenAI-compatible APIs, so anything routing chat-completions can be pointed at them without changes:

# Option 1: vLLM (NemoClaw managed install, per #3007)
# Option 2: Atlas Rust runtime, public Spark image
sudo docker run -d --name atlas \
  --network host --gpus all --ipc=host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  avarok/atlas-gb10:latest \
  serve Sehyo/Qwen3.5-35B-A3B-NVFP4 \
    --port 8888 \
    --max-seq-len 16384 \
    --gpu-memory-utilization 0.88 \
    --kv-cache-dtype nvfp4 \
    --speculative --mtp-quantization nvfp4 \
    --enable-prefix-caching

# Then point NemoClaw at http://localhost:8888/v1

That one-liner gets you a ~133 tok/s OpenAI-compatible server on :8888 with MTP enabled. Recipe set covering the rest of the POR models (Qwen3.6-35B, Qwen3-Coder-Next, MiniMax, etc.) is at Avarok-Cybersecurity/atlas-recipes, each with its own README block.

Either alternative side-steps the Ollama hang while it's investigated.

tbraun96 avatar May 10 '26 23:05 tbraun96

Closing since the requester can no longer reproduce the issue.

zyang-dev avatar May 18 '26 16:05 zyang-dev