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
781fc2d5
Commit
781fc2d5
authored
Jul 31, 2024
by
Michael Yang
Browse files
Update convert/reader_safetensors.go
Co-authored-by:
Jeffrey Morgan
<
jmorganca@gmail.com
>
parent
df993fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
convert/reader_safetensors.go
convert/reader_safetensors.go
+2
-2
No files found.
convert/reader_safetensors.go
View file @
781fc2d5
...
...
@@ -67,8 +67,8 @@ func parseSafetensors(ps ...string) ([]Tensor, error) {
}
// safetensorsPad returns the padded size of the safetensors file given a length n and offset s
func
safetensorsPad
(
n
,
s
int64
)
int64
{
return
8
+
n
+
s
func
safetensorsPad
(
n
,
offset
int64
)
int64
{
return
8
+
n
+
offset
}
type
safetensor
struct
{
...
...
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