qix user documentation¶
qix is an LLM inference server with a paged KV cache. The work that other
engines do in Python on every step runs in C++ here: the scheduler, the KV block manager, the
batch assembler, the HTTP server, the tokenizer and the chat template. Python loads the model,
runs the forward pass on the GPU, and holds policy and configuration. The server speaks the
OpenAI HTTP API (/v1/chat/completions, /v1/completions). One command, qix-serve, reads the
GPU, the GPU count and the checkpoint's config.json, picks a serving layout from a serving
profile, and starts one process or several copies behind a local router.
These pages describe the tree as it is. A feature that is still in review is not described here.
Pages¶
| Page | What it covers |
|---|---|
| installation.md | The two ways to install (the wheel with uv or pip, or a source build), what the machine needs, and what each way puts where |
| build-from-source.md | The CMake commands, the CUDA architectures a build targets, and the tests |
| quickstart.md | Start a server on one GPU, send a request, read the start-up log |
| openai-server.md | Every HTTP route, the request fields read and ignored, tool calls, structured output, streaming |
| configuration.md | What auto-configuration derives, serving profiles, and the flags qix-serve takes |
| supported-models.md | The model architectures qix loads, the profiles that cover them, and the GPU families those profiles have rules for |
| model-validation.md | What the CPU planning check proves for each model, and what still needs a GPU |
| plugins.md | The plugin ABI headers, what the plugin host loads, which hooks the engine calls, and the Python provider registry |
| not-included.md | Parts that are not in this repository |
| trusted-network.md | What qix listens on and what it trusts |
| operations.md | Readiness, shutdown, sleep and wake, the queue cap and upgrades |
| metrics.md | What GET /metrics returns |
Terms used on these pages¶
- Rank: one
python3 -m tnd.serveprocess. It loads the model (or its share of the model) on its GPU(s) and serves HTTP. - Copy: one rank, or one group of ranks, that serves requests on its own.
- Node router:
tnd-node-router, the C++ front end thatqix-servestarts when it runs more than one copy, or an expert-parallel group, on one host. - Serving profile: a JSON file under
csrc/serve_auto/profiles/that says, for one family of models, which layout to use on which GPUs. - Layout: how the ranks share the GPUs:
single(one process),replicas(one whole copy per GPU) orep(expert-parallel groups).