Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix(runner): Set logits to 0 if false on Batch.Add
Gabe Goodhart807ace5b1f4f
diff --git a/llama/llama.go b/llama/llama.goindex 72b8b691b..a3fbbc1d0 100644--- a/llama/llama.go+++ b/llama/llama.go@@ -384,6 +384,8 @@ func (b *Batch) Add(token int, embed []float32, pos int, logits bool, seqIds ...if logits {unsafe.Slice(b.c.logits, b.allocSize())[b.c.n_tokens] = 1+ } else {+ unsafe.Slice(b.c.logits, b.allocSize())[b.c.n_tokens] = 0}b.c.n_tokens += 1