Explorar o código

gguf-py : display the invalid gguf type (#13687)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
Emmanuel Ferdman hai 8 meses
pai
achega
eb0f5c28d3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gguf-py/gguf/gguf_reader.py

+ 1 - 1
gguf-py/gguf/gguf_reader.py

@@ -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