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
9ea492f1
Commit
9ea492f1
authored
Mar 10, 2024
by
Michael Yang
Browse files
convert: fix shape
parent
ac64cd4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
convert/convert.go
convert/convert.go
+3
-3
No files found.
convert/convert.go
View file @
9ea492f1
...
...
@@ -103,9 +103,9 @@ func ReadSafeTensors(fn string, offset uint64) ([]llm.Tensor, uint64, error) {
return
[]
llm
.
Tensor
{},
0
,
err
}
shape
:=
[
4
]
uint64
{
1
,
1
,
1
,
1
}
for
cnt
,
s
:=
range
data
.
Shape
{
shape
[
cnt
]
=
uint64
(
s
)
shape
:=
[]
uint64
{
0
,
0
,
0
,
0
}
for
i
:=
range
data
.
Shape
{
shape
[
i
]
=
uint64
(
data
.
Shape
[
i
]
)
}
t
:=
llm
.
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