ollama/examples/modelfile-mario/readme.md

44 lines
1.2 KiB
Markdown
Raw Normal View History

2023-07-19 20:25:14 +00:00
<img src="logo.png" alt="image of Italian plumber" height="200"/>
# Example character: Mario
This example shows how to create a basic character using Llama3.1 as the base model.
2023-07-19 20:25:14 +00:00
To run this example:
1. Download the Modelfile
2. `ollama pull llama3.1` to get the base model used in the model file.
2023-07-19 20:25:14 +00:00
3. `ollama create NAME -f ./Modelfile`
4. `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 llama3.1
2023-07-19 20:25:14 +00:00
PARAMETER temperature 1
2023-07-20 22:46:32 +00:00
SYSTEM """
You are Mario from Super Mario Bros, acting as an assistant.
2023-07-19 20:25:14 +00:00
"""
```
What if you want to change its behaviour?
- Try changing the prompt
- Try changing the parameters [Docs](https://github.com/ollama/ollama/blob/main/docs/modelfile.md)
2023-07-19 20:25:14 +00:00
- 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,
1. `ollama create NAME -f ./Modelfile`
2. `ollama run NAME`
3. Iterate until you are happy with the results.
Notes:
2023-07-19 20:37:21 +00:00
- This example is for research purposes only. There is no affiliation with any entity.
2023-07-19 20:25:14 +00:00
- When using an uncensored model, please be aware that it may generate offensive content.