".github/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "143f667fb89a70f7d3d483091d4d0084ea725127"
Unverified Commit 1fb92886 authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

notify that the ollama api is available after linux install (#954)

parent 01a03caa
...@@ -63,7 +63,10 @@ status "Installing ollama to $BINDIR..." ...@@ -63,7 +63,10 @@ status "Installing ollama to $BINDIR..."
$SUDO install -o0 -g0 -m755 -d $BINDIR $SUDO install -o0 -g0 -m755 -d $BINDIR
$SUDO install -o0 -g0 -m755 $TEMP_DIR/ollama $BINDIR/ollama $SUDO install -o0 -g0 -m755 $TEMP_DIR/ollama $BINDIR/ollama
install_success() { status 'Install complete. Run "ollama" from the command line.'; } install_success() {
status 'The Ollama API is now available at 0.0.0.0:11434.'
status 'Install complete. Run "ollama" from the command line.'
}
trap install_success EXIT trap install_success EXIT
# Everything from this point onwards is optional. # Everything from this point onwards is optional.
...@@ -130,6 +133,7 @@ if check_gpu nvidia-smi; then ...@@ -130,6 +133,7 @@ if check_gpu nvidia-smi; then
fi fi
if ! check_gpu lspci && ! check_gpu lshw; then if ! check_gpu lspci && ! check_gpu lshw; then
install_success
warning "No NVIDIA GPU detected. Ollama will run in CPU-only mode." warning "No NVIDIA GPU detected. Ollama will run in CPU-only mode."
exit 0 exit 0
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment