Create a dedicated script to manage local models
This commit is contained in:
parent
8a29d8da40
commit
f8b80bd60d
1 changed files with 9 additions and 0 deletions
9
.local/bin/podllama
Executable file
9
.local/bin/podllama
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#! /usr/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
IFS=$'\n\t'
|
||||||
|
|
||||||
|
mkdir --parents ~/.local/share/ollama/
|
||||||
|
pod_id=$(podman run --detach --rm --volume ~/.local/share/ollama/:/root/.ollama ollama:latest)
|
||||||
|
podman exec --interactive --tty "${pod_id}" ollama "$@"
|
||||||
|
podman kill "${pod_id}" > /dev/null
|
||||||
Loading…
Add table
Add a link
Reference in a new issue