Deploy a llama.cpp chatbot with KleidiAI on Arm servers
Introduction
Demo
Run a large language model chatbot on Arm servers
Access the chatbot using the OpenAI-compatible API
Next Steps
Deploy a llama.cpp chatbot with KleidiAI on Arm servers
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.
The server starts and listens on port
8080. After the server starts running, you can send OpenAI-compatible requests without restarting the process between calls.Yes. Install
jq with sudo apt install jq -y. You’ll use jq to process JSON returned by the API.Yes. The server exposes an OpenAI-compatible API over the network, so a remote client can call the host running the LLM if it can reach port
8080.Use a pre-quantized Llama 3.1 8B model from Hugging Face. Download the model to the Arm server before starting the server.
Send a
curl request to http://localhost:8080/v1/chat/completions with a JSON prompt, then pipe the response to jq -C. Save the request in curl-test.sh and run it with bash ./curl-test.sh.