From: Csaba Kecskemeti Date: Tue, 22 Jul 2025 16:29:43 +0000 (-0700) Subject: ggml : model card yaml tab->2xspace (#14819) X-Git-Tag: upstream/0.0.6073~109 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=acd6cb1c41676f6bbb25c2a76fa5abeb1719301e;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml : model card yaml tab->2xspace (#14819) --- diff --git a/gguf-py/gguf/metadata.py b/gguf-py/gguf/metadata.py index e807f434..67efedbd 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)