Chat template

#1
by DeProgrammer - opened

What's the chat template for this model? I tried to use a GGUF of it, but 225 out of 320 times, it simply output <|im_end|>.

Xiaomi Research org

Thanks for your interest!

There is no additional chat template. Please directly adopt the translation prompt.

Thanks for the quick reply. I'll have to figure out how to do that in MNN Chat and llama.cpp both...

Okay, for llama.cpp's llama-server, this seems to work: llama-server --chat-template "{% for message in messages %}{{ message.content }}{% endfor %}" -m MiLMMT-46-4B-v0.1.Q4_K_M.gguf (and then I just put the whole "Translate this from ..." as my chat message.)

Sign up or log in to comment