From acd6cb1c41676f6bbb25c2a76fa5abeb1719301e Mon Sep 17 00:00:00 2001 From: Csaba Kecskemeti Date: Tue, 22 Jul 2025 09:29:43 -0700 Subject: [PATCH] ggml : model card yaml tab->2xspace (#14819) --- gguf-py/gguf/metadata.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gguf-py/gguf/metadata.py b/gguf-py/gguf/metadata.py index e807f4346..67efedbdb 100644 --- a/gguf-py/gguf/metadata.py +++ b/gguf-py/gguf/metadata.py @@ -144,6 +144,10 @@ class Metadata: # Quick hack to fix the Norway problem # https://hitchdev.com/strictyaml/why/implicit-typing-removed/ yaml_content = yaml_content.replace("- no\n", "- \"no\"\n") + # yaml should use 2 spaces insted of tab + # this issue has came up with the Qwen/Qwen3-235B-A22B-Instruct-2507 model card + # (I've also sent a pr tp fix the modelcard too) + yaml_content = yaml_content.replace("\t", " ") if yaml_content: data = yaml.safe_load(yaml_content)