Recipe by Vaishak Salin · based on Ollama, Google, NVIDIA

License: Blog post, no license stated · Ollama: MIT · Google: Apache-2.0.

TESTED BY Vaishak Salin on 1x DGX Spark (GB10, 128 GB), Ollama, Q4_K_M · their results (benchmark table)

Gemma 4 31B on one DGX Spark with Ollama

EASY: one DGX Spark, one command, 20 GB download.

FOROne NVIDIA DGX Spark.
NEEDOllama. The install line below is NVIDIA’s.
WHYTop Arena score for chat, writing and images among models with a tested one-Spark run. Slow: 9.4 tok/s in this test.
INSTALL
curl -fsSL https://ollama.com/install.sh | sh
RUN
ollama run gemma4:31b
CHECKollama ps. It should say 100% GPU.
SAFETYOllama answers on this Spark only (port 11434) unless you change OLLAMA_HOST.

OR · LET A CODING AGENT DO IT

PASTEInto Claude Code, Codex or Cursor:
On my NVIDIA DGX Spark, install Ollama with NVIDIA’s line (curl -fsSL https://ollama.com/install.sh | sh) if it is missing, then pull and start gemma4:31b.
Check with ollama ps that it runs 100% on the GPU and tell me the result.
Ask me before changing any system settings.
If it fails

From the original README, shortened. Read it for full details.

What they tested

Not shown in their results: Five requests per run; the author calls the numbers directional. Tested April 12, 2026 with the Ollama of that time. The post names Ollama Q4_K_M, not the exact tag. No long-document or image test.

RunCards does not test recipes. We only list recipes whose authors publish their own test results. Checked 2026-10-19.

Who made what

The post names Ollama and the Gemma 4 31B model. The install line is from NVIDIA’s Ollama playbook for DGX Spark.