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
b078dd15
Commit
b078dd15
authored
Mar 19, 2025
by
Jesse Gross
Committed by
Jesse Gross
Mar 19, 2025
Browse files
gemma2: Remove second call to Rows
Looks like a merge conflict that broke the model.
parent
2ddacd75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
model/models/gemma2/model.go
model/models/gemma2/model.go
+1
-2
No files found.
model/models/gemma2/model.go
View file @
b078dd15
...
@@ -211,8 +211,7 @@ func (m *Model) Forward(ctx ml.Context, opts input.Options) (ml.Tensor, error) {
...
@@ -211,8 +211,7 @@ func (m *Model) Forward(ctx ml.Context, opts input.Options) (ml.Tensor, error) {
// final logit softcap
// final logit softcap
hiddenState
=
hiddenState
.
Scale
(
ctx
,
1.0
/
float64
(
m
.
Options
.
finalLogitSoftcap
))
hiddenState
=
hiddenState
.
Scale
(
ctx
,
1.0
/
float64
(
m
.
Options
.
finalLogitSoftcap
))
hiddenState
=
hiddenState
.
Tanh
(
ctx
)
hiddenState
=
hiddenState
.
Tanh
(
ctx
)
hiddenState
=
hiddenState
.
Scale
(
ctx
,
float64
(
m
.
Options
.
finalLogitSoftcap
))
return
hiddenState
.
Scale
(
ctx
,
float64
(
m
.
Options
.
finalLogitSoftcap
)),
nil
return
hiddenState
.
Rows
(
ctx
,
outputs
),
nil
}
}
func
init
()
{
func
init
()
{
...
...
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