mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Unable to set environment variables - OLLAMA_NUM_PARALLEL, OLLAMA_NUM_GPU, and OLLAMA_NUM_THREAD #195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @harshachopra507 on GitHub (Dec 31, 2024).
I have set os.environ["OLLAMA_NUM_PARALLEL"] = "4" through python script, but it is not running parallely 4 LLM requests.
Please help me with this issue.
@ParthSareen commented on GitHub (Jan 21, 2025):
Could you show the snippet of code you're making requests with?
@ckuethe commented on GitHub (Apr 12, 2025):
@harshachopra507 those
OLLAMA_environment variables are for the server and are not passed from the python client. Set them the appropriate technique for the way you startollama serve- in the dockerfile, docker run command, or systemd unit.@pataquets commented on GitHub (Jun 25, 2025):
Issue gardening.
@harshachopra507: did it work? Can the issue be closed? (let's keep the issue list tidy to help maintainers)