Files
visor/images/gpu/ollama/Dockerfile.x86_64
Ayush RanjanandgVisor bot 16d95b1544 Add /usr/local/nvidia/bin to PATH in ffmpeg image.
This image is being used for some GPU tests.

Also clean up /bin/nvidia/bin from PATH from all GPU images. It's not used.

PiperOrigin-RevId: 720649135
2025-01-28 11:35:48 -08:00

21 lines
749 B
Docker

# https://hub.docker.com/r/ollama/ollama
FROM ollama/ollama:0.5.1
ENV PATH=$PATH:/usr/local/nvidia/bin
ENV OLLAMA_ORIGINS=*
ENV OLLAMA_HOST=0.0.0.0:11434
# Pre-install a few models.
# Although these are the smallest possible model size (7B parameters),
# these are still quite large and it would take too long for tests to
# download them on every run.
RUN bash -c ' \
( ollama serve ) & serverpid="$!"; \
sleep 5; \
ollama pull codellama:7b-instruct && \
ollama pull llama2-chinese:7b-chat && \
ollama pull llava:7b-v1.6 && \
kill "$serverpid" && \
wait "$serverpid" \
'