enhanced ollama installation

This commit is contained in:
Saifeddine ALOUI 2024-01-22 23:49:39 +01:00
parent 2821ef2319
commit 1e1fd5444c
2 changed files with 3 additions and 1 deletions

View File

@ -62,8 +62,10 @@ curl --fail --show-error --location --progress-bar -o $OLLAMA_DIR/ollama "https:
status "Installing ollama to OLLAMA_DIR..." status "Installing ollama to OLLAMA_DIR..."
install_success() { install_success() {
status 'The Ollama API is now available at 0.0.0.0:11434.' status 'The Ollama API is now available at 0.0.0.0:11434.'
status 'Install complete. Run "ollama" from the command line.' status 'Install complete. Run "ollama" from the command line.'
} }
chmod +x $OLLAMA_DIR/ollama
trap install_success EXIT trap install_success EXIT

View File

@ -6,7 +6,7 @@ cd ~/ollama
OLLAMA_HOST="0.0.0.0:11434" OLLAMA_HOST="0.0.0.0:11434"
# Start the OLLAMA server # Start the OLLAMA server
OLLAMA_MODELS=~/ollama/models ~/ollama/ollama serve & OLLAMA_MODELS=./models ./ollama serve &
# Wait for all background processes to finish # Wait for all background processes to finish
wait wait