mirror of
https://github.com/ollama/ollama.git
synced 2026-05-06 08:02:14 -05:00
Closed
opened 2026-04-22 01:46:18 -05:00 by GiteaMirror
·
84 comments
No Branch/Tag Specified
main
parth-mlx-decode-checkpoints
dhiltgen/ci
hoyyeva/editor-config-repair
parth-launch-codex-app
hoyyeva/fix-codex-model-metadata-warning
hoyyeva/qwen
hoyyeva/launch-backup-ux
parth/hide-claude-desktop-till-release
hoyyeva/opencode-image-modality
parth-add-claude-code-autoinstall
release_v0.22.0
pdevine/manifest-list
codex/fix-codex-model-metadata-warning
pdevine/addressable-manifest
brucemacd/launch-fetch-reccomended
jmorganca/llama-compat
launch-copilot-cli
hoyyeva/opencode-thinking
release_v0.20.7
parth-auto-save-backup
parth-test
jmorganca/gemma4-audio-replacements
fix-manifest-digest-on-pull
hoyyeva/vscode-improve
brucemacd/install-server-wait
brucemacd/download-before-remove
parth/update-claude-docs
parth-anthropic-reference-images-path
brucemac/start-ap-install
pdevine/mlx-update
pdevine/qwen35_vision
drifkin/api-show-fallback
mintlify/image-generation-1773352582
hoyyeva/server-context-length-local-config
jmorganca/faster-reptition-penalties
jmorganca/convert-nemotron
parth-pi-thinking
pdevine/sampling-penalties
jmorganca/fix-create-quantization-memory
dongchen/resumable_transfer_fix
pdevine/sampling-cache-error
jessegross/mlx-usage
hoyyeva/openclaw-config
hoyyeva/app-html
pdevine/qwen3next
brucemacd/sign-sh-install
brucemacd/tui-update
brucemacd/usage-api
jmorganca/launch-empty
fix-app-dist-embed
mxyng/mlx-compile
mxyng/mlx-quant
mxyng/mlx-glm4.7
mxyng/mlx
brucemacd/simplify-model-picker
jmorganca/qwen3-concurrent
fix-glm-4.7-flash-mla-config
drifkin/qwen3-coder-opening-tag
brucemacd/usage-cli
fix-cuda12-fattn-shmem
ollama-imagegen-docs
parth/fix-multiline-inputs
brucemacd/config-docs
mxyng/model-files
mxyng/simple-execute
fix-imagegen-ollama-models
mxyng/async-upload
jmorganca/lazy-no-dtype-changes
imagegen-auto-detect-create
parth/decrease-concurrent-download-hf
fix-mlx-quantize-init
jmorganca/x-cleanup
usage
imagegen-readme
jmorganca/glm-image
mlx-gpu-cd
jmorganca/imagegen-modelfile
parth/agent-skills
parth/agent-allowlist
parth/signed-in-offline
parth/agents
parth/fix-context-chopping
improve-cloud-flow
parth/add-models-websearch
parth/prompt-renderer-mcp
jmorganca/native-settings
jmorganca/download-stream-hash
jmorganca/client2-rebased
brucemacd/oai-chat-req-multipart
jessegross/multi_chunk_reserve
grace/additional-omit-empty
grace/mistral-3-large
mxyng/tokenizer2
mxyng/tokenizer
jessegross/flash
hoyyeva/windows-nacked-app
mxyng/cleanup-attention
grace/deepseek-parser
hoyyeva/remember-unsent-prompt
parth/add-lfs-pointer-error-conversion
parth/olmo2-test2
hoyyeva/ollama-launchagent-plist
nicole/olmo-model
parth/olmo-test
mxyng/remove-embedded
parth/render-template
jmorganca/intellect-3
parth/remove-prealloc-linter
jmorganca/cmd-eval
nicole/nomic-embed-text-fix
mxyng/lint-2
hoyyeva/add-gemini-3-pro-preview
hoyyeva/load-model-list
mxyng/expand-path
mxyng/environ-2
hoyyeva/deeplink-json-encoding
parth/improve-tool-calling-tests
hoyyeva/conversation
hoyyeva/assistant-edit-response
hoyyeva/thinking
origin/brucemacd/invalid-char-i-err
parth/improve-tool-calling
jmorganca/required-omitempty
grace/qwen3-vl-tests
mxyng/iter-client
parth/docs-readme
nicole/embed-test
pdevine/integration-benchstat
parth/remove-generate-cmd
parth/add-toolcall-id
mxyng/server-tests
jmorganca/glm-4.6
jmorganca/gin-h-compat
drifkin/stable-tool-args
pdevine/qwen3-more-thinking
parth/add-websearch-client
nicole/websearch_local
jmorganca/qwen3-coder-updates
grace/deepseek-v3-migration-tests
mxyng/fix-create
jmorganca/cloud-errors
pdevine/parser-tidy
revert-12233-parth/simplify-entrypoints-runner
parth/enable-so-gpt-oss
brucemacd/qwen3vl
jmorganca/readme-simplify
parth/gpt-oss-structured-outputs
revert-12039-jmorganca/tools-braces
mxyng/embeddings
mxyng/gguf
mxyng/benchmark
mxyng/types-null
parth/move-parsing
mxyng/gemma2
jmorganca/docs
mxyng/16-bit
mxyng/create-stdin
pdevine/authorizedkeys
mxyng/quant
parth/opt-in-error-context-window
brucemacd/cache-models
brucemacd/runner-completion
jmorganca/llama-update-6
brucemacd/benchmark-list
brucemacd/partial-read-caps
parth/deepseek-r1-tools
mxyng/omit-array
parth/tool-prefix-temp
brucemacd/runner-test
jmorganca/qwen25vl
brucemacd/model-forward-test-ext
parth/python-function-parsing
jmorganca/cuda-compression-none
drifkin/num-parallel
drifkin/chat-truncation-fix
jmorganca/sync
parth/python-tools-calling
drifkin/array-head-count
brucemacd/create-no-loop
parth/server-enable-content-stream-with-tools
qwen25omni
mxyng/v3
brucemacd/ropeconfig
jmorganca/silence-tokenizer
parth/sample-so-test
parth/sampling-structured-outputs
brucemacd/doc-go-engine
parth/constrained-sampling-json
jmorganca/mistral-wip
brucemacd/mistral-small-convert
parth/sample-unmarshal-json-for-params
brucemacd/jomorganca/mistral
pdevine/bfloat16
jmorganca/mistral
brucemacd/mistral
pdevine/logging
parth/sample-correctness-fix
parth/sample-fix-sorting
jmorgan/sample-fix-sorting-extras
jmorganca/temp-0-images
brucemacd/parallel-embed-models
brucemacd/shim-grammar
jmorganca/fix-gguf-error
bmizerany/nameswork
jmorganca/faster-releases
bmizerany/validatenames
brucemacd/err-no-vocab
brucemacd/rope-config
brucemacd/err-hint
brucemacd/qwen2_5
brucemacd/logprobs
brucemacd/new_runner_graph_bench
progress-flicker
brucemacd/forward-test
brucemacd/go_qwen2
pdevine/gemma2
jmorganca/add-missing-symlink-eval
mxyng/next-debug
parth/set-context-size-openai
brucemacd/next-bpe-bench
brucemacd/next-bpe-test
brucemacd/new_runner_e2e
brucemacd/new_runner_qwen2
pdevine/convert-cohere2
brucemacd/convert-cli
parth/log-probs
mxyng/next-mlx
mxyng/cmd-history
parth/templating
parth/tokenize-detokenize
brucemacd/check-key-register
bmizerany/grammar
jmorganca/vendor-081b29bd
mxyng/func-checks
jmorganca/fix-null-format
parth/fix-default-to-warn-json
jmorganca/qwen2vl
jmorganca/no-concat
parth/cmd-cleanup-SO
brucemacd/check-key-register-structured-err
parth/openai-stream-usage
parth/fix-referencing-so
stream-tools-stop
jmorganca/degin-1
brucemacd/install-path-clean
brucemacd/push-name-validation
brucemacd/browser-key-register
jmorganca/openai-fix-first-message
jmorganca/fix-proxy
jessegross/sample
parth/disallow-streaming-tools
dhiltgen/remove_submodule
jmorganca/ga
jmorganca/mllama
pdevine/newlines
pdevine/geems-2b
jmorganca/llama-bump
mxyng/modelname-7
mxyng/gin-slog
mxyng/modelname-6
jyan/convert-prog
jyan/quant5
paligemma-support
pdevine/import-docs
jmorganca/openai-context
jyan/paligemma
jyan/p2
jyan/palitest
bmizerany/embedspeedup
jmorganca/llama-vit
brucemacd/allow-ollama
royh/ep-methods
royh/whisper
mxyng/api-models
mxyng/fix-memory
jyan/q4_4/8
jyan/ollama-v
royh/stream-tools
roy-embed-parallel
bmizerany/hrm
revert-5963-revert-5924-mxyng/llama3.1-rope
royh/embed-viz
jyan/local2
jyan/auth
jyan/local
jyan/parse-temp
jmorganca/template-mistral
jyan/reord-g
royh-openai-suffixdocs
royh-imgembed
royh-embed-parallel
jyan/quant4
royh-precision
jyan/progress
pdevine/fix-template
jyan/quant3
pdevine/ggla
mxyng/update-registry-domain
jmorganca/ggml-static
mxyng/create-context
jyan/v0.146
mxyng/layers-from-files
build_dist
bmizerany/noseek
royh-ls
royh-name
timeout
mxyng/server-timestamp
bmizerany/nosillyggufslurps
royh-params
jmorganca/llama-cpp-7c26775
royh-openai-delete
royh-show-rigid
jmorganca/enable-fa
jmorganca/no-error-template
jyan/format
royh-testdelete
bmizerany/fastverify
language_support
pdevine/ps-glitches
brucemacd/tokenize
bruce/iq-quants
bmizerany/filepathwithcoloninhost
mxyng/split-bin
bmizerany/client-registry
jmorganca/if-none-match
native
jmorganca/native
jmorganca/batch-embeddings
jmorganca/initcmake
jmorganca/mm
pdevine/showggmlinfo
modenameenforcealphanum
bmizerany/modenameenforcealphanum
jmorganca/done-reason
jmorganca/llama-cpp-8960fe8
ollama.com
bmizerany/filepathnobuild
bmizerany/types/model/defaultfix
rmdisplaylong
nogogen
bmizerany/x
modelfile-readme
bmizerany/replacecolon
jmorganca/limit
jmorganca/execstack
jmorganca/replace-assets
mxyng/tune-concurrency
jmorganca/testing
whitespace-detection
jmorganca/options
upgrade-all
scratch
cuda-search
mattw/airenamer
mattw/allmodelsonhuggingface
mattw/quantcontext
mattw/whatneedstorun
brucemacd/llama-mem-calc
mattw/faq-context
mattw/communitylinks
mattw/noprune
mattw/python-functioncalling
rename
mxyng/install
pulse
remove-first
editor
mattw/selfqueryingretrieval
cgo
mattw/howtoquant
api
matt/streamingapi
format-config
mxyng/extra-args
shell
update-nous-hermes
cp-model
upload-progress
fix-unknown-model
fix-model-names
delete-fix
insecure-registry
ls
deletemodels
progressbar
readme-updates
license-layers
skip-list
list-models
modelpath
matt/examplemodelfiles
distribution
go-opts
v0.23.1
v0.23.1-rc0
v0.23.0
v0.23.0-rc0
v0.22.1
v0.22.1-rc1
v0.22.1-rc0
v0.22.0
v0.22.0-rc1
v0.21.3-rc0
v0.21.2-rc1
v0.21.2
v0.21.2-rc0
v0.21.1
v0.21.1-rc1
v0.21.1-rc0
v0.21.0
v0.21.0-rc1
v0.21.0-rc0
v0.20.8-rc0
v0.20.7
v0.20.7-rc1
v0.20.7-rc0
v0.20.6
v0.20.6-rc1
v0.20.6-rc0
v0.20.5
v0.20.5-rc2
v0.20.5-rc1
v0.20.5-rc0
v0.20.4
v0.20.4-rc2
v0.20.4-rc1
v0.20.4-rc0
v0.20.3
v0.20.3-rc0
v0.20.2
v0.20.1
v0.20.1-rc2
v0.20.1-rc1
v0.20.1-rc0
v0.20.0
v0.20.0-rc1
v0.20.0-rc0
v0.19.0
v0.19.0-rc2
v0.19.0-rc1
v0.19.0-rc0
v0.18.4-rc1
v0.18.4-rc0
v0.18.3
v0.18.3-rc2
v0.18.3-rc1
v0.18.3-rc0
v0.18.2
v0.18.2-rc1
v0.18.2-rc0
v0.18.1
v0.18.1-rc1
v0.18.1-rc0
v0.18.0
v0.18.0-rc2
v0.18.0-rc1
v0.18.0-rc0
v0.17.8-rc4
v0.17.8-rc3
v0.17.8-rc2
v0.17.8-rc1
v0.17.8-rc0
v0.17.7
v0.17.7-rc2
v0.17.7-rc1
v0.17.7-rc0
v0.17.6
v0.17.5
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.1-rc2
v0.17.1-rc1
v0.17.1-rc0
v0.17.0
v0.17.0-rc2
v0.17.0-rc1
v0.17.0-rc0
v0.16.3
v0.16.3-rc2
v0.16.3-rc1
v0.16.3-rc0
v0.16.2
v0.16.2-rc0
v0.16.1
v0.16.0
v0.16.0-rc2
v0.16.0-rc0
v0.16.0-rc1
v0.15.6
v0.15.5
v0.15.5-rc5
v0.15.5-rc4
v0.15.5-rc3
v0.15.5-rc2
v0.15.5-rc1
v0.15.5-rc0
v0.15.4
v0.15.3
v0.15.2
v0.15.1
v0.15.1-rc1
v0.15.1-rc0
v0.15.0-rc6
v0.15.0
v0.15.0-rc5
v0.15.0-rc4
v0.15.0-rc3
v0.15.0-rc2
v0.15.0-rc1
v0.15.0-rc0
v0.14.3
v0.14.3-rc3
v0.14.3-rc2
v0.14.3-rc1
v0.14.3-rc0
v0.14.2
v0.14.2-rc1
v0.14.2-rc0
v0.14.1
v0.14.0-rc11
v0.14.0
v0.14.0-rc10
v0.14.0-rc9
v0.14.0-rc8
v0.14.0-rc7
v0.14.0-rc6
v0.14.0-rc5
v0.14.0-rc4
v0.14.0-rc3
v0.14.0-rc2
v0.14.0-rc1
v0.14.0-rc0
v0.13.5
v0.13.5-rc1
v0.13.5-rc0
v0.13.4-rc2
v0.13.4
v0.13.4-rc1
v0.13.4-rc0
v0.13.3
v0.13.3-rc1
v0.13.3-rc0
v0.13.2
v0.13.2-rc2
v0.13.2-rc1
v0.13.2-rc0
v0.13.1
v0.13.1-rc2
v0.13.1-rc1
v0.13.1-rc0
v0.13.0
v0.13.0-rc0
v0.12.11
v0.12.11-rc1
v0.12.11-rc0
v0.12.10
v0.12.10-rc1
v0.12.10-rc0
v0.12.9-rc0
v0.12.9
v0.12.8
v0.12.8-rc0
v0.12.7
v0.12.7-rc1
v0.12.7-rc0
v0.12.7-citest0
v0.12.6
v0.12.6-rc1
v0.12.6-rc0
v0.12.5
v0.12.5-rc0
v0.12.4
v0.12.4-rc7
v0.12.4-rc6
v0.12.4-rc5
v0.12.4-rc4
v0.12.4-rc3
v0.12.4-rc2
v0.12.4-rc1
v0.12.4-rc0
v0.12.3
v0.12.2
v0.12.2-rc0
v0.12.1
v0.12.1-rc1
v0.12.1-rc2
v0.12.1-rc0
v0.12.0
v0.12.0-rc1
v0.12.0-rc0
v0.11.11
v0.11.11-rc3
v0.11.11-rc2
v0.11.11-rc1
v0.11.11-rc0
v0.11.10
v0.11.9
v0.11.9-rc0
v0.11.8
v0.11.8-rc0
v0.11.7-rc1
v0.11.7-rc0
v0.11.7
v0.11.6
v0.11.6-rc0
v0.11.5-rc4
v0.11.5-rc3
v0.11.5
v0.11.5-rc5
v0.11.5-rc2
v0.11.5-rc1
v0.11.5-rc0
v0.11.4
v0.11.4-rc0
v0.11.3
v0.11.3-rc0
v0.11.2
v0.11.1
v0.11.0-rc0
v0.11.0-rc1
v0.11.0-rc2
v0.11.0
v0.10.2-int1
v0.10.1
v0.10.0
v0.10.0-rc4
v0.10.0-rc3
v0.10.0-rc2
v0.10.0-rc1
v0.10.0-rc0
v0.9.7-rc1
v0.9.7-rc0
v0.9.6
v0.9.6-rc0
v0.9.6-ci0
v0.9.5
v0.9.4-rc5
v0.9.4-rc6
v0.9.4
v0.9.4-rc3
v0.9.4-rc4
v0.9.4-rc1
v0.9.4-rc2
v0.9.4-rc0
v0.9.3
v0.9.3-rc5
v0.9.4-citest0
v0.9.3-rc4
v0.9.3-rc3
v0.9.3-rc2
v0.9.3-rc1
v0.9.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.19
v0.1.18
v0.1.17
v0.1.16
v0.1.15
v0.1.14
v0.1.13
v0.1.12
v0.1.11
v0.1.10
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.4
v0.1.3
v0.1.2
v0.1.1
v0.1.0
v0.0.21
v0.0.20
v0.0.19
v0.0.18
v0.0.17
v0.0.16
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
v0.0.10
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Labels
Clear labels
amd
api
app
bug
build
cli
cloud
compatibility
context-length
create
docker
documentation
embeddings
feature request
feedback wanted
good first issue
gpt-oss
gpu
harmony
help wanted
image
install
intel
js
launch
linux
macos
memory
mlx
model
needs more info
networking
nvidia
ollama.com
performance
pull-request
python
question
registry
rendering
thinking
tools
top
vulkan
windows
wsl
Mirrored from GitHub Pull Request
No Label
feature request
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ollama#25920
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking 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 @youssef02 on GitHub (Aug 16, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/358
Originally assigned to: @dhiltgen on GitHub.
the app is amazing but the problem is If I want to create a multiagent from one api, I need to create a Queue system, as it can reply only to one request at a time, is there a way to improve this or do I have to implement a Queue system?
I just started here so sorry for any mistake, ;)
@jmorganca commented on GitHub (Aug 23, 2023):
Not a mistake – Ollama will serve one generation at a time currently, but supporting 2+ concurrent requests is definitely on the roadmap
@LeHaroun commented on GitHub (Oct 17, 2023):
Is there a way to run multiple instances on the same machine
I am working on a similar implementation using MAS, If you have beefy hardware, I recommend you run several instances in closed envs. Save completions or generation and process them later on.
Also check LiteLLM APIs on top of Ollama. Quite helpful.
@skye0402 commented on GitHub (Jan 9, 2024):
Would be definitely a great addition to Ollama:
I'm running it on cloud using a T4 with 16GB GPU memory and having a phi-2 and codellama both in the V-RAM would be no issue at all. Ideally other models are kept in regular RAM instead of loading it from disk.
Adding to it: Users might switch models, so the queuing approach would apply to model switches, too 😃
@ivanfioravanti commented on GitHub (Jan 18, 2024):
Any news on this one? Parallel requests can be a real game changer for Ollama
@ParisNeo commented on GitHub (Jan 30, 2024):
If you have enough VRAM to run multiple models, you can create multiple instances of ollama with different port numbers then use my proxy to manage access and route to the requests to each:
ParisNeo's ollama_proxy_server
@ehartford commented on GitHub (Jan 30, 2024):
I would really like to have an m2 ultra 192gb on my company's intranet that can service the whole R&D department (a dozen people)
as long as I have enough ram, I wish to be able to run multiple inference request at the same time. Thank you for considering my wish!
@ivanfioravanti commented on GitHub (Jan 30, 2024):
same here, multiple 7B models served by an M2 Ultra. My dream! 🙏
@Adphi commented on GitHub (Jan 31, 2024):
At first glance, when I started examining the source code, I thought that the problem of concurrent requests was due to the fact that the current implementation referred to the use of global variables in its llama.cpp binding. After paying a little more attention to the original llapma.cpp source code, I realized that the original implementation wasn't exactly geared towards multithreaded or server-side use, but rather towards to a local development/experimentation use case.
So apart from setting up an API using queued workers (managed using gRPC for example) based on a fork/exec model to get around the lack of batch processing on the llama.cpp side, which doesn't seem to procure too much attention from the developpers (reference missing, but found in the github project's conversations), which Local AI does in a way, I don't see exactly how it could be implemented here.
@ParisNeo commented on GitHub (Jan 31, 2024):
That's why I had to build a proxy. You can install multiple servers on a single or multiple machines then use my proxy to service multiple users with a multi queue. For example if you have 2 servers then you can servicec at most 2 clients simultaniously and when the two are buzy, the current message is queued on the server that has the least full queue. In practice, since the generation is very fast, you don't get too much collisions. We rarely get more than 1 person in the queue.
I also added security features as well as logging features. It works fine and serves all of us perfectly.
Also, some dude built a docker docker version and I accepted his PR:
https://github.com/ParisNeo/ollama_proxy_server
If you are interested, you can try it, it is open source, you can also read the code, get inspired, help enhance it etc. It is Apache 2.0 so you can do whatever you want with it 100% free.
We get around 300 tokens/s for each user so it is not causing any significant delay.
@ehartford commented on GitHub (Jan 31, 2024):
llama.cpp can be run as multiple process, multiple thread, or as server.
but it's totally fair for the feature request to be deprioritized, of course.
@farhanhubble commented on GitHub (Feb 1, 2024):
The easiest way to multiplex Ollama, at least on linux system should be with a reverse proxy load balancer like HAProxy. Launch multiple instances of
ollama serveon different ports and map them to a single port using HAproxy.Note that the approach can sometimes deteriorate performance due to CPU contention. I have a decent system with 64 cores and 24GB of GPU RAM. When I run 3 instances of Ollama with HAproxy to generate embeddings it does speed up the process however if I try to generate text, the processing time is much worse than with a single instance.
@trymeouteh commented on GitHub (Mar 1, 2024):
Would like to see the ability for using the same LLM in two or more apps at the same time and would like to see the ability to use multiple LLMs in two or more apps at the same time
@ParisNeo commented on GitHub (Mar 1, 2024):
well technically, you can run multiple instances of the same model by runnin multiple instances of ollama with different port numbers, configure them in the proxy config file then they can be accessed from multiple clients at once.
@ehartford commented on GitHub (Mar 1, 2024):
That's just wrong 😂
@ParisNeo commented on GitHub (Mar 1, 2024):
ollama does not support batching and unless they build something like vllm, I don't see how you can do it.
@ehartford commented on GitHub (Mar 1, 2024):
manage a process/thread pool. Load balance. It's not rocket science.
@youssef02 commented on GitHub (Mar 1, 2024):
This is somehow a problem with scaling, I think. While ollama imodel can only handle one request at a time. It can't be concurrent to multiple request as it will need to run new models, which take more resources. I really want for someone to share their finding when trying to handle multiple request like in a uni environment with many student.
How to approach this problem
@ehartford commented on GitHub (Mar 2, 2024):
The idea is the system (a MacBook or Mac studio with 128gb+ of unified RAM) can handle several dozen 4-bit 7b models at once.
So taking more resources is ok, no problem.
@ParisNeo commented on GitHub (Mar 2, 2024):
If you want that way, then you can use my ollama_proxy project, it does exactly what you asked for.
If multiplying the number of resources doesn't bother you then this is a simple solution. Each ollama process runs on its own and the proxy manages the routing and queues and everything:
https://github.com/ParisNeo/ollama_proxy_server
I was really wanting a better more optimized way. Neural nets can do inferance on a batch of inputs. You don't need to duplicate the model weights. That's what we talk about when we say real multigeneration system. You can perform fast inference with that, just as in vllm.
@ehartford commented on GitHub (Mar 2, 2024):
I appreciate that you have provided a workaround.
Basically that's what ollama needs to implement internally.
I want ollama to be smart, and internally spawn and destroy llama.cpp threads/processes as needed to handle parallel requests without an external proxy.
That's what I'm asking for. it should "just work" ollama-style.
@ffaubert commented on GitHub (Mar 18, 2024):
+1 for this. It would be a game changer. @bmizerany is this something in progress?
@triet0612 commented on GitHub (Mar 19, 2024):
I notice that new requests will wait for old requests to complete despite that we interrupt and stop old request when they're running or waiting to be executed. Have anyone have this issue? Thank you and sorry for taking your time.
@ehartford commented on GitHub (Mar 19, 2024):
I notice similar sometimes I have to kill and restart ollama because of it but I think that deserves it's own issue.
@jammsen commented on GitHub (Mar 20, 2024):
@jmorganca you wrote its on the roadmap, could you explain for when? Do you have a date?
Something beeing on a roadmap doesnt in reality mean it gets solved/done/programmed.
Could you help us/the community out please? The request is from 6months++ ago.
@ehartford commented on GitHub (Mar 20, 2024):
this feature would allow ollama to be a production backend. Low traffic for sure but still, this would get a lot of startup running / hosting MVP with minimal effort.
@ParisNeo commented on GitHub (Mar 24, 2024):
In the meantime you can try my ollama proxy :)
It can be configured to fire up multiple ollama services, then you can also define users with keys to access the service and it balances the loads between the instances of ollama with multiple queues.
@jammsen commented on GitHub (Mar 24, 2024):
@ParisNeo
Do you have a link for me please? Also how does that works from an architectur point of view? I guessing sticky-session, so people usng this wont get mixed up and have a english cooking recipe with c++ snippets and german dictionaries in there right?
@m4r1k commented on GitHub (Mar 26, 2024):
While the
ollama_proxy_serveris a valuable starting point, Ollama's lack of native parallel request handling hinders its scalability. This is particularly evident in cloud environments where Ollama pods/instances could dynamically scale based on load.The current approach in
ollama_proxy_serverrequires hardcoded backend configuration, complicating consistent and dynamic scaling.@0x77dev commented on GitHub (Mar 27, 2024):
This issue seems to be stale for a while. Ollama is a promising project with the potential to expand beyond just "running on laptops." I believe there are many projects that wish to use it in production despite facing challenges (pre-pulling a model on start, custom model registry, etc), with parallel requests being a significant obstacle in my opinion.
Merged PR #3348 has newer version of llama.cpp, where parallel decoding is supported for sure.
I will try to delve into the Ollama codebase to address this issue. It would be helpful if a maintainer or someone familiar with the
/llmsection of the codebase could identify any blockers, maybe potential blocking of parallel processing of requests on the Golang side.Related:
@0x77dev commented on GitHub (Mar 28, 2024):
There has been some progress, but there are still issues to address. For instance, support for calling different models simultaneously (maybe calling different models simultaneously can be skipped, but it may cause DX confusion), and
loaded.mu.{Lock,Unlock}()is not implemented correctly in my changes below.This will require more testing and work on a better design for model loading
https://github.com/ollama/ollama/assets/46429701/00d84851-ca18-4e0a-a939-be367d49226d
git diff
@easp commented on GitHub (Mar 30, 2024):
Looks relevant: https://github.com/ollama/ollama/pull/3418
@darwinvelez58 commented on GitHub (Apr 9, 2024):
any update?
@0x77dev commented on GitHub (Apr 9, 2024):
@darwinvelez58 there is some work being done in https://github.com/ollama/ollama/pull/3418
anda9195b3efawas testing both options, at the moment seems very unstable
@ParisNeo commented on GitHub (Apr 9, 2024):
Hi, sorry I was very very buzy lately and had no time to look at the github messages.
The proxy server can be found here:
https://github.com/ParisNeo/ollama_proxy_server
It has also an optional security to allow you to have a users base with a personal key for each user.
The architecture is simple:
You specify multiple ollama instances viewable only on the server side each one has a different port number, then the proxy manages both the authentication of the users, the logging of their access, and distribution of the users over multiple queues.
Each queue is behind one instance of ollama and the proxy will always put you in the least filled queue.
So if you run 4 ollama instances, you can simultaniously serve 4 users and the others will be queued.
I agree that you can do more if ollama manages this all inside to mutualize the weights and stuff. I have built my proxy because I needed the security and the management and back then ollama had no plans to do this so got to move, but I'll be happy if they integrate multiusers directly inside.
@TheMasterFX commented on GitHub (Apr 10, 2024):
vLLM uses a PagedAttention. Is this a part which must be integrated in ollama or in the llama.cpp part?
@0x77dev commented on GitHub (Apr 10, 2024):
@TheMasterFX this is llama.cpp side of things
@TheMasterFX commented on GitHub (Apr 12, 2024):
Seems like there are improvements coming:
https://twitter.com/AlexReibman/status/1778695203957977148
@guitmonk-1290 commented on GitHub (Apr 21, 2024):
I was reading ray serve's docs and it seems they support Dynamic Request Batching, which creates a queue system.
https://docs.ray.io/en/latest/serve/advanced-guides/dyn-req-batch.html
I am new to this, so can we use this with Ollama for batch inference?
@jpmcb commented on GitHub (Apr 24, 2024):
I've had some success load balancing multiple Ollama instances on Kubernetes with a pool of GPU nodes:
Notice the 5 "gpupool" nodes, each with a T4 nvidia GPU. Ollama is then deployed as a daemonset on each of the GPU nodes:
These then can be load balanced behind a Kubernetes service with the ClusterIP being exposed internally "as a service" to the rest of the cluster:
Inside the cluster, I can hit the load balancing service resolved by CoreDNS:
This works pretty well for slower requests but has 2 problems:
It'd be absolutely incredible if multiple requests could be serviced by a single
ollama serve: It would take this example daemonset deployment with a pool of GPUs and make it much more scalable.Thanks for all the amazing work on ollama - I'm happy to test anything out and report back if there's a
ollama/ollama:concurrencytest image or if there's code reviews needed ❤️@skye0402 commented on GitHub (Apr 26, 2024):
I'm with vLLM now for that use case, it's very fast and manages concurrency plus has a big model pool and openAI compatible API.
I'm still with Ollama for trying out new models that's where it really shines and saves time.
@shing100 commented on GitHub (Apr 29, 2024):
I really wish this feature was added.
@iakashpaul commented on GitHub (Apr 29, 2024):
For anyone else stumbling onto this thread-
To use webUI with parallel chat generation on multiple clients use TGI or server.cpp/duplicate my HF Space onto a GPU instance directly with parallel flag set as 2 or more basis your VRAM, then run the ollama container with server.cpp acting as an OpenAI replacement as shown below.
cc: @ehartford
Latest release has experimental flags,
@mili-tan commented on GitHub (Apr 29, 2024):
https://github.com/ollama/ollama/releases/tag/v0.1.33-rc5
@hanzlaramey commented on GitHub (Apr 29, 2024):
game changer!!! Thank you @mili-tan
@ehartford commented on GitHub (Apr 30, 2024):
Thank you!
@ehartford commented on GitHub (Apr 30, 2024):
If I don't want to limit the number of loaded models, I just don't set that variable?
@BBjie commented on GitHub (Apr 30, 2024):
My question is for the concurrency feature, can I edit and add them into my compose-up file.
or is there other way to pass the value in for
OLLAMA_NUM_PARALLEL=4 OLLAMA_MAX_LOADED_MODELS=4 ollama serve@jammsen commented on GitHub (Apr 30, 2024):
I think thoose are 2 different things, the ENVs should be passed to ollama serve when you run the native app on your system. Not sure though how you can use this in a Docker Image of ollama @jmorganca could you clear this up for us please?
@BBjie commented on GitHub (Apr 30, 2024):
I tested it one hour ago, it was not working...
@laktosterror commented on GitHub (Apr 30, 2024):
Sorry you might need to get the pre-release image. Corrected previous answear.
@laktosterror commented on GitHub (Apr 30, 2024):
On mobile. I seem to have messed up my original post.
Try this:
@BBjie commented on GitHub (Apr 30, 2024):
Thhanks, but I believe it still not working as expected..
@dhiltgen commented on GitHub (May 2, 2024):
I'm going to close this as fixed now in 0.1.33. As commenters above have pointed out, it's opt-in for now, but we do intend to eventually do concurrency automatically without requiring the env vars.
To clarify some questions above: There are 2 layers of concurrency. There's
OLLAMA_NUM_PARALLELwhich controls how many requests can be answered against a single loaded model, and there'sOLLAMA_MAX_LOADED_MODELSwhich controls how many models can be loaded at the same time, up to the limits of VRAM. (note: we do not support loading two or more copies of the same model)https://github.com/ollama/ollama/releases
@taozhiyuai commented on GitHub (May 3, 2024):
@dhiltgen
I install ollama on Mac.
are these the default value for this two env?OLLAMA_NUM_PARALLEL=4 OLLAMA_MAX_LOADED_MODELS=4.
the following should work, right? :)
t@603e5f4a42f1 ~ % launchctl setenv OLLAMA_NUM_PARALLEL 5
t@603e5f4a42f1 ~ % launchctl setenv OLLAMA_MAX_LOADED_MODELS 5
to check the value of ENVs :)
launchctl getenv OLLAMA_NUM_PARALLEL
launchctl getenv OLLAMA_MAX_LOADED_MODELS
restart ollama to activate new value of ENVs. :) very nice!
@dhiltgen commented on GitHub (May 4, 2024):
The default values for these settings in 0.1.33 retain existing behavior of only 1 request at a time, and only 1 model at a time. In a future version we plan to adjust the default to enable this automatically, but until then, yes, if you want to use concurrency, you'll have to set these environment variables on the server.
@murillojndem commented on GitHub (May 21, 2024):
How do I set 2 models to run on different ports? I want to use crewAI but I need the ports of each one to use them as agents.
@ITHealer commented on GitHub (May 22, 2024):
How to set env to run parallel in linux?
I had set up env by:
sudo nano ~/.bashrc
export OLLAMA_NUM_PARALLEL=4
source ~/.bashrc
But it doesn't work
Please help me!!!
@Miroun commented on GitHub (May 22, 2024):
How does it work ? I mean. what prevents me to do OLLAMA_NUM_PARALLEL=999999 ?
How can I smartly access this number if I want to use my GPU(s) at full capacity ?
@dhiltgen commented on GitHub (May 23, 2024):
@murillojndem the ollama server only binds to a single port, so in your use-case, you'll want to run multiple servers on different ports using the OLLAMA_HOST environment variable to control which port they bind to. Each Ollama instance wont know about the others, so if you only have a single GPU, you may run into OOM problems if you don't sequence model loading to ensure they're not racing, or control the amount of layers they load by explicitly setting
num_gpu. If you do have multiple GPUs, you can use the GPU vendor specificGPU Selectionvariable to dedicate specific GPUs to specific instances. https://github.com/ollama/ollama/blob/main/docs/gpu.md@ITHealer this variable must be set on the server, not the client. See https://github.com/ollama/ollama/blob/main/docs/faq.md#setting-environment-variables-on-linux
@Miroun our goal is to make this setting automatic in a future release. Until then, it's your responsibility to test your setup to ensure it meets your needs balancing the model size, context size, and your GPU(s) VRAM capacity. The memory allocation on the GPU is impacted by the parallel setting multiplied by context size, so a large parallel with a large context will result in significant VRAM usage. You can experiment and use the new
ollama psto see where the optimal configuration is for your usecase.@murillojndem commented on GitHub (May 24, 2024):
But how do I set the environment variable? Do I set 2 variables each one for one port? It doesn't say in the docs. And they'll be running at the same time but I'll only use one at a time.
@dhiltgen commented on GitHub (May 25, 2024):
@Miroun I'd suggest the easiest path would be to use 2 different containers, but if you want to run on the host, you'll need to set up 2 different systemd services that have the settings you want.
@goreng2 commented on GitHub (Jun 10, 2024):
@dhiltgen
How did handle multiple requests?
I want to know the principle.
I've looked at the change log, but I'm not sure.
@EthraZa commented on GitHub (Jun 19, 2024):
It took me some minutes to figure it out, but to make things clear to next one searching for it:
1- You can run multiple docker containers in different ports and probably have clear control of the resources for each one.
or
2- You can run multiple LLM in one host:
$ sudo vi /etc/systemd/system/ollama.serviceAdd env vars to the Service:
Restart services:
Thank you Ollama guys.
@dhiltgen commented on GitHub (Jun 19, 2024):
@goreng2 while concurrency is in experimental preview, you can enable it with 2 settings
OLLAMA_NUM_PARALLEL sets the number of concurrent requests for each individual loaded model
OLLAMA_MAX_LOADED_MODELS sets the number of models that can be loaded at the same time, provided there is sufficient VRAM to fully load the models. (Partial loads always max at 1 loaded model)
So for example, if you set OLLAMA_NUM_PARALLEL=4 and OLLAMA_MAX_LOADED_MODELS=2 then you could load 2 models, and each model could handle 4 requests in parallel, so a total of 8 concurrent requests can be processed. (assuming you have enough VRAM to load the 2 models with 4x the context size). If more requests are being sent they'll queue in a FIFO order, up to OLLAMA_MAX_QUEUE requests (default 512)
When concurrency is out of experimental status in a future release, if you don't specify these settings, we'll pick reasonable defaults based on the capabilities of your system.
@edenbuaa commented on GitHub (Jun 26, 2024):
good idea. @edenbuaa
@vincent-herlemont commented on GitHub (Jul 15, 2024):
@dhiltgen Is there a way for an app which use the Ollama API to retrieve the values of OLLAMA_NUM_PARALLEL and OLLAMA_MAX_LOADED_MODELS in order to know how many parallel requests Ollama can handle?
@dhiltgen commented on GitHub (Jul 18, 2024):
@vincent-herlemont this isn't exposed via API today.
@Omega-Centauri-21 commented on GitHub (Jul 28, 2024):
For everyone trying this on Windows, first make sure your Ollama is updated to v3.0+
Then in your command prompt and use
And now restart the server
@dhiltgen commented on GitHub (Jul 29, 2024):
Concurrency is no longer experimental as of 0.2.0 and newer. I would recommend leaving these 2 variables unset so the default algorithm is used. If you want more (or less) parallelism per model than 4 (the default) then you can adjust OLLAMA_NUM_PARALLEL. The default max loaded models is 3x GPU count. In our performance testing, we found >3 often leads to degraded performance if all the models are being accessed concurrently, so make sure to run perf tests before settling on an alternative max models setting.
@Omega-Centauri-21 commented on GitHub (Jul 29, 2024):
So Could you please provide the detailed implementation of parallelism on Windows that can be utilized with langserve and API calls?
@reinhardt-bit commented on GitHub (Oct 11, 2024):
If you cant get it right then use litellm
@Omega-Centauri-21 commented on GitHub (Oct 12, 2024):
Actually I finally got it!
I was facing some issues with setting the variables through the terminal so I set those variables via the
Edit Environment Variablesthrough system properties in windows and created a new variable for my user.As of today, with the latest running release, the parallelism feature has been
deliveredand can be closed for good. Anybody still facing any issues can ping me for help.My heart goes out to the Community for the help and support.
Thankyou.
@Vimiso commented on GitHub (Oct 13, 2024):
Can I request more information on sensible
OLLAMA_NUM_PARALLELsettings? For example, let's say I have one loaded model in memory. How many parallel requests can I throw at it, or rather what system requirements must I know to arrive at an optimal number? I assume increasingOLLAMA_MAX_LOADED_MODELS(given enough VRAM) would increase the throughput. Also, is there a queue built in or will serve http requests timeout while ollama is busy?@dhiltgen commented on GitHub (Oct 14, 2024):
@Vimiso the current algorithm is described here It depends on how large the model is and how much VRAM (or system memory) you have - we try to load the model to support 4 concurrent requests, but if there isn't sufficient [V]RAM we fall back to supporting a single request at a time. We don't currently have an API that exposes the final settings, but you can check the server log to see how it was loaded.
@phazei commented on GitHub (Nov 12, 2024):
So when using a model in parallel, it uses batching, right? So the two requests HAVE to start at the same time? Is there a setting for how long it waits for the request pool to fill before starting the batch? Suppose I have 2 agents, and they both request at the same time, but it takes 1 second to process the request before the next request. I'd like to use batching, but it would be ideal if it would wait for at least 1 second so be sure I can get both requests started together instead of having to wait.
@jessegross commented on GitHub (Nov 12, 2024):
There's no waiting time for batches, processing will start as soon as something is available with everything that is ready at that time. Generally, it's not helpful to wait because the savings from batching are overwhelmed by the lost cycles while things are sitting idle.
If requests are coming in continuously then new requests will be queued while the previous batch is running. Once that batch finishes, all of the queued requests will form the next batch.
@phazei commented on GitHub (Nov 13, 2024):
If lots of requests are coming in, then I'd agree, it's not helpful to wait since things will double up often enough. But on a local machine with a not so fast card and only two agents, it seems it would always end up being sequential and not taking advantage of the batching because the next batch starts the moment the previous output is complete which leaves no time for the response to be processed before being turned around for another request. If there was a configurable window of 300ms - 1000ms, then it could save a great deal of time on a GPU poor system.
There's also a thing I recently heard of called continuous batching which can start any request right away though, I don't know if Ollama supports that, but if that's available, then a waiting pool wouldn't have any necessity.
I was thinking if it would be a possibility to create my own waiting pool, but for that to work, there'd need to be a way to poll the server to see if it's busy or not, and once it's no longer busy, wait x seconds before passing through requests. I think there's 2 issues with that though, I looked at the API and didn't see anything that would work for that, I can't even find an output log showing what requests are hitting the API. And second, you said the requests already had to be waiting, so if they're sent x seconds after it's available, there inevitably will be a race condition where one is chosen since there's no pool.
@easp commented on GitHub (Nov 13, 2024):
@phazei I'm pretty sure Ollama uses continuous batching. If I prompt the same model from two different terminal windows in parallel, I get a stream of results in each window simultaneously and the total # of tokens generated per second across the two is higher than it is when generating a single result set. This is what you'd expect from continuous batching.
@jessegross commented on GitHub (Nov 14, 2024):
Yes, I should have been clearer in what I wrote previously. This is more specifically what will happen:
@Ivanrs297 commented on GitHub (Jan 28, 2025):
Almost year later, any news on this request?
@hackthedev commented on GitHub (Jan 28, 2025):
i tried to set the env variables on windows and its being ignored :|
@jammsen commented on GitHub (Jan 29, 2025):
@Ivanrs297
You can use it a long time already, have you tried to read the comment 1 person above you before posting?
https://github.com/ollama/ollama/issues/358#issuecomment-2477448229
@alirezaghey commented on GitHub (Mar 4, 2025):
Hey folks, I went through this thread and also made some tests on my servers and I'm still not sure if the following scenario is possible:
Is there a way to load the same model on multiple GPUs and have each of them handle a few of the requests with some configurations and settings?
The next step that comes to mind is to deploy different ollama instances on different ports and handle load balancing in the application.
Any feedback is appreciate. Thank you!
@dhiltgen commented on GitHub (Mar 5, 2025):
@alirezaghey tracked in feature request #3902