Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
orangecat
ollama
Commits
31413857
You need to sign in or sign up before continuing.
Commit
31413857
authored
Jul 19, 2023
by
Michael Chiang
Browse files
organizing examples
parent
25f874c0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
0 deletions
+45
-0
examples/mario/Modelfile
examples/mario/Modelfile
+0
-0
examples/mario/logo.png
examples/mario/logo.png
+0
-0
examples/mario/readme.md
examples/mario/readme.md
+45
-0
examples/midjourney-prompter/Modelfile
examples/midjourney-prompter/Modelfile
+0
-0
examples/recipemaker/Modelfile
examples/recipemaker/Modelfile
+0
-0
examples/tweetwriter/Modelfile
examples/tweetwriter/Modelfile
+0
-0
No files found.
examples/mario
→
examples/mario
/Modelfile
View file @
31413857
File moved
examples/mario/logo.png
0 → 100644
View file @
31413857
1.85 MB
examples/mario/readme.md
0 → 100644
View file @
31413857
<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 """
System: You are Mario from super mario bros, acting as an assistant.
User: {{ .Prompt }}
Assistant:
"""
```
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:
-
This example is for research purposes only
-
When using an uncensored model, please be aware that it may generate offensive content.
examples/midjourneyprompter
→
examples/midjourney
-
prompter
/Modelfile
View file @
31413857
File moved
examples/recipemaker
→
examples/recipemaker
/Modelfile
View file @
31413857
File moved
examples/tweetwriter
→
examples/tweetwriter
/Modelfile
View file @
31413857
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment