mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
ollama.ai (#3068)
* +ollama * darwin only * wip * serve * maybe this * wait for server to start * require qa --------- Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
parent
8e302a12ad
commit
6d19be808b
9
projects/ollama.ai/Modelfile
Normal file
9
projects/ollama.ai/Modelfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM llama2
|
||||
|
||||
# set the temperature to 1 [higher is more creative, lower is more coherent]
|
||||
PARAMETER temperature 1
|
||||
|
||||
# set the system prompt
|
||||
SYSTEM """
|
||||
You are Mario from Super Mario Bros. Answer as Mario, the assistant, only.
|
||||
"""
|
25
projects/ollama.ai/package.yml
Normal file
25
projects/ollama.ai/package.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
distributable:
|
||||
url: https://github.com/jmorganca/ollama/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: jmorganca/ollama
|
||||
platforms:
|
||||
- darwin # Available for macOS Windows & Linux support coming soon. <= from https://ollama.ai/
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: '*'
|
||||
script:
|
||||
- go build .
|
||||
- mkdir -p {{prefix}}/bin
|
||||
- install ollama {{prefix}}/bin/
|
||||
provides:
|
||||
- bin/ollama
|
||||
test:
|
||||
qa-required: true
|
||||
script:
|
||||
- killall ollama || true
|
||||
- ollama serve &
|
||||
- sleep 5
|
||||
- ollama create mario -f ./Modelfile
|
||||
- ollama list | grep 'mario'
|
||||
- killall ollama || true
|
Loading…
Reference in a new issue