Commit ac6a9365 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

go needs space in /tmp - we need to bind mount it; added symlinks for cuda to get it detected

parent 7ad1e001
......@@ -26,8 +26,12 @@ nvidia-86: ollama-service
chmod 600 swap
mkswap swap
swapon swap
mkdir tmp
mount --bind tmp /tmp
tar xf ollama-0.11.4.tar.gz
ln -s /lib /lib64
ln -s $(CURDIR)/../cuda/cuda-13.0 /usr/local/cuda-13.0
cd ollama-0.11.4 && PATH=$$PATH:/usr/local/cuda-13.0/bin cmake -B build -DCMAKE_CUDA_ARCHITECTURES=86
cd ollama-0.11.4 && cmake --build build
cd ollama-0.11.4 && GO111MODULE=on GOCACHE=/tmp/gocache GOPATH=$(CURDIR)/../go/go $(CURDIR)/../go/go/bin/go mod download
......@@ -37,6 +41,8 @@ nvidia-86: ollama-service
systemctl enable ollama.service
rm -rf ollama-0.11.4
umount /tmp
rm -rf tmp
swapoff swap
rm -rf swap
......
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