Skip to content

kolibri: Aleph Alpha Kolibri 1.1 (kolibri1) runs in chat, generate,… - #104

Merged
Vasyl-Trefilov merged 1 commit into
mainfrom
kolibri
Nov 25, 2026
Merged

Vasyl-Trefilov merged 1 commit into
mainfrom
kolibri

Conversation

@Vasyl-Trefilov

Copy link
Copy Markdown
Member

… serve, score, bench and check with its own forward (src/kolibri): sliding-window layers, sparse layers that attend the keys of an indexer (CUDA kernel attn_sel), a dense FFN in the leading layers and a sigmoid-routed MoE with a shared expert; the experts of a layer on the card and the shared expert take one round trip, the other experts run on the CPU through matvec_rows; docs/MODELS.md and docs/BENCHMARKS.md have a Kolibri 1.1 section (Q4_K_M on the RTX 3060: prefill / decode 181.0 / 33.4 tok/s at 0.5k, 158.8 / 21.1 at 32k). inkling2: the prefill attention of a sliding layer counts the ring row (it took a modulo for each key) and a layer that sees every key uses the new kernel ink_attn_prefill_sh (one K/V head and up to 8 tokens a block, 32 keys of K and V in shared memory), both with the bits of the old kernel; the K/V growth on the card drops whole expert layers when VRAM is short and sizes the score buffer by capacity, so a long prompt stays on the card

What changed and why

Describe the problem and the resulting behavior. Link the related issue, if any.

Verification

Describe the checks you ran and their results. Include screenshots for visual changes and reproducible before/after measurements for performance changes.

Checklist

  • I followed this repository's contribution guide and required checks.
  • I updated documentation or examples where needed.
  • I added regression coverage where it helps verify the change.
  • I have the right to contribute the included code and assets under this repository's contribution terms.

… serve, score, bench and check with its own forward (src/kolibri): sliding-window layers, sparse layers that attend the keys of an indexer (CUDA kernel attn_sel), a dense FFN in the leading layers and a sigmoid-routed MoE with a shared expert; the experts of a layer on the card and the shared expert take one round trip, the other experts run on the CPU through matvec_rows; docs/MODELS.md and docs/BENCHMARKS.md have a Kolibri 1.1 section (Q4_K_M on the RTX 3060: prefill / decode 181.0 / 33.4 tok/s at 0.5k, 158.8 / 21.1 at 32k). inkling2: the prefill attention of a sliding layer counts the ring row (it took a modulo for each key) and a layer that sees every key uses the new kernel ink_attn_prefill_sh (one K/V head and up to 8 tokens a block, 32 keys of K and V in shared memory), both with the bits of the old kernel; the K/V growth on the card drops whole expert layers when VRAM is short and sizes the score buffer by capacity, so a long prompt stays on the card
@Vasyl-Trefilov
Vasyl-Trefilov merged commit e14e8ca into main Nov 25, 2026
2 checks passed
@aletheore

aletheore Bot commented Nov 25, 2026

Copy link
Copy Markdown

🔍 Aletheore evidence diff

