Skip to content

Commit acd6cb1

Browse files
ggml : model card yaml tab->2xspace (ggml-org#14819)
1 parent 84712b6 commit acd6cb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gguf-py/gguf/metadata.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ def load_model_card(model_path: Optional[Path] = None) -> dict[str, Any]:
144144
# Quick hack to fix the Norway problem
145145
# https://hitchdev.com/strictyaml/why/implicit-typing-removed/
146146
yaml_content = yaml_content.replace("- no\n", "- \"no\"\n")
147+
# yaml should use 2 spaces insted of tab
148+
# this issue has came up with the Qwen/Qwen3-235B-A22B-Instruct-2507 model card
149+
# (I've also sent a pr tp fix the modelcard too)
150+
yaml_content = yaml_content.replace("\t", " ")
147151

148152
if yaml_content:
149153
data = yaml.safe_load(yaml_content)

0 commit comments

Comments
 (0)