]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
gguf-py : display the invalid gguf type (#13687)
authorEmmanuel Ferdman <redacted>
Wed, 21 May 2025 14:33:54 +0000 (17:33 +0300)
committerGitHub <redacted>
Wed, 21 May 2025 14:33:54 +0000 (16:33 +0200)
Signed-off-by: Emmanuel Ferdman <redacted>
gguf-py/gguf/gguf_reader.py

index 5991cdb76beac7b466ce1425e84b98c0e1a6758f..d87e8f72321b3f776cf214e117e21cdde9e1e18b 100644 (file)
@@ -251,7 +251,7 @@ class GGUFReader:
                 offs += curr_size
             return offs - orig_offs, aparts, data_idxs, types
         # We can't deal with this one.
-        raise ValueError('Unknown/unhandled field type {gtype}')
+        raise ValueError(f'Unknown/unhandled field type {gtype}')
 
     def _get_tensor_info_field(self, orig_offs: int) -> ReaderField:
         offs = orig_offs