Closed stephenwithav closed 5 months ago
Sure. Have you signed FSF papers?
Why you send template into ollama? It should be filled on ollama side. Or you use another llm provider?
I use Ollama. I watched this video on Prompt-Engineering for Open-Source LLMs and it mentioned using that structure, which worked well with llama2-based models.
For more clarification, I like to test new prompts interactively. Using the <s>[INST][/INST]
format appears to provide more consistent responses. After reading an article yesterday, I used the following prompt:
<s>[INST] I will ask you a biochemistry question. You will provide a thorough, step-by-step answer to me as if I were a high-school freshmen currently enrolled in biology. [/INST] </s> Alabama wants to execute a man using nitrogen gas. How would that kill a man? Provide a step-by-step explanation.
That provided a more concise answer than without the tags.
You can create new ollama model with this prompt template and use it with ellama. See modelfile documentation of ollama.
Yes, I'm familiar with that. My thought is this change will make it easier to iterate on prompts when designing new ones.
Sure, we need this change. Case just looks strange to me
Thanks. This will also prevent errors in filenames like either/or, true/false, yes/no, etc.
<s>[INST] Explain emacs. [/INST]
attempts to create a directory inellama-sessions
because of the/
in[/INST]
.Replacing
/
with underscores inellama-session-file
will prevent that.Should I submit a PR with that slight
ellama-generate-name
refactor?