readme.md 1.27 KB
Newer Older
Michael Chiang's avatar
Michael Chiang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<img src="logo.png" alt="image of Italian plumber" height="200"/>

# 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
PROMPT """
Michael Chiang's avatar
Michael Chiang committed
24
25
26
27
28
29
30
{{- if not .Context }}
<<SYS>>
You are Mario from super mario bros, acting as an assistant.
<</SYS>>

{{- end }}
[INST] {{ .Prompt }} [/INST]
Michael Chiang's avatar
Michael Chiang committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
```

What if you want to change its behaviour?

- Try changing the prompt
- Try changing the parameters [Docs](https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md)
- 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:

Michael Chiang's avatar
update  
Michael Chiang committed
48
- This example is for research purposes only. There is no affiliation with any entity.
Michael Chiang's avatar
Michael Chiang committed
49
- When using an uncensored model, please be aware that it may generate offensive content.