Created
May 19, 2024 13:56
-
-
Save ryanhs/0fe15e58b75efba1d418580ec35c5430 to your computer and use it in GitHub Desktop.
ollama run on docker, with cpu limit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run --rm -it -v /usr/share/ollama/.ollama/:/root/.ollama -p 11435:11434 --cpuset-cpus=0,1 ollama/ollama | |
docker run --rm -it -v /usr/share/ollama/.ollama/:/root/.ollama -p 11436:11434 --cpuset-cpus=2,3 ollama/ollama |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment