From: Emmanuel Ferdman Date: Wed, 21 May 2025 14:33:54 +0000 (+0300) Subject: gguf-py : display the invalid gguf type (#13687) X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=eb0f5c28d37126baa756117d5bdaadc62e03344e;p=pkg%2Fggml%2Fsources%2Fllama.cpp gguf-py : display the invalid gguf type (#13687) Signed-off-by: Emmanuel Ferdman --- diff --git a/gguf-py/gguf/gguf_reader.py b/gguf-py/gguf/gguf_reader.py index 5991cdb7..d87e8f72 100644 --- a/gguf-py/gguf/gguf_reader.py +++ b/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