diff --git a/convert/safetensors.go b/convert/safetensors.go index fb8aa019..69424c4d 100644 --- a/convert/safetensors.go +++ b/convert/safetensors.go @@ -53,7 +53,7 @@ func (m *SafetensorFormat) GetTensors(dirpath string, params *Params) ([]llm.Ten var err error t, offset, err = m.readTensors(f, offset, params) if err != nil { - slog.Error("%v", err) + slog.Error(err.Error()) return nil, err } tensors = append(tensors, t...) @@ -122,7 +122,7 @@ func (m *SafetensorFormat) readTensors(fn string, offset uint64, params *Params) ggufName, err := m.GetLayerName(k) if err != nil { - slog.Error("%v", err) + slog.Error(err.Error()) return nil, 0, err } diff --git a/convert/torch.go b/convert/torch.go index fd237505..92c58872 100644 --- a/convert/torch.go +++ b/convert/torch.go @@ -74,7 +74,7 @@ func (tf *TorchFormat) GetTensors(dirpath string, params *Params) ([]llm.Tensor, ggufName, err := tf.GetLayerName(k.(string)) if err != nil { - slog.Error("%v", err) + slog.Error(err.Error()) return nil, err } slog.Debug(fmt.Sprintf("finding name for '%s' -> '%s'", k.(string), ggufName))