mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-07-27 11:43:35 -04:00
ggml : model card yaml tab->2xspace (#14819)
This commit is contained in:
@ -144,6 +144,10 @@ class Metadata:
|
|||||||
# Quick hack to fix the Norway problem
|
# Quick hack to fix the Norway problem
|
||||||
# https://hitchdev.com/strictyaml/why/implicit-typing-removed/
|
# https://hitchdev.com/strictyaml/why/implicit-typing-removed/
|
||||||
yaml_content = yaml_content.replace("- no\n", "- \"no\"\n")
|
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:
|
if yaml_content:
|
||||||
data = yaml.safe_load(yaml_content)
|
data = yaml.safe_load(yaml_content)
|
||||||
|
Reference in New Issue
Block a user