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
d368c039
Commit
d368c039
authored
Mar 09, 2025
by
Michael Yang
Browse files
skip repacking vision tensors
parent
9b54267e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
convert/convert_gemma.go
convert/convert_gemma.go
+1
-1
No files found.
convert/convert_gemma.go
View file @
d368c039
...
...
@@ -45,7 +45,7 @@ func (p *gemmaModel) KV(t *Tokenizer) ggml.KV {
func
(
p
*
gemmaModel
)
Tensors
(
ts
[]
Tensor
)
[]
ggml
.
Tensor
{
var
out
[]
ggml
.
Tensor
for
_
,
t
:=
range
ts
{
if
strings
.
HasSuffix
(
t
.
Name
(),
"_norm.weight"
)
{
if
!
strings
.
HasPrefix
(
t
.
Name
(),
"v."
)
&&
strings
.
HasSuffix
(
t
.
Name
(),
"_norm.weight"
)
{
t
.
SetRepacker
(
p
.
addOne
)
}
...
...
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