corenet icon indicating copy to clipboard operation
corenet copied to clipboard

Instruct Template

Open riccardomusmeci opened this issue 9 months ago • 3 comments

Hi there, looking at OpenELM instruct template what I understood is that the template is something like this:

<|system|> You are a helpful AI assistant. <|user|> How to explain Internet for a medieval knight? <|assistant|>

Is that right? With MLX the model is not properly working on instruct mode.

riccardomusmeci avatar Apr 30 '24 09:04 riccardomusmeci

Yes, this would be really useful. I am trying to use the OpenELM instruct models but I can't find out what the instruct template is.

louis845 avatar May 03 '24 17:05 louis845

Is there any update regarding the chat template and tokenizer used for instruction tuning?

Especially when using OpenELM 1.1B Instruct models from Huggingface, I only get "<<<<<<" as the output.

I used tokenizer of "meta-llama/Llama-2-7b-hf" and original template from Llama2, but the output is garbage.... It would be great if you can clarify

purefall avatar Jul 09 '24 13:07 purefall

I'm also confused here. If indeed we need to use meta-llama/Llama-2-7b-hf chat template, so why does the source code also include another different chat template?

SongTonyLi avatar Sep 20 '24 03:09 SongTonyLi