# Next Steps

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/)
- [Overview](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/1_overview/)
- [Explore llama.cpp architecture and the inference workflow](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/2_llama.cpp_intro/)
- [Integrate Streamline Annotations into llama.cpp](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/3_llama.cpp_annotation/)
- [Analyze token generation performance with Streamline profiling](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/4_analyze_token_prefill_decode/)
- [Analyze operators with channel annotations](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/5_operator_deepdive/)
- [Examine multi-threaded performance patterns in llama.cpp](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/6_multithread_analyze/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama_cpp_streamline/_next-steps/)

## Explore related resources
Find more information about the topics in this Learning Path:
- [llama.cpp project](https://github.com/ggml-org/llama.cpp)
- [Build and run llama.cpp on Arm servers](https://learn.arm.com/learning-paths/servers-and-cloud-computing/llama-cpu/)
- [Run a Large Language Model chatbot with PyTorch using KleidiAI](https://learn.arm.com/learning-paths/servers-and-cloud-computing/pytorch-llama/)
- [Arm Streamline User Guide](https://developer.arm.com/documentation/101816/9-7)
- [KleidiAI project](https://github.com/ARM-software/kleidiai)

## 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.

### How do I know that the marker annotations are working in Streamline?
During capture, look for marker annotations on the Streamline timeline. Each marker annotation is added before `llama_decode()` and records the start of a token-generation event. Marker annotations include values such as `past` and `n_eval`. If marker annotations don’t appear, rebuild `llama.cpp` with the annotation changes and run the annotated `llama-cli`.

### What do I need on the Arm target before starting a profiling capture?
Ensure that the `gator` daemon is configured and running on the Arm system. Place the built `llama-cli` and the required model files on the target so that Streamline can capture a representative run.

### How do I differentiate prefill and decode phases in the results?
Use the inserted marker annotations to identify each stage in the Streamline timeline. Prefill is compute-intensive and decode is memory-bound, so compare their annotated ranges to understand where time is spent.

### How can I analyze operator-level performance with channel annotations?
Enable channel annotations in the annotation integration so that Streamline displays separate lanes for grouped operations. Inspect the channel annotation lanes to see operator timing and overlaps during token generation.

### How do I evaluate multi-core or multi-thread execution?
Capture a token generation run and use the marker and channel annotations to correlate work across cores and threads. Compare behavior during prefill and decode phases to see how execution is distributed.
