1.2 KiB
1.2 KiB
Example character: Mario
This example shows how to create a basic character using Llama2 as the base model.
To run this example:
- Download the Modelfile
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?"
Editing this file
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?
- Try changing the prompt
- Try changing the parameters Docs
- Try changing the model (e.g. An uncensored model by
FROM wizard-vicuna
this is the wizard-vicuna uncensored model )
Once the changes are made,
ollama create NAME -f ./Modelfile
ollama run NAME
- Iterate until you are happy with the results.
Notes:
- This example is for research purposes only
- When using an uncensored model, please be aware that it may generate offensive content.