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
2192a28e
"third_party/vscode:/vscode.git/clone" did not exist on "e6349eb2404e4bb57a5f459ed9ecf151e1fb5ea6"
Commit
2192a28e
authored
Feb 20, 2025
by
Michael Yang
Browse files
ml/backend/ggml: fix rms norm
parent
5d81c1a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ml/backend/ggml/ggml.go
ml/backend/ggml/ggml.go
+1
-1
No files found.
ml/backend/ggml/ggml.go
View file @
2192a28e
...
...
@@ -485,7 +485,7 @@ func (t *Tensor) LayerNorm(ctx ml.Context, w, b ml.Tensor, eps float32) ml.Tenso
}
func
(
t
*
Tensor
)
RMSNorm
(
ctx
ml
.
Context
,
w
ml
.
Tensor
,
eps
float32
)
ml
.
Tensor
{
return
(
&
Tensor
{
t
:
C
.
ggml_norm
(
ctx
.
(
*
Context
)
.
ctx
,
t
.
t
,
C
.
float
(
eps
))})
.
Mul
(
ctx
,
w
)
return
(
&
Tensor
{
t
:
C
.
ggml_
rms_
norm
(
ctx
.
(
*
Context
)
.
ctx
,
t
.
t
,
C
.
float
(
eps
))})
.
Mul
(
ctx
,
w
)
}
func
(
t
*
Tensor
)
Pad
(
ctx
ml
.
Context
,
shape
...
int
)
ml
.
Tensor
{
...
...
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