Browse Source
llama: fix incorrect initialization of C.struct_common_sampler_cparams.penalty_present (#10779)
parth/deepseek-r1-tools
DarkCaster
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
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) |
|
|
|
|