mirror of
https://github.com/ollama/ollama.git
synced 2026-05-07 00:22:43 -05:00
[GH-ISSUE #9674] Error: POST predict: Post "http://127.0.0.1:62622/completion": read tcp 127.0.0.1:62627->127.0.0.1:62622: wsarecv: The remote host has closed a connection. #52823
Open
opened 2026-04-29 00:59:45 -05:00 by GiteaMirror
·
49 comments
No Branch/Tag Specified
main
hoyyeva/anthropic-local-image-path
dhiltgen/ci
dhiltgen/llama-runner
parth-remove-claude-desktop-launch
hoyyeva/anthropic-reference-images-path
parth-anthropic-reference-images-path
brucemacd/download-before-remove
hoyyeva/editor-config-repair
parth-mlx-decode-checkpoints
parth-launch-codex-app
hoyyeva/fix-codex-model-metadata-warning
hoyyeva/qwen
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
parth/update-claude-docs
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.30.0-rc3
v0.30.0-rc2
v0.30.0-rc1
v0.30.0-rc0
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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.1.33-rc6
v0.1.33-rc5
v0.1.33-rc4
v0.1.33-rc3
v0.1.33-rc2
v0.1.33-rc1
v0.1.32
v0.1.32-rc2
v0.1.32-rc1
v0.1.31
v0.1.30
v0.1.29
v0.1.28
v0.1.27
v0.1.26
v0.1.25
v0.1.24
v0.1.23
v0.1.22
v0.1.21
v0.1.20
v0.1.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
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#52823
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 @mswcap on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9674
What is the issue?
When I run Gemma3:12b the first one or two prompts run fine. But any prompt there after this error is thrown: Error: POST predict: Post "http://127.0.0.1:62622/completion": read tcp 127.0.0.1:62627->127.0.0.1:62622: wsarecv: The remote host has closed a connection.
Relevant log output
OS
Windows 11
GPU
Nvidia
CPU
AMD
Ollama version
0.6.0
@SunnyOd commented on GitHub (Mar 12, 2025):
Similar thing with the 27B model, getting this sometimes when asking the first questions, but always after the second:
running v0.6.0 with a 3090 and it maxes vram and uses an additional 27% system memory
@mswcap commented on GitHub (Mar 12, 2025):
This issue resembles this one as well: https://github.com/ollama/ollama/issues/9676. Makes me wonder whether it's really model related or that Ollama 0.6.0 is having issues?
@rick-github commented on GitHub (Mar 12, 2025):
Server logs may aid in debugging.
@mswcap commented on GitHub (Mar 12, 2025):
server.log
app.log
@mswcap commented on GitHub (Mar 12, 2025):
Hi @rick-github , you're right. See above. Thank you for tyour time and efforts
@rick-github commented on GitHub (Mar 12, 2025):
ollama allocated 6.2G of 6.3G to host the model, which worked for the first couple of requests, but then the runner ran out of memory and crashed. So either there were transient allocations that exceeded the remaining 0.1G, or something like a memory leak. You can reduce the memory footprint by following some of the recommendations here.
@mswcap commented on GitHub (Mar 12, 2025):
Hi @rick-github , thanks for the advice. But even with these settings, I do get the same error.
set OLLAMA_NUM_PARALLEL=1
set OLLAMA_GPU_OVERHEAD=536870912
set OLLAMA_FLASH_ATTENTION=1
And even these settings do not help either.
set OLLAMA_GPU_OVERHEAD=1073741824
set OLLAMA_NUM_CTX=2048
Strangest thing is that I can run bigger models (like phi4:latest) without any issues, besided being a bit slow in the response. But no OOMs.
@rick-github commented on GitHub (Mar 12, 2025):
Server log? And
OLLAMA_NUM_CTXis not an ollama config variable, tryOLLAMA_CONTEXT_LENGTH.@Corredor-Mediterraneo commented on GitHub (Mar 12, 2025):
OS
Windows 11 Pro
GPU
Nvidia GForce RTX 3060 12Gb
CPU
AMD Ryzen 7 5800X 8-Core Processor 3.80 GHz
Ollama version
0.6.0
Same error
ollama run gemma3:4b
app.log
config.json
server.log
@rick-github commented on GitHub (Mar 12, 2025):
@Corredor-Mediterraneo Your problem is different, it is this one.
@mswcap commented on GitHub (Mar 12, 2025):
config.json
Hi @rick-github , I am so sorry, see attachments. Tried these settings but no result :(. Thanks again for your time and patience.
set OLLAMA_NUM_PARALLEL=1
set OLLAMA_GPU_OVERHEAD=1073741824
set OLLAMA_CONTEXT_LENGTH=2048
server.log
app.log
@mswcap commented on GitHub (Mar 13, 2025):
When I run Gemma3:12b in LMStudio, it works without OOMs. No additional memory settings/config required. On the same machine. Perhaps there is an issue with Ollama 0.6.0?
@ecarmen16 commented on GitHub (Mar 15, 2025):
Yeah, this is a strange one that I've noticed seems to affect my M4 more than it does my Windows machines. I absolutely have the resources to run QWQ 32b but I get this on the q8_0 version everytime I try. I'll redownload the q4 (default) and report back but this is super annoying and doesn't give great output considering the failure is the result of Ollama inference from its own
runcommand.@rick-github commented on GitHub (Mar 15, 2025):
@mswcap These settings are not shown in the log:
You have to set them in the server environment for them to take effect.
@rick-github commented on GitHub (Mar 15, 2025):
I suspect LMStudio is much more conservative with its layer offloading than ollama. For example, when I load :27b on my test GPU (12G) it offloads 27 layers while ollama offloads 35. Tuning the VRAM allocation with the above variables or controlling the layer count directly with
num_gpushould help while the developers zero in on the memory calculations.@mswcap commented on GitHub (Mar 15, 2025):
Hi @rick-github, I have set the variables as requested and updated to Ollama 0.6.1. Now I get the error 'Error: POST predict: Post "http://127.0.0.1:52573/completion": read tcp 127.0.0.1:53516->127.0.0.1:52573: wsarecv: De externe host heeft een verbinding verbroken.' I will look for the cause and try to solve it.
See logs attached (I am learning it :).
app.log
app-1.log
config.json
server.log
server-1.log
@mswcap commented on GitHub (Mar 15, 2025):
No results. I even removed Ollama, all models and the environment variables. Reloaded the model (Gemma3:12b), but still the same error (Error: POST predict: Post "http://127.0.0.1:54429/completion": read tcp 127.0.0.1:54437->127.0.0.1:54429: wsarecv: De externe host heeft een verbinding verbroken.)
server.log
@mswcap commented on GitHub (Mar 15, 2025):
Hmm, when I use these environment variables, it works BUT nothing runs on the GPU (NVIDIA GeForce RTX 4060 Laptop GPU), all on the CPU. Guess I am doing something wrong here.
server.log
OLLAMA_GPU_OVERHEAD 4294967296
OLLAMA_NUM_PARALLEL 1
OLLAMA_CONTEXT_LENGTH 2048
@mswcap commented on GitHub (Mar 15, 2025):
Changed OLLAMA_GPU_OVERHEAD to 2147483648 (2 GB), and now the GPU is partially used. But again the same error. :(
server.log
@mswcap commented on GitHub (Mar 15, 2025):
Guess Gemma3-12b doesn't run good on my system, even though other models run just fine with Ollama.
@rick-github commented on GitHub (Mar 15, 2025):
Something very strange is going on.
Your 4060 has 8G VRAM, and ollama wants to use 4.8G of that to load the model. 2G is held aside by OLLAMA_GPU_OVERHEAD. So ollama offloads 8 layers to the GPU.
The model is loaded, and successfully answers both
chatandgeneraterequests. But thenit suddenly wants another 21G of memory! What? That makes no sense.
Do you recall what the prompt was that caused the crash? Did it involve vision?
@mswcap commented on GitHub (Mar 16, 2025):
Hi @rick-github, the prompt involved wasn't vision related. I asked what Google as a company does for business activities. Just chatting away, in order to see whether the crashes were gone.
@mswcap commented on GitHub (Mar 16, 2025):
For testing I use this kind of chat. I ask what the model is, then who Google is, then what the activities of Google are. After that I ask random questions. Most of the times the model goes bad after the 2nd or 3rd question
@mswcap commented on GitHub (Mar 17, 2025):
I just redownloaded Gemma3-12b and used Ollama 0.6.1. During a normal conversation (text only, no images involved) the model suddenly requires around 17 GB of memory, see attached server log. I don't know whether the model is buggy or Ollama is.
server.log
time=2025-03-17T08:15:58.642+01:00 level=INFO source=server.go:624 msg="llama runner started in 13.02 seconds"
[GIN] 2025/03/17 - 08:15:58 | 200 | 13.3177393s | 127.0.0.1 | POST "/api/generate"
[GIN] 2025/03/17 - 08:16:24 | 200 | 5.6807634s | 127.0.0.1 | POST "/api/chat"
[GIN] 2025/03/17 - 08:16:31 | 200 | 3.4231776s | 127.0.0.1 | POST "/api/chat"
[GIN] 2025/03/17 - 08:16:38 | 200 | 1.9263122s | 127.0.0.1 | POST "/api/chat"
[GIN] 2025/03/17 - 08:16:44 | 200 | 1.965793s | 127.0.0.1 | POST "/api/chat"
[GIN] 2025/03/17 - 08:17:02 | 200 | 6.3516731s | 127.0.0.1 | POST "/api/chat"
ggml_backend_cuda_buffer_type_alloc_buffer: allocating 17481.62 MiB on device 0: cudaMalloc failed: out of memory
ggml_gallocr_reserve_n: failed to allocate CUDA0 buffer of size 18330807808
Exception 0xc0000005 0x0 0x58 0x7ff789a4ebd4
PC=0x7ff789a4ebd4
signal arrived during external code execution
@aalencia commented on GitHub (Mar 18, 2025):
I am able to reproduce this error and am available to help debug. let me know.
@rick-github commented on GitHub (Mar 18, 2025):
@aalencia Does upgrading to 0.6.2 reduce the crashing?
@mswcap commented on GitHub (Mar 18, 2025):
@rick-github , can you please tell me how to install 0.6,2 on Windows? The download is version 0.6.1. I see 0.6.2. but no download. Guess I am doing something wrong, my bad.
@mswcap commented on GitHub (Mar 18, 2025):
Found it: https://github.com/ollama/ollama/releases
@mswcap commented on GitHub (Mar 18, 2025):
YES it does! Woohooo! Just running Ollama 0.6.2. without additional settings for the server and it runs great on prompts. Will test it with Open Web UI and images as well and report back.
@mswcap commented on GitHub (Mar 18, 2025):
Also describing images works like a charm! Thank you all!!!
@vitlib commented on GitHub (Mar 19, 2025):
I upgraded to 0.6.2, the model doesn't give the Error: POST predict anymore but it still uses only CPU.
@rick-github commented on GitHub (Mar 19, 2025):
Server logs may aid in debugging.
@vitlib commented on GitHub (Mar 19, 2025):
server.log thanks
@rick-github commented on GitHub (Mar 19, 2025):
No GPU backends found. What's the output of
@vitlib commented on GitHub (Mar 19, 2025):
with /s argument it returns error not found. But if i run other models it works just fine!
@rick-github commented on GitHub (Mar 19, 2025):
There should be at least something like the following
because that's wherer the ollama executable is.
@vitlib commented on GitHub (Mar 19, 2025):
Yes without the /s argument that's the output
@rick-github commented on GitHub (Mar 19, 2025):
Run it in a CMD window, not a PS window.
@rick-github commented on GitHub (Mar 19, 2025):
Or in a PS window:
@vitlib commented on GitHub (Mar 19, 2025):
dir-recurse.log
@rick-github commented on GitHub (Mar 20, 2025):
The directory listing looks normal. The error is
The filename, directory name, or volume label syntax is incorrect.but then it successfully loads theggml-cpu-haswell.dllbackend. It's not clear what's causing the error. You could try settingOLLAMA_DEBUG=1in the server environment and post the log from that - it will be quite large but it might contain a clue.@rtmcrc commented on GitHub (Apr 4, 2025):
I have the same issue only with Phi4 all other models work fine
server.log
app.log
phi4:latest 9.1 GB ERROR
vanilj/Phi-4:latest 9.1 GB ERROR
vanilj/phi-4-unsloth:latest 8.9 GB OK
hf.co/google/gemma-3-12b-it-qat-q4_0-gguf:latest 8.9 GB OK
deepseek-r1:14b 9.0 GB OK
mistral-nemo:12b-instruct-2407-q6_K 10 GB OK
deepseek-coder-v2:latest 8.9 GB OK
mightykatun/qwen2.5-math:7b 8.1 GB OK
hhao/qwen2.5-coder-tools:1.5b 1.6 GB OK
hhao/qwen2.5-coder-tools:7b 4.7 GB OK
hhao/qwen2.5-coder-tools:14b 9.0 GB OK
OS
Windows 10
GPU
Nvidia
CPU
Intel
Ollama version
0.6.4
@rick-github commented on GitHub (Apr 7, 2025):
ollama offloaded 3 of 41 layers to the GPU, taking 1.6GiB of the available 1.6GiB VRAM, ie all of it. A temporary allocation during inference caused an OOM error. See here for ways to mitigate this.
@vitlib commented on GitHub (Apr 7, 2025):
The issue fixed itself updating Ollama
@kuriel-dev commented on GitHub (Apr 28, 2025):
No cares what params i set to
ollama serveit brakes at once when long prompts are sent on requests, i tryied all the options here:https://github.com/ollama/ollama/issues/8597#issuecomment-2614533288
i tried with ollama-js
i tried with custom http subscription requests (API)
i tried with chat
i tired with generate
i though i was having a bad implementation but ollama just breaks.
the problem is the API service from ollama serve, it just cant handle long requests breaking the whole usability of the tool.
steps to reproduce:
next step: none, thats it, ollama brakes that and next answers
one weird thing is that ollama /generate handle images processing well, since images are, by far, larger than text, so i can asume the prompt handling is the problem, including long contexts when api returns context and i recycle it in the next request, if the context is large, requests are having errors.
hope this helps to identify the bug and people that just frustrates (like me) cuz the service is broken.
@kuriel-dev commented on GitHub (Apr 29, 2025):
i'm back with the error log:
My only custom settings are:
No api extra params, cuz it really doesn't care, the result its the same with error.
@rick-github commented on GitHub (Apr 29, 2025):
#10410
@kuriel-dev commented on GitHub (Apr 29, 2025):
Hello rick, this happening while i'm monitoring my RAM of 32GB while running the long request i'm having 70% in use.
(which means i'm having 9.6GB free DURING the operation).
still failing allocation memory in a 4GB model and 5 ~ 50Mb request input.
@kuriel-dev commented on GitHub (Apr 30, 2025):
Hi @rick-github, I'm happy to help contribute to resolving this issue and streamlining the process.
I've observed that when submitting an image alongside a lengthy prompt, the request completes successfully.
I believe the memory allocation algorithm currently used in the image processing pipeline could be re-used for this purpose.
Currently, I consistently submit very small images in my requests, which still results in a significant wait time, leading to a frustrating experience for users. I wanted to share this feedback as it highlights a potential area for improvement and efficiency.