Repository navigation
kolibri: Aleph Alpha Kolibri 1.1 (kolibri1) runs in chat, generate,… - #104
Merged
Merged
Conversation
… 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
🔍 Aletheore evidence diffgraph 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
What changed
Aggregate deltas
|
Aletheore Flash reviewAletheore couldn't complete this flash review: the reply is not valid JSON (Expecting ',' delimiter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… 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