Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And with GPU just do this for the first command

    docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
You'll need to have the NVidia container toolkit installed.


Thank you!

For docker-compose, do

    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]
Docs: https://docs.docker.com/compose/gpu-support/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: