Add prompt template examples for instruct versions

#15
by nonetrix - opened

What instruct templates do these models uses e.g. ChatML, Alpaca, Mistral, etc. I suspect it's something custom like many models, but on a unrelated note would be great if future models use ChatML seems like the closet thing we have to a standard at least for now. But examples would be much appreciated something like this:

<|system|>
You are a helpful AI assistant.<|end|>
<|user|>
I am going to Paris, what should I see?<|end|>
<|assistant|>
Paris, the capital of France, is known for its stunning architecture, art museums, historical landmarks, and romantic atmosphere. Here are some of the top attractions to see in Paris:\n\n1. The Eiffel Tower: The iconic Eiffel Tower is one of the most recognizable landmarks in the world and offers breathtaking views of the city.\n2. The Louvre Museum: The Louvre is one of the world's largest and most famous museums, housing an impressive collection of art and artifacts, including the Mona Lisa.\n3. Notre-Dame Cathedral: This beautiful cathedral is one of the most famous landmarks in Paris and is known for its Gothic architecture and stunning stained glass windows.\n\nThese are just a few of the many attractions that Paris has to offer. With so much to see and do, it's no wonder that Paris is one of the most popular tourist destinations in the world."<|end|>
<|user|>
What is so great about #1?<|end|>
<|assistant|>

(Note: This is just a example from Phi3)

This would be a great help if for example support for this model architecture is added to llama cpp

nonetrix changed discussion title from Add prompt template examples to Add prompt template examples for instruct versions

Yes this is highly needed. Please let me know if someone found the prompt structure that works for the OpenELM models.

I think openelm too small to generate intellect. Maybe it doesn't have a version of the instructions

Yeah I tried it somewhat was disappointed compared to Phi3, but it would still be nice to have

Sign up or log in to comment