graph LR
    n0["src/backend.rs"]
    n1["config.rs"]
    n2["src/cuda/mod.rs"]
    n3["mat.rs"]
    n4["src/hy4/forward.rs"]
    n5["src/inkling2/forward.rs"]
    n6["lib.rs"]
    n7["cpu_worker.rs"]
    n8["src/deepseek/chat.rs"]
    n9["src/deepseek/forward.rs"]
    n10["src/deepseek/mod.rs"]
    n11["expert_cache.rs"]
    n12["src/gemma4/forward.rs"]
    n13["src/gemma4/mod.rs"]
    n14["src/gguf.rs"]
    n15["src/glm/forward.rs"]
    n16["src/glm/mod.rs"]
    n17["src/gpu_model.rs"]
    n18["prefill.rs"]
    n19["src/hip/mod.rs"]
    n20["src/hy4/chat.rs"]
    n21["src/hy4/mod.rs"]
    n22["src/inkling2/chat.rs"]
    n23["dspark.rs"]
    n24["src/inkling2/mod.rs"]
    n25["model.rs"]
    n26["ngram.rs"]
    n27["serve.rs"]
    n28["src/vulkan/mod.rs"]
    n29["preflight.rs"]
    n30["weights.rs"]
    n31["tests/backend.rs"]
    n32["tests/common/mod.rs"]
    n33["tests/gguf.rs"]
    n34["tests/gpu_model.rs"]
    n35["kernels.rs"]
    n36["kv_q8.rs"]
    n37["llama_numerics.rs"]
    n38["quant.rs"]
    n39["vision.rs"]
    n0 --> n7
    n0 --> n11
    n0 --> n17
    n0 --> n18
    n0 --> n19
    n0 --> n23
    n0 --> n25
    n0 --> n28
    n0 --> n31
    n0 --> n32
    n0 --> n34
    n0 --> n35
    n0 --> n36
    n0 --> n37
    n1 --> n17
    n1 --> n25
    n1 --> n30
    n1 --> n33
    n1 --> n38
    n2 --> n19
    n2 --> n28
    n2 --> n29
    n2 --> n32
    n2 --> n34
    n2 --> n36
    n2 --> n37
    n3 --> n9
    n3 --> n10
    n3 --> n12
    n3 --> n15
    n3 --> n23
    n3 --> n38
    n4 --> n20
    n4 --> n21
    n5 --> n22
    n5 --> n23
    n5 --> n24
    n5 --> n39
    n6 --> n8
    n6 --> n11
    n6 --> n13
    n6 --> n14
    n6 --> n15
    n6 --> n16
    n6 --> n17
    n6 --> n18
    n6 --> n20
    n6 --> n21
    n6 --> n22
    n6 --> n24
    n6 --> n25
    n6 --> n26
    n6 --> n27
    n6 --> n29
    n6 --> n30
    classDef changed fill:#d9772c,color:#fff,stroke:#b85f1c;
    classDef changedFinding fill:#c0392b,color:#fff,stroke:#922b21;
    classDef dependent fill:#f2f0ec,color:#18140f,stroke:#d6d0c5;
    class n0 changed
    class n1 changed
    class n2 changed
    class n3 changed
    class n4 changed
    class n5 changed
    class n6 changed
    class n7 dependent
    class n8 dependent
    class n9 dependent
    class n10 dependent
    class n11 dependent
    class n12 dependent
    class n13 dependent
    class n14 dependent
    class n15 dependent
    class n16 dependent
    class n17 dependent
    class n18 dependent
    class n19 dependent
    class n20 dependent
    class n21 dependent
    class n22 dependent
    class n23 dependent
    class n24 dependent
    class n25 dependent
    class n26 dependent
    class n27 dependent
    class n28 dependent
    class n29 dependent
    class n30 dependent
    class n31 dependent
    class n32 dependent
    class n33 dependent
    class n34 dependent
    class n35 dependent
    class n36 dependent
    class n37 dependent
    class n38 dependent
    class n39 dependent
Loading

What changed
Deterministic, computed from this commit's real scan and import graph - posted on every run, whether or not Flash Review found anything.

  • README.md · modified · +1/-1
  • docs/BENCHMARKS.md · modified · +39/-0
  • docs/MODELS.md · modified · +37/-0
  • docs/USAGE.md · modified · +2/-2
  • src/backend.rs · modified · +4/-0 · +1 function · 14 other dependents
  • src/config.rs · modified · +1/-1 · 5 other dependents
  • src/cuda/kernels.cu · modified · +152/-1
  • src/cuda/mod.rs · modified · +24/-11 · +1 function · 7 other dependents
  • src/deepseek/mat.rs · modified · +91/-1 · +6 functions · 6 other dependents
  • src/hy4/forward.rs · modified · +4/-4 · 2 other dependents
  • src/inkling2/forward.rs · modified · +3/-3 · 4 other dependents
  • src/inkling2/forward/device.rs · modified · +29/-6 · +1 function
  • src/kolibri/chat.rs · +238/-0 · new file, 9 symbols
  • src/kolibri/forward.rs · +743/-0 · new file, 30 symbols
  • src/kolibri/mod.rs · +91/-0 · new file, 2 symbols
  • src/lib.rs · modified · +1/-0 · 17 other dependents
  • src/main.rs · modified · +35/-1
  • tests/kolibri_forward.rs · +28/-0 · new file, 2 symbols

Aggregate deltas

  • Modules: +4
  • Dependency graph edges: +21
  • Commits: 1

@aletheore

aletheore Bot commented Nov 25, 2026

Copy link
Copy Markdown

Aletheore Flash review

Aletheore couldn't complete this flash review: the reply is not valid JSON (Expecting ',' delimiter)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant