squash! llama : rename batch.logits to batch.output
Fix incorrectly named field in LibLlama.swift, outputs -> output.
This commit is contained in:
parent
291a785587
commit
27f59dbaaa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue