(very WIP!) Fast LLM inference in Rust & CUDA doll.tngl.io/firecrest
firecrest docs README.md
5.3 kB 80 lines
Markdown
at main

Firecrest documentation #

Running Firecrest #

Document What
Model files Getting, merging and checking the DeepSeek V4.1 Flash GGUFs; Inkling 2 Mini, SmolLM3-3B, Qwen3.6-35B-A3B
Operations Building a release, configuration, start and stop, health, console, GPU set, adapters, policies, state, logs and metrics, upgrade and rollback, troubleshooting
Server The firecrest command, the configuration file, the proxy engine, the request pipeline
DeepSeek V4.1 engine The dsv41 model options ([model.options]), backends, scheduling, control operations
Profiles What accurate, balanced and speed change, each approximation's measured gain and cost
Adapters Low-rank adapters and steering vectors: terms, scales, the DeepSeek V4.1 sites, file formats, a worked example
Policy scripts Python hooks around every request: hooks, host functions, limits, examples
Console The web console: development, build, tests, structure
Benchmarks The agentic workload harness and the quality gates

Design #

Document What
Architecture Crates, the engine boundary, threads, placement, memory, the context store, APIs
Management API The admin listener's API and live feed, the console's contract
DeepSeek V4.1 engine Where the time goes, placement, the decode step, the context store, prefill, adapters
Steered routing Routing that favours experts already on the GPU
Multi-position decode Decoding several positions per step
Batched prefill Prefill for concurrent requests: one job for several sessions, short prompts between the units of a long job, prompts beside generating slots
Inkling 2 Mini spike, Inkling GPU plan The experimental Inkling engine
GPU microbenchmarks Measurements behind the design decisions

Model specifications #

DeepSeek V4.1 Flash 1017, in engines/deepseek-v4.1/docs/spec/:

Document What
01 Attention Attention sub-block and context state
02 Layers, FFN, MoE, formats Layer skeleton, hyper-connections, FFN and MoE, weight formats, head
03 Engram Hashed n-gram tables of layers 1 and 14
04 Tokenizer and API Tokenizer, chat template, tool and reasoning formats, client-visible HTTP behaviour
05 Vision Vision encoder, aligner and image tokens
06 ds4 hybrid runtime How the ds4 engine runs the model, as a baseline
07 Cache reuse Prompt-cache reuse, suffix-cache reuse and KV checkpoints

GGUF tensor dumps: main, vision.

Inkling 2 Mini: engines/inkling/docs/spec/.

SmolLM3-3B: engines/smollm3/docs/spec/.

Qwen3.6-35B-A3B: engines/qwen3.6/docs/spec/.

Crate notes #

DeepSeek engine: context store, model reference, Engram, decode on the GPU, prefill, vision, vision on the GPU. SmolLM3 engine: the served engine, model reference, GPU forward, oracle. Qwen3.6 engine: the served engine, model reference, GPU forward, oracle. Shared: tokenizer, weight codecs and CPU kernels, table generators.

Short commit hashes in comments and documents (measured builds such as fe98935) name commits of the development history before the first public commit; they identify the builds the measurements came from and are not in this repository's history.

Contributors start with CONTRIBUTING.md; coding agents read AGENTS.md as well.