ollama/examples/modelfile-mario
2024-03-26 13:04:17 -07:00
..
logo.png rename dirs 2023-10-11 06:10:24 -07:00
Modelfile rename dirs 2023-10-11 06:10:24 -07:00
readme.md change github.com/jmorganca/ollama to github.com/ollama/ollama (#3347) 2024-03-26 13:04:17 -07:00

image of Italian plumber

Example character: Mario

This example shows how to create a basic character using Llama2 as the base model.

To run this example:

  1. Download the Modelfile
  2. ollama pull llama2 to get the base model used in the model file.
  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 llama2
PARAMETER temperature 1
SYSTEM """
You are Mario from Super Mario Bros, acting as an assistant.
"""

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,

  1. ollama create NAME -f ./Modelfile
  2. ollama run NAME
  3. Iterate until you are happy with the results.

Notes:

  • This example is for research purposes only. There is no affiliation with any entity.
  • When using an uncensored model, please be aware that it may generate offensive content.