| Skill level: | Introductory |
| Reading time: | 30 min |
| Last updated: | 26 Jun 2026 |
| Skill level: |
| Introductory |
| Reading time: |
| 30 min |
| Last updated: |
| 26 Jun 2026 |
This Learning Path is for developers and ML engineers who want to deploy Arcee's AFM-4.5B small language model on AWS Graviton4 instances using Llama.cpp.
Upon completion of this Learning Path, you will be able to:
Before starting, you will need the following:
c8g.4xlarge or larger) instancesThis 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 inference engine from source. With a dedicated Python virtual environment, you’ll retrieve Arcee’s AFM-4.5B model from Hugging Face, perform quantization, and run inference using llama.cpp on Graviton4. You’ll learn to make practical choices, including instance sizing, storage, dependency setup, and repository selection, so the model compiles and executes cleanly on Arm. By the end, you’ll perform a perplexity-based quality check to validate that the quantized model runs, and interpret the reported perplexity as an objective signal of model quality.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.
c8g.4xlarge (or larger) EC2 instance powered by Graviton4 and allocate at least 128 GB of available storage. Configure the volume size during instance launch in the EC2 service so the space is available before you build and run the model.https://github.com/ggerganov/llama.cpp as shown in the steps. Build from source because AFM-4.5B support was contributed upstream, so the standard repo contains the necessary modeling code.env-llama-cpp, isolates the Python interpreter and packages required for the model workflow and avoids conflicts with system packages.llama.cpp steps that load the quantized model and perform evaluation. Expect the program to load the model without errors and print a perplexity value you can use to compare quality across runs.