@@ -16,35 +16,53 @@ func TestCfg_GenLlamaINI(t *testing.T) {
1616 info * ModelInfo
1717 want string
1818 }{
19- {"model-with- flags" , & ModelInfo {Flags : " -c 0 --n-gpu-layers 99 --no-jinja --context-switch " }, `
19+ {"flags" , & ModelInfo {Flags : " -c 0 --n-gpu-layers 99 --no-jinja --context-switch " }, `
2020version = 1
2121
22- [model-with- flags]
23- model = /path/model-with- flags.gguf
22+ [flags]
23+ model = /path/flags.gguf
2424c = 0
2525n-gpu-layers = 99
2626no-jinja = true
2727context-switch = true
2828
29- [model-with- flags` + PLUS_A + `]
30- model = /path/model-with- flags.gguf
29+ [flags` + PLUS_A + `]
30+ model = /path/flags.gguf
3131jinja = true
3232chat-template-file = template.jinja
3333c = 0
3434n-gpu-layers = 99
3535no-jinja = true
3636context-switch = true
3737` },
38- {"model- no-flags" , & ModelInfo {Flags : "" }, `
38+ {"no-flags" , & ModelInfo {Flags : "" }, `
3939version = 1
4040
41- [model- no-flags]
42- model = /path/model- no-flags.gguf
41+ [no-flags]
42+ model = /path/no-flags.gguf
4343
44- [model- no-flags` + PLUS_A + `]
45- model = /path/model- no-flags.gguf
44+ [no-flags` + PLUS_A + `]
45+ model = /path/no-flags.gguf
4646jinja = true
4747chat-template-file = template.jinja
48+ ` },
49+ {"quote" , & ModelInfo {Flags : `
50+ --chat-template-kwargs '{"reasoning_effort": "high"}'
51+ -ot "blk\.1.\.ffn_.*=CPU"
52+ ` }, `
53+ version = 1
54+
55+ [quote]
56+ model = /path/quote.gguf
57+ chat-template-kwargs = {"reasoning_effort": "high"}
58+ ot = "blk\.1.\.ffn_.*=CPU"
59+
60+ [quote` + PLUS_A + `]
61+ model = /path/quote.gguf
62+ jinja = true
63+ chat-template-file = template.jinja
64+ chat-template-kwargs = {"reasoning_effort": "high"}
65+ ot = "blk\.1.\.ffn_.*=CPU"
4866` },
4967 }
5068 for _ , tt := range tests {
0 commit comments