| Skill level: | Introductory |
| Reading time: | 45 min |
| Last updated: | 26 Jun 2026 |
| Skill level: |
| Introductory |
| Reading time: |
| 45 min |
| Last updated: |
| 26 Jun 2026 |
This is an introductory topic for software developers and ML engineers looking to deploy an optimized AI agent application.
Upon completion of this Learning Path, you will be able to:
Before starting, you will need the following:
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.
llama.cpp and the llama-cpp-agent framework with KleidiAI optimizations. After preparing an Arm-based Ubuntu environment and obtaining a quantized Llama 3.1 8B model, you’ll create agent.py to connect the model to tool functions and structured outputs. You’ll learn how the agent selects functions based on input intent, then test the end-to-end workflow to observe tool invocation and responses. By the end, you’ll run an AI agent backed by an optimized LLM, verify that the model loads, and inspect outputs that demonstrate function selection and result handling.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.
m7g.xlarge instance powered by Graviton3, and expect at least four cores, 16 GB of memory, and 32 GB of disk.llama.cpp and download the quantized Llama 3.1 8B model. Ensure the Python dependencies, including llama-cpp-agent and llama-cpp-python, are installed in the active environment.model_path in agent.py. Keep the directory structure consistent with the code so the model loads without modification.agent.py and registered through llama-cpp-agent. The LLM analyzes the input and selects among the predefined functions based on intent and context.