# AidenLab: recipes for running large AI models on hardware you own (version for agents)

This is the plain-Markdown version of https://aidenle.com, written for AI agents. Every recipe and guide below links to a
Markdown file with the full page: the same text, commands, tables and numbers as the web page.

## How to follow a recipe

1. Read the whole recipe file before you run anything, including its Notes section. The known problems listed
   there apply to every run.
2. Check the status. **production** means the recipe has been in service for a while. **experimental** means
   it is new and has open problems, listed in the recipe.
3. Check "What you need" against the machines you have: the hardware, the disk space per node, the network,
   and the software.
4. Run the code blocks as written and in the order of the page. Each block holds complete shell commands.
   Replace every placeholder in angle brackets, such as `<your-rdma-device>`, with the value for your site.
5. Where a recipe offers a dry run or a check (a `--dry-run` flag, a test script), run it first and compare the
   output with what the recipe says to expect.
6. Treat the numbers as measurements of one test fleet: every number is a single boot on the hardware the
   recipe names, under the conditions the recipe gives. Expect your own results to differ.
7. When a step fails, look for it in the recipe's Notes before you change anything else.

## Recipes

- [Inkling-2-Small on 4× DGX Spark with long-context tool-call fix (experimental)](https://aidenle.com/recipes/inkling-2-small-tool-fix-sglang-4x-dgx-spark.md): experimental, measured 2026-11-27. The Inkling-2-Small 4-bit KV cache recipe with a gated server-side hook that keeps tool-call and system-prompt rules active past 200K tokens.
- [Inkling-2-Small on 4× DGX Spark with a 4-bit KV cache (experimental)](https://aidenle.com/recipes/inkling-2-small-nvfp4-kv-sglang-4x-dgx-spark.md): experimental, measured 2026-11-23. The Inkling-2-Small recipe with its KV cache stored in 4 bits: the same memory holds 1.8 times the tokens, quality unchanged, and decode behind long contexts is faster.
- [Inkling-2-Small on 4× DGX Spark with SGLang (experimental)](https://aidenle.com/recipes/inkling-2-small-sglang-4x-dgx-spark.md): experimental, measured 2026-11-15. Serves the Inkling-2-Small model, text and pictures, on four DGX Spark nodes at 55–56 tok/s for one request at temperature 1.0.
- [DeepSeek-V4.1-Flash-1017 on 4× DGX Spark with SGLang](https://aidenle.com/recipes/deepseek-v4-1-flash-1017-sglang-4x-dgx-spark.md): production, measured 2026-10-18. DeepSeek-V4.1-Flash-1017 is a weight update, so the SGLang recipe serves it unchanged.
- [DeepSeek-V4.1-Flash on 4× DGX Spark with SGLang](https://aidenle.com/recipes/deepseek-v4-1-flash-sglang-4x-dgx-spark.md): production, measured 2026-09-17. DeepSeek-V4.1-Flash on four DGX Spark GB10 nodes with the SGLang team's unmodified image and a small MIT-licensed overlay.
- [DeepSeek-V4.1-Flash on 4× DGX Spark](https://aidenle.com/recipes/deepseek-v4-1-flash-4x-dgx-spark.md): production, measured 2026-09-11. This recipe serves DeepSeek-V4.1-Flash with vLLM on four DGX Spark GB10 nodes.
- [DeepSeek-V4-Flash-Vision on 4× DGX Spark](https://aidenle.com/recipes/deepseek-v4-flash-vision-4x-dgx-spark.md): production, measured 2026-09-03. This recipe serves DeepSeek-V4-Flash-Vision-Exp, a model that also reads images, on four DGX Spark GB10 nodes with vLLM.
- [GLM-5.3-Flash on 4× DGX Spark](https://aidenle.com/recipes/glm-5-3-flash-4x-dgx-spark.md): production, measured 2026-08-31. GLM-5.3-Flash on four DGX Spark GB10 nodes with vLLM.
- [DeepSeek-V4-Flash on 4× DGX Spark](https://aidenle.com/recipes/deepseek-v4-flash-4x-dgx-spark-3761.md): production, measured 2026-08-20. This recipe serves DeepSeek-V4-Flash-0731 with vLLM on four DGX Spark GB10 nodes.

## Model guides

Deployments that other people published, written up with their reported results.

- [GLM-5.2 Hybrid FP8 / NVFP4 / MXFP4](https://aidenle.com/models/glm-5-2-hybrid-quantized-runtime.md): Each part of GLM-5.2 has its own precision, so the model fits on four DGX Spark nodes without the accuracy loss of an all-MXFP4 build.
- [GLM-5.3-Flash TP4](https://aidenle.com/models/glm-5-3-flash-tp4-dgx-spark.md): GLM-5.3-Flash served on four DGX Spark GB10 nodes with vLLM and DFlash2 speculative decoding.
- [DiffusionGemma 26B-A4B-it INT8 Dynamic](https://aidenle.com/models/diffusiongemma-26b-int8-dynamic.md): An INT8 build of a 26B block-diffusion mixture-of-experts model, about 26 GB in size. INT8 runs on Ampere GPUs, while FP8 needs Hopper or Ada hardware.

## Research

- [AidenLab Research](https://aidenle.com/research): independent research, measured on real hardware.
- [Loop Adapters for Inkling-2-Small](https://aidenle.com/research/inkling2-loop-adapter): research preview, experimental. A 95.6 MB loop adapter gives a frozen 594B MoE 60 layers of compute in 48 layers of memory, bit-exact when off. Validation NLL is 13.66% lower after fine-tuning, but no matched control has been run, so the loop's own effect is unproven.

## Recent changes

- 2026-12-04: Loop adapters for Inkling-2-Small (research preview): an experimental 95.6 MB adapter runs the model's 12-layer core twice with no extra KV memory per token. Validation loss is 13.66% lower after fine-tuning; a matched control to show what the loop itself adds still needs compute I haven't had. ([page](https://aidenle.com/research))
- 2026-11-27: Inkling-2-Small tool-call fix recipe: stock weights with a gated server-side hook lift turns 61–70 parallel tool batching from 0% to 60% and cut shell-lookup violations from 67 to 27. ([recipe](https://aidenle.com/recipes/inkling-2-small-tool-fix-sglang-4x-dgx-spark.md))
- 2026-11-23: Inkling-2-Small with a 4-bit KV cache: 1.8 times the cache in the same memory, set up by one script. Still experimental. ([recipe](https://aidenle.com/recipes/inkling-2-small-nvfp4-kv-sglang-4x-dgx-spark.md))
- 2026-11-21: Inkling-2-Small reads pictures: One picture is answered in 1.2–3.2 s. Still experimental. ([recipe](https://aidenle.com/recipes/inkling-2-small-sglang-4x-dgx-spark.md))
- 2026-11-17: Inkling-2-Small, faster long prompts: A new 120K-token prompt takes 43 s instead of 54 s. ([recipe](https://aidenle.com/recipes/inkling-2-small-sglang-4x-dgx-spark.md))
- 2026-11-15: Inkling-2-Small recipe (experimental): One request is written at 61 tok/s. Open problems are listed on the page. ([recipe](https://aidenle.com/recipes/inkling-2-small-sglang-4x-dgx-spark.md))
- 2026-11-06: DeepSeek-V4.1-Flash production-1.8: A 128K-token prompt starts after 34 s instead of 45 s. ([recipe](https://aidenle.com/recipes/deepseek-v4-1-flash-sglang-4x-dgx-spark.md))
- 2026-10-18: DeepSeek-V4.1-Flash-1017: The new model version runs on the same recipe at the same speed. ([recipe](https://aidenle.com/recipes/deepseek-v4-1-flash-1017-sglang-4x-dgx-spark.md))

## Single-stream decode by recipe (tok/s; each recipe used its own prompts)

| Recipe | tok/s | Detail |
|---|---|---|
| Inkling-2-Small · 4-bit KV cache (experimental) | 56.9 | Coding questions at temperature 1.0 |
| Inkling-2-Small · SGLang (experimental) | 55.6 | Coding questions at temperature 1.0 |
| DeepSeek-V4.1-Flash · SGLang (1.8) | 96.5 | Code prompts on V4.1-Flash-1017 |
| DeepSeek-V4.1-Flash (1.1, DCP2) | 60.8 | Code prompts with DCP2 |
| GLM-5.3-Flash (1.2) | 89.7 | Structured output, thinking off |
| DeepSeek-V4-Flash (3.76.1) | 71 | Mixed prompts |
| DeepSeek-V4-Flash-Vision (3.73) | 67.9 | Code prompts |

## Cold prefill by recipe (tok/s)

| Recipe | tok/s | Detail |
|---|---|---|
| Inkling-2-Small · 4-bit KV cache (experimental) | 2840 | Cold 120K-token prompt |
| Inkling-2-Small · SGLang (experimental) | 2615 | Cold 120K-token prompt |
| DeepSeek-V4.1-Flash · SGLang (1.8) | 4892 | 32K-token prompt of unique random words |
| DeepSeek-V4.1-Flash (1.0) | 2143 | 36K-token prompt |
| GLM-5.3-Flash (1.2) | 2070 | 32K-token prompt |
| DeepSeek-V4-Flash (3.76.1) | 2200 | 334K-token prompt |
| DeepSeek-V4-Flash-Vision (3.73) | 2380 | 92K-token prompt |
