Unverified Commit 61a88252 authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

convert: return name of unsupported architecture (#9862)

When a model's architecture cannot be converted return the name of the unsupported arch in the error message.
parent 021dcf08
...@@ -201,7 +201,7 @@ func ConvertModel(fsys fs.FS, ws io.WriteSeeker) error { ...@@ -201,7 +201,7 @@ func ConvertModel(fsys fs.FS, ws io.WriteSeeker) error {
case "CohereForCausalLM": case "CohereForCausalLM":
conv = &commandrModel{} conv = &commandrModel{}
default: default:
return errors.New("unsupported architecture") return fmt.Errorf("unsupported architecture %q", p.Architectures[0])
} }
if err := json.Unmarshal(bts, conv); err != nil { if err := json.Unmarshal(bts, conv); err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment