Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
e6a800ca
Unverified
Commit
e6a800ca
authored
May 20, 2025
by
DarkCaster
Committed by
GitHub
May 20, 2025
Browse files
llama: fix incorrect initialization of C.struct_common_sampler_cparams.penalty_present (#10779)
parent
ff180c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llama/llama.go
llama/llama.go
+1
-1
No files found.
llama/llama.go
View file @
e6a800ca
...
...
@@ -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
.
Penalty
F
re
q
)
cparams
.
penalty_present
=
C
.
float
(
params
.
Penalty
P
re
sent
)
cparams
.
seed
=
C
.
uint32_t
(
params
.
Seed
)
grammar
:=
C
.
CString
(
params
.
Grammar
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment