Loading page

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

AI-assisted

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.

Close
?
You’ll build llama.cpp with CUDA and Arm KleidiAI on NVIDIA DGX Spark, benchmark three Gemma 4 models, and validate Hermes Agent with a local code-fixing task. First, you’ll check the Arm CPU and CUDA environment, then compile llama.cpp and compare GPU and CPU inference. You’ll serve Gemma 4 E4B through a local API and connect Hermes Agent to it. Finally, you’ll check that the agent repairs and runs a Python script.