MXFP4_MOE.gguf has wrong chat template

#1
by auf1r2 - opened

It seems like chat template is broken in MXFP4_MOE.gguf version:

llama-server --model "./DeepSeek-V4-Flash-0731-reap-200b-MXFP4_MOE.gguf" --host 192.168.1.86 --port 8080 --tools get_info --api-key XXX --jinja --gpu-layers all --parallel 1 --kv-unified --kv-offload --load-mode none --spec-type none --flash-attn on --cache-type-k bf16 --cache-type-v bf16 --ctx-size 262144 --batch-size 4096 --ubatch-size 2048 --temperature 0.8 --top-k 40 --repeat-penalty 1.05 --presence-penalty 0.05 --top-p 0.95 --min-p 0.05 --reasoning-format deepseek

....

0.30.033.781 W srv    operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: \n------------\nWhile executing CallExpression at line 90, column 28 in source:\n...{%- else -%}↵        {{- raise_exception('deepseek-v4 chat template: unsupported...\n                                           ^\nError: Jinja Exception: deepseek-v4 chat template: unsupported role tool","type":"invalid_request_error"}}
0.30.961.882 W srv          stop: cancel task, id_task = 0

I've updated the chat template. This should fix the issue.

Sign up or log in to comment