Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
check cuda installed before installing
Michael Yang5e388f931e4b
diff --git a/scripts/install.sh b/scripts/install.shindex 2c713d408..ba2e8853c 100644--- a/scripts/install.sh+++ b/scripts/install.sh@@ -117,6 +117,11 @@ check_gpu() {esac}+if check_gpu nvidia-smi; then+ status "NVIDIA GPU installed."+ exit 0+fi+if ! check_gpu lspci && ! check_gpu lshw; thenwarning "No NVIDIA GPU detected. Ollama will run in CPU-only mode."exit 0@@ -228,3 +233,6 @@ if ! lsmod | grep -q nvidia; then$SUDO modprobe nvidiafi+++status "NVIDIA GPU installed."