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
6b0486c2
"vscode:/vscode.git/clone" did not exist on "a0ce48ee217d51d78d411da0fa339a1054db1357"
Commit
6b0486c2
authored
Mar 09, 2025
by
Michael Yang
Browse files
duplicate token_embd to output
parent
d368c039
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ml/backend/ggml/ggml.go
ml/backend/ggml/ggml.go
+3
-0
No files found.
ml/backend/ggml/ggml.go
View file @
6b0486c2
...
...
@@ -240,6 +240,9 @@ func New(r *os.File, params ml.BackendParams) (ml.Backend, error) {
switch
{
case
contains
(
t
.
Name
,
"position_embd"
,
"token_embd"
,
"token_norm_embd"
,
"token_types"
)
:
createTensor
(
tensor
{
source
:
t
},
input
.
bts
)
if
_
,
ok
:=
meta
.
Tensors
()
.
GroupLayers
()[
"output"
];
!
ok
&&
t
.
Name
==
"token_embd.weight"
{
createTensor
(
tensor
{
source
:
t
,
target
:
"output.weight"
},
output
.
bts
)
}
case
contains
(
t
.
Name
,
"cls"
,
"output"
,
"output_norm"
)
:
createTensor
(
tensor
{
source
:
t
},
output
.
bts
)
case
strings
.
HasPrefix
(
t
.
Name
,
"v."
)
||
strings
.
HasPrefix
(
t
.
Name
,
"mm."
)
:
...
...
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