mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-21 22:33:56 +00:00
size_t
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user