Something went wrong. Try again.
Lossless weight compression that makes local inference faster drinkme.petrichor.wtf
Something went wrong. Try again.
README.md
Documentation #
The project README covers installation and client setup.
Commands here assume an activated environment; alternatively prefix drinkme
with uv run --no-sync. Development starts at AGENTS.md.
Running drinkme #
- CLI reference: commands, flags, and environment variables.
- Hardware: platform status, and the first-run probe and self-test.
- Models: tested models, what each vision model makes of an image, automatic selection, and
drinkme check. - Serving: API capabilities, image and video input, chunked prefill, metrics, context limits, token budgets, and YaRN.
- Responses API: request mapping, supported fields, streaming, and clients.
- Clients: connecting a client (base URLs, keys, model ids), a first request, Codex, turning thinking off, and a pi recipe.
- Tool formats: dialect detection, parsers, and adding support.
- Speculative decoding: MTP and prompt lookup.
- Prefix cache: memory and disk slots, sizing, and template interactions.
- Sleep/wake: memory release, idle timers, and service integration.
- ROCm: the two AMD install lanes and each gfx target's status, installing a TheRock line by hand, the attention setup (the AOTriton flag, systemd, SDPA backend limits), and the vision towers on gfx1151.
- Apple silicon: MLX/Metal implementation, limitations, and hardware checks.
Changing drinkme (start at AGENTS.md) #
- AGENTS.md: the entry point for development — invariants, setup, the CPU test command, and a map of the tree.
- Architecture and vocabulary: terminology, serving and packing flows, benchmark flow, and module responsibilities.
- Checks by change type: the CPU tests, hardware acceptance, and gates each kind of change needs, as one table.
- Development environment: why every uv run takes
--no-sync, recovery, running servers beside a live one, and known warnings. - Serving kernels: attention paths over the live cache and MTP suffixes, segmented attention, the DeltaNet recurrence and convolution kernels, and narrow GEMV — how each is chosen and A/B-tested.
- Testing: the CPU suite's settings, expected warnings and skips, and tests that need cached checkpoints.
Compression and measurement #
- Pack format: BF16 encoding, the sip/gulp compression profiles, launch schedules, integrity checks, source identity, the vision tower, and format compatibility.
- Method: codec design, related work, and numerical behavior.
- Bench and publish: benchmark arms, fit checks, records, and atproto publishing.
- Measurement lexicon: record fields and protocol development.
- Versioning: what a patch, minor or major means for packs and published records, the comparison identity, and what each change re-runs.
- Developer instruments: GPU acceptance and performance tools.
- Site: static preview, chart data, and frontend checks.