Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

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.

Close
?
Which operating system and instance setup do the steps target?
The steps are designed for Arm servers running Ubuntu 22.04 LTS. They were tested on an Amazon EC2 m7g.xlarge instance powered by Graviton3, and expect at least four cores, 16 GB of memory, and 32 GB of disk.
What should be ready before running the `agent.py` script?
Build 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.
Where should the model file be placed for the script to find it?
Place the downloaded model at the path referenced by model_path in agent.py. Keep the directory structure consistent with the code so the model loads without modification.
How do I know the agent used a function call rather than replying directly?
Check the script’s output for a selected tool/function name and its arguments, followed by the function’s return data. If the agent replies directly, you will see a model-generated response without a function invocation.
How are functions exposed to the LLM in this application?
Functions are declared in agent.py and registered through llama-cpp-agent. The LLM analyzes the input and selects among the predefined functions based on intent and context.

Share

Tell others about this Learning Path.

Return to Servers and Cloud Computing