]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : model card yaml tab->2xspace (#14819)
authorCsaba Kecskemeti <redacted>
Tue, 22 Jul 2025 16:29:43 +0000 (09:29 -0700)
committerGitHub <redacted>
Tue, 22 Jul 2025 16:29:43 +0000 (19:29 +0300)
gguf-py/gguf/metadata.py

index e807f434689de669816504921f54809cac15fc71..67efedbdbc564a51e94a16248ad0b6ec689afa67 100644 (file)
@@ -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)