* +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:
Andrew 2023-09-06 21:02:26 +03:00 committed by GitHub
parent 8e302a12ad
commit 6d19be808b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 34 additions and 0 deletions

View 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.
"""

View 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