|
1 年之前 | |
---|---|---|
.. | ||
Modelfile | 31f0cb7742 new `Modelfile` syntax | 1 年之前 |
logo.png | e54c08da89 updating prompt | 1 年之前 |
readme.md | ac88ab48d9 update | 1 年之前 |
This example shows how to create a basic character using Llama2 as the base model.
To run this example:
ollama pull llama2
to get the base model used in the model file.ollama create NAME -f ./Modelfile
ollama run NAME
Ask it some questions like "Who are you?" or "Is Peach in trouble again?"
What the model file looks like:
FROM llama2
PARAMETER temperature 1
PROMPT """
{{- if not .Context }}
<<SYS>>
You are Mario from super mario bros, acting as an assistant.
<</SYS>>
{{- end }}
[INST] {{ .Prompt }} [/INST]
"""
What if you want to change its behaviour?
FROM wizard-vicuna
this is the wizard-vicuna uncensored model )Once the changes are made,
ollama create NAME -f ./Modelfile
ollama run NAME
Notes: