mirror of
https://github.com/ollama/ollama.git
synced 2026-05-07 08:30:05 -05:00
Closed
opened 2026-04-12 15:39:07 -05:00 by GiteaMirror
·
20 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
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.3-rc0
v0.9.2
v0.9.1
v0.9.1-rc1
v0.9.1-rc0
v0.9.1-ci1
v0.9.1-ci0
v0.9.0
v0.9.0-rc0
v0.8.0
v0.8.0-rc0
v0.7.1-rc2
v0.7.1
v0.7.1-rc1
v0.7.1-rc0
v0.7.0
v0.7.0-rc1
v0.7.0-rc0
v0.6.9-rc0
v0.6.8
v0.6.8-rc0
v0.6.7
v0.6.7-rc2
v0.6.7-rc1
v0.6.7-rc0
v0.6.6
v0.6.6-rc2
v0.6.6-rc1
v0.6.6-rc0
v0.6.5-rc1
v0.6.5
v0.6.5-rc0
v0.6.4-rc0
v0.6.4
v0.6.3-rc1
v0.6.3
v0.6.3-rc0
v0.6.2
v0.6.2-rc0
v0.6.1
v0.6.1-rc0
v0.6.0-rc0
v0.6.0
v0.5.14-rc0
v0.5.13
v0.5.13-rc6
v0.5.13-rc5
v0.5.13-rc4
v0.5.13-rc3
v0.5.13-rc2
v0.5.13-rc1
v0.5.13-rc0
v0.5.12
v0.5.12-rc1
v0.5.12-rc0
v0.5.11
v0.5.10
v0.5.9
v0.5.9-rc0
v0.5.8-rc13
v0.5.8
v0.5.8-rc12
v0.5.8-rc11
v0.5.8-rc10
v0.5.8-rc9
v0.5.8-rc8
v0.5.8-rc7
v0.5.8-rc6
v0.5.8-rc5
v0.5.8-rc4
v0.5.8-rc3
v0.5.8-rc2
v0.5.8-rc1
v0.5.8-rc0
v0.5.7
v0.5.6
v0.5.5
v0.5.5-rc0
v0.5.4
v0.5.3
v0.5.3-rc0
v0.5.2
v0.5.2-rc3
v0.5.2-rc2
v0.5.2-rc1
v0.5.2-rc0
v0.5.1
v0.5.0
v0.5.0-rc1
v0.4.8-rc0
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.3-rc0
v0.4.2
v0.4.2-rc1
v0.4.2-rc0
v0.4.1
v0.4.1-rc0
v0.4.0
v0.4.0-rc8
v0.4.0-rc7
v0.4.0-rc6
v0.4.0-rc5
v0.4.0-rc4
v0.4.0-rc3
v0.4.0-rc2
v0.4.0-rc1
v0.4.0-rc0
v0.4.0-ci3
v0.3.14
v0.3.14-rc0
v0.3.13
v0.3.12
v0.3.12-rc5
v0.3.12-rc4
v0.3.12-rc3
v0.3.12-rc2
v0.3.12-rc1
v0.3.11
v0.3.11-rc4
v0.3.11-rc3
v0.3.11-rc2
v0.3.11-rc1
v0.3.10
v0.3.10-rc1
v0.3.9
v0.3.8
v0.3.7
v0.3.7-rc6
v0.3.7-rc5
v0.3.7-rc4
v0.3.7-rc3
v0.3.7-rc2
v0.3.7-rc1
v0.3.6
v0.3.5
v0.3.4
v0.3.3
v0.3.2
v0.3.1
v0.3.0
v0.2.8
v0.2.8-rc2
v0.2.8-rc1
v0.2.7
v0.2.6
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.2-rc2
v0.2.2-rc1
v0.2.1
v0.2.0
v0.1.49-rc14
v0.1.49-rc13
v0.1.49-rc12
v0.1.49-rc11
v0.1.49-rc10
v0.1.49-rc9
v0.1.49-rc8
v0.1.49-rc7
v0.1.49-rc6
v0.1.49-rc4
v0.1.49-rc5
v0.1.49-rc3
v0.1.49-rc2
v0.1.49-rc1
v0.1.48
v0.1.47
v0.1.46
v0.1.45-rc5
v0.1.45
v0.1.45-rc4
v0.1.45-rc3
v0.1.45-rc2
v0.1.45-rc1
v0.1.44
v0.1.43
v0.1.42
v0.1.41
v0.1.40
v0.1.40-rc1
v0.1.39
v0.1.39-rc2
v0.1.39-rc1
v0.1.38
v0.1.37
v0.1.36
v0.1.35
v0.1.35-rc1
v0.1.34
v0.1.34-rc1
v0.1.33
v0.1.33-rc7
v0.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#4709
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 @regularRandom on GitHub (Oct 28, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/7403
Originally assigned to: @dhiltgen on GitHub.
What is the issue?
It seems Ollama has a memory leak or doesn't clean the memory after the prompt (execution). I have following stuff in the logs:
Each prompt adds 20-30GB of RAM and after 5-6 executions Ollama fails with "Cannot map memory with base addr ".
I have 22 core Xeon CPU, 128GB RAM and 2080Ti GPU with 11GB VRAM, so pretty enough for the regular use. OS is CentOS 9 Stream with 6.11.5 kernel.
Behaviour is the same for the Ollama built from source and downloaded from the GitHub.
OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
0.3.14-16
@rick-github commented on GitHub (Oct 28, 2024):
What sort of prompt are you sending? What client are you using?
@dhiltgen commented on GitHub (Oct 28, 2024):
@regularRandom could you also try out the new 0.4.0 RC release to see if that changes behavior at all? I'm not sure yet which layer this memory issue is taking place at, but prompt processing and caching has been reworked in the 0.4.0 release.
https://github.com/ollama/ollama/releases
@regularRandom commented on GitHub (Oct 29, 2024):
Well, homework questions like "How did the fear of communism come to affect American foreign policy in regard to "containment" and what were there critiques of containment?" - all well prepared. Client is open-webui, docker.
@regularRandom commented on GitHub (Oct 29, 2024):
This process remains in memory after the each execution:
and new entry in dmesg:
@rick-github commented on GitHub (Oct 29, 2024):
What model are you using, and do you set any parameters like
num_ctxornum_gpu?@rick-github commented on GitHub (Oct 29, 2024):
Server logs may also help in debugging.
@ghost commented on GitHub (Oct 29, 2024):
I'm also having the same issue since I installed ollama about a month ago, but it seems it only happens for partially offloaded models and not when the models are fully loaded in VRAM.
My system:
Arch Linux
Linux 6.11.4-arch2-1
CPU: AMD Ryzen 7 5700X 8-Core Processor 16 virtual cores.
64Gb DDR4 RAM
2 x NVIDIA RTX 3060 12Gb VRAM -> total 24GB VRAM.
After booting and before loading any model my RAM usage is about 12G (there's a web server, PHP process managers, a MariaDB Server and some ZFS pools using some Gb of RAM as ARC cache).
For example, as I said before, if I use models that fit entirely in my GPUS I can make many requests as I want without any aparent memory loss. VRAM is allocated and freed normally if I run nvidia-smi during requests and when the model unloads.
But for example, if I load Meta-Llama-3.1-70B-Instruct.Q4_K_M (from [https://huggingface.co/MaziyarPanahi/Meta-Llama-3.1-70B-Instruct-GGUF]https://huggingface.co/MaziyarPanahi/Meta-Llama-3.1-70B-Instruct-GGUF), imported to ollama using the following modelfile text:
FROM ./MaziyarPanahi/Meta-Llama-3.1-70B-Instruct-GGUF/Meta-Llama-3.1-70B-Instruct.Q4_K_M.gguf
I ask for example "Tell me a random fun fact about the Roman Empire", and then i run ollama stop
oct 29 13:35:48 morty ollama[43973]: time=2024-10-29T13:35:48.955+01:00 level=INFO source=server.go:105 msg="systemmemory" total="62.7 GiB" free="32.5 GiB" free_swap="57.6 GiB"
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:48.956+01:00 level=INFO source=memory.go:326 msg="offload to cuda" layers.requested=-1 layers.model=81 layers.offload=36 layers.split=19,17 memory.available="[11.5 GiB 10.7 GiB]" memory.gpu_overhead="0 B" memory.required.full="45.0 GiB" memory.required.partial="21.6 GiB" memory.required.kv="640.0 MiB" memory.required.allocations="[11.2 GiB 10.3 GiB]" memory.weights.total="38.9 GiB" memory.weights.repeating="38.1 GiB" memory.weights.nonrepeating="822.0 MiB" memory.graph.full="1.1 GiB" memory.graph.partial="1.1 GiB"
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:48.956+01:00 level=INFO source=server.go:388 msg="starting llama server" cmd="/tmp/ollama346011471/runners/cuda_v12/ollama_llama_server --model /usr/share/ollama/.ollama/models/blobs/sha256-3f16ab17da4521fe3ed7c5d7beed960d3fe7b5b64421ee9650aa53d6b649ccab --ctx-size 2048 --batch-size 512 --embedding --n-gpu-layers 36 --threads 8 --no-mmap --parallel 1 --tensor-split 19,17 --port 45727"
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:48.956+01:00 level=INFO source=sched.go:449 msg="loaded runners" count=1
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:48.956+01:00 level=INFO source=server.go:587 msg="waiting for llama runner to start responding"
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:48.956+01:00 level=INFO source=server.go:621 msg="waiting for server to become available" status="llm server error"
oct 29 13:35:49 morty ollama[87850]: INFO [main] starting c++ runner | tid="131942650417152" timestamp=1730205348
oct 29 13:35:49 morty ollama[87850]: INFO [main] build info | build=10 commit="3a8c75e" tid="131942650417152" timestamp=1730205348
oct 29 13:35:49 morty ollama[87850]: INFO [main] system info | n_threads=8 n_threads_batch=8 system_info="AVX = 1 |AVX_VNNI = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 0 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 0 | FP16_VA = 0 | RISCV_VECT = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 |VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | " tid="131942650417152" timestamp=1730205348 total_threads=16
oct 29 13:35:49 morty ollama[87850]: INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="15" port="45727" tid="131942650417152" timestamp=1730205348
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: loaded meta data with 33 key-value pairs and 723 tensors from /usr/share/ollama/.ollama/models/blobs/sha256-3f16ab17da4521fe3ed7c5d7beed960d3fe7b5b64421ee9650aa53d6b649ccab (version GGUF V3 (latest))
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 0: general.architecture str = llama
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 1: general.type str = model
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 2: general.name str = Models Meta Llama Meta Llama 3.1 70B ...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 3: general.finetune str = Instruct
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 4: general.basename str = models-meta-llama-Meta-Llama-3.1
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 5: general.size_label str = 70B
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 6: general.license str = llama3.1
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 7: general.tags arr[str,6] = ["facebook", "meta", "pytorch", "llam...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 8: general.languages arr[str,8] = ["en", "de", "fr", "it", "pt", "hi", ...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 9: llama.block_count u32 = 80
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 10: llama.context_length u32 = 131072
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 11: llama.embedding_length u32 = 8192
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 12: llama.feed_forward_length u32 = 28672
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 13: llama.attention.head_count u32 = 64
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 14: llama.attention.head_count_kv u32 = 8
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 15: llama.rope.freq_base f32 = 500000.000000
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 16: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 17: general.file_type u32 = 15
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 18: llama.vocab_size u32 = 128256
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 19: llama.rope.dimension_count u32 = 128
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 20: tokenizer.ggml.model str = gpt2
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 21: tokenizer.ggml.pre str = smaug-bpe
oct 29 13:35:49 morty ollama[43973]: time=2024-10-29T13:35:49.207+01:00 level=INFO source=server.go:621 msg="waiting for server to become available" status="llm server loading model"
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 22: tokenizer.ggml.tokens arr[str,128256] = ["!", """, "#", "$", "%", "&", "'", ...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 23: tokenizer.ggml.token_type arr[i32,128256] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 24: tokenizer.ggml.merges arr[str,280147] = ["Ġ Ġ", "Ġ ĠĠĠ", "ĠĠ ĠĠ", "...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 25: tokenizer.ggml.bos_token_id u32 = 128000
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 26: tokenizer.ggml.eos_token_id u32 = 128009
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 27: tokenizer.chat_template str = {% set loop_messages = messages %}{% ...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 28: general.quantization_version u32 = 2
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 29: quantize.imatrix.file str = ./Meta-Llama-3.1-70B-Instruct-GGUF_im...
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 30: quantize.imatrix.dataset str = group_40.txt
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 31: quantize.imatrix.entries_count i32 = 560
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - kv 32: quantize.imatrix.chunks_count i32 = 68
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - type f32: 161 tensors
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - type q4_K: 441 tensors
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - type q5_K: 40 tensors
oct 29 13:35:49 morty ollama[43973]: llama_model_loader: - type q6_K: 81 tensors
oct 29 13:35:49 morty ollama[43973]: llm_load_vocab: special tokens cache size = 256
oct 29 13:35:49 morty ollama[43973]: llm_load_vocab: token to piece cache size = 0.7999 MB
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: format = GGUF V3 (latest)
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: arch = llama
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: vocab type = BPE
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_vocab = 128256
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_merges = 280147
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: vocab_only = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_ctx_train = 131072
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_embd = 8192
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_layer = 80
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_head = 64
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_head_kv = 8
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_rot = 128
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_swa = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_embd_head_k = 128
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_embd_head_v = 128
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_gqa = 8
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_embd_k_gqa = 1024
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_embd_v_gqa = 1024
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: f_norm_eps = 0.0e+00
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: f_norm_rms_eps = 1.0e-05
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: f_clamp_kqv = 0.0e+00
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: f_max_alibi_bias = 0.0e+00
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: f_logit_scale = 0.0e+00
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_ff = 28672
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_expert = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_expert_used = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: causal attn = 1
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: pooling type = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: rope type = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: rope scaling = linear
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: freq_base_train = 500000.0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: freq_scale_train = 1
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: n_ctx_orig_yarn = 131072
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: rope_finetuned = unknown
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: ssm_d_conv = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: ssm_d_inner = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: ssm_d_state = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: ssm_dt_rank = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: ssm_dt_b_c_rms = 0
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: model type = 70B
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: model ftype = Q4_K - Medium
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: model params = 70.55 B
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: model size = 39.59 GiB (4.82 BPW)
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: general.name = Models Meta Llama Meta Llama 3.1 70B Instruct
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: BOS token = 128000 '<|begin_of_text|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: EOS token = 128009 '<|eot_id|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: LF token = 128 'Ä'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: EOT token = 128009 '<|eot_id|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: EOM token = 128008 '<|eom_id|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: EOG token = 128008 '<|eom_id|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: EOG token = 128009 '<|eot_id|>'
oct 29 13:35:49 morty ollama[43973]: llm_load_print_meta: max token length = 256
oct 29 13:35:49 morty ollama[43973]: ggml_cuda_init: GGML_CUDA_FORCE_MMQ: no
oct 29 13:35:49 morty ollama[43973]: ggml_cuda_init: GGML_CUDA_FORCE_CUBLAS: no
oct 29 13:35:49 morty ollama[43973]: ggml_cuda_init: found 2 CUDA devices:
oct 29 13:35:49 morty ollama[43973]: Device 0: NVIDIA GeForce RTX 3060, compute capability 8.6, VMM: yes
oct 29 13:35:49 morty ollama[43973]: Device 1: NVIDIA GeForce RTX 3060, compute capability 8.6, VMM: yes
oct 29 13:35:49 morty ollama[43973]: llm_load_tensors: ggml ctx size = 1.01 MiB
oct 29 13:35:50 morty ollama[43973]: time=2024-10-29T13:35:50.661+01:00 level=INFO source=server.go:621 msg="waiting for server to become available" status="llm server not responding"
oct 29 13:35:57 morty ollama[43973]: time=2024-10-29T13:35:57.224+01:00 level=INFO source=server.go:621 msg="waiting for server to become available" status="llm server loading model"
oct 29 13:35:57 morty ollama[43973]: ggml_cuda_host_malloc: failed to allocate 22863.42 MiB of pinned memory: invalid argument
oct 29 13:35:57 morty ollama[43973]: llm_load_tensors: offloading 36 repeating layers to GPU
oct 29 13:35:57 morty ollama[43973]: llm_load_tensors: offloaded 36/81 layers to GPU
oct 29 13:35:57 morty ollama[43973]: llm_load_tensors: CPU buffer size = 22863.42 MiB
oct 29 13:35:57 morty ollama[43973]: llm_load_tensors: CUDA0 buffer size = 9094.06 MiB
oct 29 13:35:57 morty ollama[43973]: llm_load_tensors: CUDA1 buffer size = 8585.62 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: n_ctx = 2048
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: n_batch = 512
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: n_ubatch = 512
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: flash_attn = 0
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: freq_base = 500000.0
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: freq_scale = 1
oct 29 13:40:43 morty ollama[43973]: llama_kv_cache_init: CUDA_Host KV buffer size = 352.00 MiB
oct 29 13:40:43 morty ollama[43973]: llama_kv_cache_init: CUDA0 KV buffer size = 152.00 MiB
oct 29 13:40:43 morty ollama[43973]: llama_kv_cache_init: CUDA1 KV buffer size = 136.00 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: KV self size = 640.00 MiB, K (f16): 320.00 MiB, V (f16): 320.00 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: CUDA_Host output buffer size = 0.52 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: CUDA0 compute buffer size = 1088.45 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: CUDA1 compute buffer size = 324.00 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: CUDA_Host compute buffer size = 20.01 MiB
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: graph nodes = 2566
oct 29 13:40:43 morty ollama[43973]: llama_new_context_with_model: graph splits = 489
INFO [main] model loaded | tid="131942650417152" timestamp=1730205682
oct 29 13:41:22 morty ollama[43973]: time=2024-10-29T13:41:22.396+01:00 level=INFO source=server.go:626 msg="llama runner started in 333.38 seconds"
Then, when the output is being generated, my RAM usage raises to 61Gb of RAM amd 10Gb of swap, and when it finalizes, the used RAM only goes down to 40Gb instead of coming back to less than 20Gb. But the most intriguing is that I can't see what process is using that RAM. For example 'htop' sorted by RAM usage:
Output of ps aux | awk '{print $6/1024 " MB\t\t" $11}' | sort -n
...
5.82031 MB systemd-userwork:
5.86328 MB systemd-userwork:
5.99609 MB /usr/lib/flatpak-session-helper
6.10547 MB xdg-dbus-proxy
6.23047 MB /opt/google/chrome/chrome
63.9414 MB /opt/google/chrome/chrome
64.4922 MB /opt/google/chrome/chrome
6.82422 MB /usr/bin/mariadbd
69.4648 MB /usr/bin/konsole
7.06641 MB /usr/lib/evolution-data-server/evolution-alarm-notify
7.08203 MB /usr/lib/udisks2/udisksd
7.19531 MB /opt/google/chrome/chrome
7.20703 MB /opt/google/chrome/chrome
7.27344 MB journalctl
7.52734 MB awk
7.55859 MB /opt/spotify/spotify
7.58203 MB sort
7.69141 MB /opt/google/chrome/chrome
7.72266 MB /usr/lib/xdg-desktop-portal
7.85156 MB /opt/google/chrome/chrome
7.94922 MB /usr/lib/gvfs-udisks2-volume-monitor
8.05078 MB ps
8.05859 MB /usr/bin/fcitx5
0.820312 MB /usr/bin/vmnet-netifup
8.43359 MB /usr/bin/sddm
8.44141 MB /opt/spotify/spotify
8.46484 MB /opt/google/chrome/chrome
8.67578 MB /usr/bin/redis-server
8.73047 MB /opt/spotify/spotify
8.82422 MB /usr/lib/systemd/systemd
0.886719 MB /usr/bin/vmnet-netifup
88.9023 MB /opt/google/chrome/chrome
8.99609 MB /usr/bin/NetworkManager
9.09766 MB /opt/google/chrome/chrome
9.12109 MB /usr/bin/bash
0.953125 MB server
9.55859 MB /opt/google/chrome/chrome
9.56641 MB htop
9.62109 MB /opt/google/chrome/chrome
9.89453 MB /opt/google/chrome/chrome
9.96484 MB /opt/google/chrome/chrome
9.99609 MB /opt/google/chrome/chrome
It's very weird, and it happens each time I load a partially offloaded model. Llama-3, Qwen-2.5,... after 2 or 3 consecutive loads and unloads the system becomes unresponsive and I get OOM kills everywhere and I have to reboot as I'm unable to find any way to locate where the memory is used and free it. Restarting the service doesn't work also, and, as far as I know. this is happening at least since a month. I just tried with the latest version of Ollama.
I will repeat the process from a console terminal without having active the desktop environment to see if I see other errors in the journal or kernel logs during the process when I come back from lunch.
@rick-github commented on GitHub (Oct 29, 2024):
What version of ollama were you using during the logs you added? What's the output of
free -hafterollama stop?@ghost commented on GitHub (Oct 29, 2024):
Ok I repeat the test without graphical interface and I'll provide the requested info:
$ ollama --version
ollama version is 0.3.14
(before running ollama)
$ free -h
total used free shared buffer/cache available
Mem: 62Gi 28Gi 9.4Gi 2.9Gi 27Gi 33Gi
Inter: 63Gi 0B 63Gi
(while running ollama)
$ free -h
total used free shared buffer/cache available
Mem: 62Gi 58Gi 1,9Gi 166Mi 3,0Gi 4,0Gi
Inter: 63Gi 7,2Gi 56Gi
(after stopping ollama)
$ free -h
total used free shared buffer/cache available
Mem: 62Gi 36Gi 24Gi 124Mi 2,9Gi 26Gi
Inter: 63Gi 5,5Gi 58Gi
...
If I repeat the process now is much slower due to more swap usage and the outputs are:
(while running ollama)
$ free -h
total used free shared buffer/cache available
Mem: 62Gi 62Gi 892Mi 404Mi 860Mi 671Mi
Inter: 63Gi 29Gi 34Gi
(after stopping ollama)
$ free -h
total used free shared buffer/cache available
Mem: 62Gi 57Gi 5,7Gi 2,9Gi 3,5Gi 5,7Gi
Inter: 63Gi 0B 63Gi
... and now my system is completely unusable and I have to reboot....
Tell me if you need more info or tests.
Thanks!
@captaincurrie commented on GitHub (Oct 29, 2024):
I am having the same issue
@rick-github commented on GitHub (Oct 29, 2024):
@captaincurrie Can you provide some info? Server logs, which client, output of
free -hbefore & after, other observations?@regularRandom commented on GitHub (Oct 31, 2024):
I use dolphin-mixtral 8x7b. Running ollama as a service without any extra parameters:
/opt/ollama/ollama serve
@gestur1976 I have the same behaviour and absolutely same observations - need to reboot machine cos it become unusable, Linux starts killing processes by random.
@rick-github commented on GitHub (Oct 31, 2024):
@regularRandom Can you provide server logs?
I ran the following in a loop for 6 hours:
with no system impact on two machines, RTX4070 (12G) + 96G RAM and RTX3080 (16G) + 64G RAM. Apart from the initial allocation of memory for the model, the server didn't grow any larger over the hours. However, this doesn't directly parallel the way @regularRandom is using the system, as I don't have Open WebUI configured on these machines. I will attempt to get that set up soon and re-run the attempt to replicate.
An interesting point in @gestur1976's post is the last
free:where there is apparently no swap in use. Is this accurate?
@regularRandom commented on GitHub (Nov 4, 2024):
@dhiltgen okay, I managed to build 0.4.0-rc6-8-g18237be. Same issue.
@ghost commented on GitHub (Nov 4, 2024):
Hi @rick-github.
Yes, it's accurate but it's because I did a swapoff -a; swapon -a to have all the usage values in RAM for easier read but before that there was swapped data.
@blob537 commented on GitHub (Nov 5, 2024):
I had an identical problem on my system. I'm running Fedora 40. This started happening after the update to the 6.11 kernel. Backing up to the 6.10 kernel made the issue go away again. I am wondering what happens if you try to choose one of the earlier kernels as well now. Currently I've just left it running 6.10.12-200.fc40 and everything is as it was before. This may not be an Ollama issue at all.
@dhiltgen commented on GitHub (Nov 6, 2024):
It looks like others are seeing this on other apps - https://forums.developer.nvidia.com/t/memory-leak-on-kernel-6-11-0-when-using-cudamallochost/308691
@dhiltgen commented on GitHub (Nov 7, 2024):
It looks like this is a linux kernel bug, which has been fixed via this patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa6f8b2593b5
I'll leave this issue open for now until a new kernel release has the fix and folks report the problem is resolved.
@ghost commented on GitHub (Nov 8, 2024):
@dhiltgen I applied the patch and built a custom kernel today to test it and I can confirm this issue has been resolved:
$ uname -a
Linux morty 6.11.6-arch1-1-morty #1 SMP PREEMPT_DYNAMIC Fri, 08 Nov 2024 18:40:24 +0000 x86_64 GNU/Linu
free -h
total usado libre compartido búf/caché disponible
Mem: 62Gi 9,6Gi 619Mi 362Mi 53Gi 53Gi
Inter: 63Gi 256Ki 63Gi
$ ollama run CalmeRys-78B-Orpo-v0.1.IQ4_XS:latest
$ ollama run Llama-3.1-Nemotron-70B-Instruct-HF-Q3_K_M:latest
night too!
Your quote reminds me of the classic song from The Sound of Music: "So long, farewell,
auf Wiedersehen, goodbye..." where Maria says:
"So long, farewell,
Auf Wiedersehen,
Goodnight.
Sleep tight,
Goodnight,
Sleep tight,
Goodnight."
You've similarly covered all time zones with your greeting. Well done!
Now, how can I assist you on this lovely day (afternoon, evening, or night)? Do you
have a question, topic, or just want to chat?
$ free -h
total usado libre compartido búf/caché disponible
Mem: 62Gi 9Gi 1,5Gi 252Mi 52Gi 52Gi
Inter: 63Gi 3,7Gi 60Gi
@dhiltgen commented on GitHub (Nov 18, 2024):
Looks like 6.12 is out now, so I'm going to close this.