-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathollama.def
30 lines (24 loc) · 907 Bytes
/
ollama.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Bootstrap: docker
From: ollama/ollama:latest
# ollama containers https://github.com/iportilla/ollama-lab
%post
# install miniconda
apt-get -y update && apt-get install -y wget bzip2
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
bash ~/miniconda.sh -b -p /opt/conda
rm ~/miniconda.sh
export PATH="/opt/conda/bin:$PATH"
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc
echo "conda activate" >> ~/.bashrc
# install pip
apt-get install -y python3-pip
# configure conda
conda config --add channels conda-forge
# install ollama
pip3 install ollama
# install numpy, matplotlib, pandas, rich, jupyter
conda install -c conda-forge numpy matplotlib pandas rich jupyterlab ipykernel
%environment
export PATH="/opt/conda/bin:$PATH"
. /opt/conda/etc/profile.d/conda.sh
conda activate