Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

Hy4 engine: accepted-length histogram sized for the n-gram rows

YanissAmzb001ff17aa61
diff --git a/tools/hy4/engine.py b/tools/hy4/engine.py
index 96c19bf..36928fc 100644
--- a/tools/hy4/engine.py
+++ b/tools/hy4/engine.py
@@ -185,7 +185,7 @@ class Hy4Engine:
self.phase("decode")
t1 = time.perf_counter()
st["prefill_s"] = t1 - t0
- out_n, rounds, hist = 0, 0, [0] * (self.k + 1)
+ out_n, rounds, hist = 0, 0, [0] * (self.SG.TM + 1)
stop = False
# first token: it comes from the prefill logits
stop = on_tokens([y])