From bbee269a1434acbbe41c390296aa272a892a8210 Mon Sep 17 00:00:00 2001 From: Csaba Kecskemeti Date: Tue, 22 Jul 2025 09:22:05 -0700 Subject: [PATCH] model card yaml tab->2xspace --- 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 e807f434689de..67efedbdbc564 100644 --- a/gguf-py/gguf/metadata.py +++ b/gguf-py/gguf/metadata.py @@ -144,6 +144,10 @@ def load_model_card(model_path: Optional[Path] = None) -> dict[str, Any]: # 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)