Run Hermes Agent with local Gemma 4 and llama.cpp on NVIDIA DGX Spark
Introduction
Explore the local agent architecture on DGX Spark
Build llama.cpp from source for NVIDIA DGX Spark
Download and benchmark Gemma 4 models on DGX Spark
Serve Gemma 4 E4B with a 64K context window
Install and configure Nous Research Hermes Agent
Validate Hermes Agent code fixing on NVIDIA DGX Spark
Next Steps
Run Hermes Agent with local Gemma 4 and llama.cpp on NVIDIA DGX Spark
Introduction
Explore the local agent architecture on DGX Spark
Build llama.cpp from source for NVIDIA DGX Spark
Download and benchmark Gemma 4 models on DGX Spark
Serve Gemma 4 E4B with a 64K context window
Install and configure Nous Research Hermes Agent
Validate Hermes Agent code fixing on NVIDIA DGX Spark
Next Steps
Review frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Run
uname -m and confirm it prints aarch64. Use lscpu to check for 20 CPU cores: 10 Cortex-X925 and 10 Cortex-A725. Run lscpu -e=CPU,CORE,MAXMHZ,MODELNAME to inspect the logical CPU IDs and core types.Download the
Q4_0 GGUF files for Gemma 4 E4B, 26B-A4B, and 31B into ~/hermes-gemma4/llama.cpp/models/. Use hf download commands, then check that all three files are present with ls -lh ./models/gemma-4-*.gguf.Keep
llama-server running, then check http://127.0.0.1:8080/v1/models for the E4B model ID. Send the test request to /v1/chat/completions, and confirm that the response contains a reply and token usage. Use the reported model ID when you configure Hermes Agent.Press Ctrl+C to exit Hermes Agent Setup Wizard. Then, use
hermes config set commands to select the local provider, set model.base_url to http://127.0.0.1:8080/v1, and select the E4B GGUF model. Confirm your settings with hermes config show.Run the agent prompt from
~/hermes-test-workspace with Gemma 4 E4B active on your local llama-server. Check that Hermes Agent reads metrics_parser.py, changes both faulty lines, runs python3 metrics_parser.py, and reports Average latency: 30.00 ms.