squash! llama : rename batch.logits to batch.output

Fix incorrectly named field in LibLlama.swift, outputs -> output.
This commit is contained in:
Daniel Bevenius 2025-02-06 08:00:30 +01:00
parent 291a785587
commit 27f59dbaaa

View file

@ -16,7 +16,7 @@ func llama_batch_add(_ batch: inout llama_batch, _ id: llama_token, _ pos: llama
for i in 0..<seq_ids.count {
batch.seq_id[Int(batch.n_tokens)]![Int(i)] = seq_ids[i]
}
batch.outputs [Int(batch.n_tokens)] = outputs ? 1 : 0
batch.output [Int(batch.n_tokens)] = outputs ? 1 : 0
batch.n_tokens += 1
}