ggml : model card yaml tab->2xspace (#14819)

This commit is contained in:
Csaba Kecskemeti
2025-07-22 09:29:43 -07:00
committed by Aaron Teo
parent 44d4801a25
commit 9b5125679c

View 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)