Developer Guide Overview
This section is for contributors and integrators who change xLLM or build on its extension points. Start with the request path, then move on to the extension guides and the tooling used to validate accuracy, performance, and profiles.
Architecture
Section titled “Architecture”| Page | What it covers |
|---|---|
| Code Architecture and Request Flow | Trace a request from xllm.cpp through the scheduler, engine, and workers. |
| C++ Serving and Python Model Execution | Why xLLM runs Python models inside the C++ serving path and how the layers interact. |
| DiT Architecture and Capability Matrix | The C++ diffusion inference path and its capability boundaries. |
| Graph Execution and Memory Reuse | Graph Mode, dynamic dimensions, piecewise graphs, and the reusable memory pool. |
Extend xLLM
Section titled “Extend xLLM”| Page | What it covers |
|---|---|
| xLLM-Kernel Development Guide | Add operators and implementations for Python models. |
| TileLang Kernel Development on Ascend NPU | Add a kernel or a specialization and wire its runtime wrapper. |
| Extending Auto Config | Add a tuned launch config for a new model_type. |
| Native C++ Extensions | Build and load a native library that registers new implementations. |
Validate and profile
Section titled “Validate and profile”| Page | What it covers |
|---|---|
| Accuracy Evaluation with EvalScope | Measure LLM and VLM answer accuracy through the OpenAI-compatible API. |
| Inference Benchmarking with EvalScope | Measure latency and throughput with streaming workloads. |
| Profiling a Running Service | Collect a timeline from a live server with /start_profile and /stop_profile. |
| AI-Assisted Development Workflow | Structure optimization and debugging work so results are reproducible. |
Reference
Section titled “Reference”- CLI Reference lists the startup parameters and their defaults.
- CookBook has deployment recipes for each model family.
- Supported Models compares documented hardware support.