From 781fc2d5769bd1df7895dc2a18ab44830f6684fc Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 31 Jul 2024 10:58:22 -0700 Subject: [PATCH] Update convert/reader_safetensors.go Co-authored-by: Jeffrey Morgan --- convert/reader_safetensors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert/reader_safetensors.go b/convert/reader_safetensors.go index d43c59a5..c5fe663c 100644 --- a/convert/reader_safetensors.go +++ b/convert/reader_safetensors.go @@ -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 {