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
Who is this for?
Developers familiar with Linux, CMake, and LLM inference who want to run a local AI agent on NVIDIA DGX Spark.
What will you learn?
After completing this Learning Path, you'll be able to perform the following tasks:
- Compile llama.cpp from source on NVIDIA DGX Spark with CUDA and Arm KleidiAI optimizations.
- Download Gemma 4 E4B, 26B-A4B Mixture-of-Experts (MoE), and 31B from Hugging Face and benchmark GPU and CPU performance.
- Serve Gemma 4 E4B on the GB10 GPU with a 64K context window and quantized key-value (KV) cache using llama-server.
- Configure Nous Research Hermes Agent to use a local OpenAI-compatible endpoint and validate autonomous code-fixing workflows.
Prerequisites
Before starting, you'll need the following prerequisites:
- An NVIDIA DGX Spark system (GB10 with 128 GB unified memory) running Ubuntu 24.04 LTS
- At least 45 GB of free disk space for building llama.cpp and storing Gemma 4 models
- Familiarity with the Linux command line, CMake builds, and basic large language model (LLM) inference concepts
Summary
This summary was 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.