lmstudio 无法正常对话

#2
by takeseem - opened
  • lmstudio 全部使用默认加载后在 chat 中无法正常对话,google ai 说是 lmstudio 未正确解析:chat template。
  • lmstudio 设置面板 developer 已经开启了 “在预设中启用模型加载配置支持”。
2026-05-27 06:14:36 [DEBUG]
 0.00.976.932 I init: chat template, example_format: 'You are a helpful assistantHelloHi thereHow are you?'
2026-05-27 06:14:36 [DEBUG]
 0.00.977.490 I srv          init: init: chat template, thinking = 0
2026-05-27 06:14:36 [DEBUG]
 0.00.977.612 I srv  update_slots: all slots are idle

image

image

  • ./llama-server -m MiniCPM5-1B-F16.gguf --port 8080 -ngl 99 -c 8192 --jinja --flash-attn on --kv-offload --numa distribute 加载正常对话也正常
0.00.925.699 I init: chat template, example_format: '<s><|im_start|>system
You are a helpful assistant<|im_end|>
<|im_start|>user
Hello<|im_end|>
<|im_start|>assistant
Hi there<|im_end|>
<|im_start|>user
How are you?<|im_end|>
<|im_start|>assistant
<think>
'
0.00.927.570 I srv          init: init: chat template, thinking = 1
OpenBMB org

Thanks for the report — your diagnosis looks correct. LM Studio isn’t applying the embedded Jinja chat template from the GGUF, so the prompt gets flattened (hence thinking = 0 and the broken example_format).

MiniCPM5 support was recently merged in llama.cpp and works with Jinja enabled. LM Studio bundles its own llama.cpp backend, so you’ll need to wait for them to ship a newer version. For now, use llama-server

Thanks you, now it's work.
LM Studio 0.4.15 (Build 1) release

  • llama.cpp release b9334 (commit 5190c2e)
takeseem changed discussion status to closed

Can you add this message about runing only in LM Studio 0.4.15 (build 1)?
upd. It not working on LM Studio 0.4.15 (build 1)? Same effect.

❎️ [BETA] Enable LM Studio Engine Protocol it's bad, not work.
✔️ [BETA] Enable LM Studio Engine Protocol it's work. lm studio use native llama-server to run LLM.

  • inner llama.cpp it's bad
    image

  • use native llama-server it's work.
    image

takeseem changed discussion status to open
takeseem changed discussion status to closed

Sign up or log in to comment