[GH-ISSUE #5722] Environment variable OLLAMA_NUM_PARALLEL is ignored (Linux) #29323

Closed
opened 2026-04-22 08:05:13 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @boshk0 on GitHub (Jul 16, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5722

Originally assigned to: @dhiltgen on GitHub.

What is the issue?

After updating Ollama to the latest version (from 0.1.48) I noticed that the environment variable OLLAMA_NUM_PARALLEL is now ignored., Instead, the default value 4 is used.

My startup script:
export OLLAMA_MAX_LOADED_MODELS:2
export OLLAMA_KEEP_ALIVE:60m
export OLLAMA_NUM_PARALLEL:10

/bin/ollama serve

OS

Linux

GPU

Nvidia

CPU

Intel

Ollama version

0.2.5

Originally created by @boshk0 on GitHub (Jul 16, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5722 Originally assigned to: @dhiltgen on GitHub. ### What is the issue? After updating Ollama to the latest version (from 0.1.48) I noticed that the environment variable OLLAMA_NUM_PARALLEL is now ignored., Instead, the default value 4 is used. My startup script: export OLLAMA_MAX_LOADED_MODELS:2 export OLLAMA_KEEP_ALIVE:60m export OLLAMA_NUM_PARALLEL:10 /bin/ollama serve ### OS Linux ### GPU Nvidia ### CPU Intel ### Ollama version 0.2.5
GiteaMirror added the bug label 2026-04-22 08:05:13 -05:00
Author
Owner

@boshk0 commented on GitHub (Jul 22, 2024):

The issue was in the syntax of setting the variables.
This is the correct way and is working as expected:
export OLLAMA_NUM_PARALLEL=10

<!-- gh-comment-id:2242353666 --> @boshk0 commented on GitHub (Jul 22, 2024): The issue was in the syntax of setting the variables. This is the correct way and is working as expected: export OLLAMA_NUM_PARALLEL=10
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#29323