mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 08:47:01 +00:00
Update convert/reader_safetensors.go
Co-authored-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
@@ -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
|
// safetensorsPad returns the padded size of the safetensors file given a length n and offset s
|
||||||
func safetensorsPad(n, s int64) int64 {
|
func safetensorsPad(n, offset int64) int64 {
|
||||||
return 8 + n + s
|
return 8 + n + offset
|
||||||
}
|
}
|
||||||
|
|
||||||
type safetensor struct {
|
type safetensor struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user