From c9a5fe2067387f8838e69a7359811ddcb4b6caa9 Mon Sep 17 00:00:00 2001 From: Steve McMaster Date: Tue, 6 Feb 2024 17:07:03 -0500 Subject: [PATCH] update --- .drone.star | 2 ++ startup_scripts/ollama.sh.j2 | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 startup_scripts/ollama.sh.j2 diff --git a/.drone.star b/.drone.star index a49a9be..b5d4343 100644 --- a/.drone.star +++ b/.drone.star @@ -39,6 +39,8 @@ TEMPLATES = { "distro_package_manager": "apt", "distro_releases": [], "image": "cr.smcm.xyz/coder-images/ollama:quantize", + "coder_home_disk_size": "100", + "startup_scripts": ["ollama"] }, "ubuntu": { "distro_name": "Ubuntu Linux", diff --git a/startup_scripts/ollama.sh.j2 b/startup_scripts/ollama.sh.j2 new file mode 100644 index 0000000..80502e3 --- /dev/null +++ b/startup_scripts/ollama.sh.j2 @@ -0,0 +1,9 @@ + git clone git@github.com:ollama/ollama.git ollama + cd ollama + git submodule init + git submodule update llm/llama.cpp + python3 -m venv llm/llama.cpp/.venv + source llm/llama.cpp/.venv/bin/activate + pip install -r llm/llama.cpp/requirements.txt + make -C llm/llama.cpp quantize + git lfs install \ No newline at end of file