Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
llama: fix incorrect initialization of C.struct_common_sampler_cparams.penalty_present (#10779)
DarkCastere6a800ca11cb
diff --git a/llama/llama.go b/llama/llama.goindex 626ea13a3..adee6f63c 100644--- a/llama/llama.go+++ b/llama/llama.go@@ -544,7 +544,7 @@ func NewSamplingContext(model *Model, params SamplingParams) (*SamplingContext,cparams.penalty_last_n = C.int32_t(params.RepeatLastN)cparams.penalty_repeat = C.float(params.PenaltyRepeat)cparams.penalty_freq = C.float(params.PenaltyFreq)- cparams.penalty_present = C.float(params.PenaltyFreq)+ cparams.penalty_present = C.float(params.PenaltyPresent)cparams.seed = C.uint32_t(params.Seed)grammar := C.CString(params.Grammar)