Skip to content

Commit

Permalink
setup: install/pull ollama models
Browse files Browse the repository at this point in the history
  • Loading branch information
chadsr committed Sep 27, 2024
1 parent 5cb36bb commit 3bad5a3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions setup_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ declare -a systemd_units=(
/usr/lib/systemd/system/bluetooth.service
/usr/lib/systemd/system/clamav-freshclam-once.timer
/usr/lib/systemd/system/ly.service
/usr/lib/systemd/system/ollama.service
/usr/lib/systemd/system/pcscd.socket
/usr/lib/systemd/system/smartd.service
/usr/lib/systemd/system/swayosd-libinput-backend.service
Expand Down Expand Up @@ -592,6 +593,18 @@ rustup component add clippy rustfmt || {

sudo update-smart-drivedb

declare -a ollama_models=(
llama3.2:latest
starcoder2:latest
)
for ollama_model in "${ollama_models[@]}"; do
echo "Pulling ${ollama_model}"
ollama pull "${ollama_model}" || {
echo "failed to install "${ollama_model}""
exit 1
}
done

corectrl_rules_path=/etc/polkit-1/rules.d/90-corectrl.rules
if ! sudo test -f "${corectrl_rules_path}"; then
echo "Setting up polkit for Corectrl"
Expand Down

0 comments on commit 3bad5a3

Please sign in to comment.