size_t
This commit is contained in:
parent
743e957d88
commit
0142660bd4
1 changed files with 2 additions and 2 deletions
|
@ -264,8 +264,8 @@ func (llm *llama) sample(output deque[C.llama_token], opts *C.struct_llama_sampl
|
||||||
|
|
||||||
token := C.llama_sample(
|
token := C.llama_sample(
|
||||||
llm.ctx,
|
llm.ctx,
|
||||||
unsafe.SliceData(candidates.Data()), C.ulong(candidates.Len()),
|
unsafe.SliceData(candidates.Data()), C.size_t(candidates.Len()),
|
||||||
unsafe.SliceData(output.Data()), C.ulong(output.Len()),
|
unsafe.SliceData(output.Data()), C.size_t(output.Len()),
|
||||||
opts)
|
opts)
|
||||||
if token != C.llama_token_eos() {
|
if token != C.llama_token_eos() {
|
||||||
return token, nil
|
return token, nil
|
||||||
|
|
Loading…
Reference in a new issue