mirror of
https://github.com/ollama/ollama.git
synced 2026-04-27 16:36:54 -05:00
Error "timed out waiting for llama runner to start: " on larger models. #2570
Closed
opened 2025-11-12 11:04:36 -06:00 by GiteaMirror
·
45 comments
No Branch/Tag Specified
main
hoyyeva/fix-launch-app-process-reap
jessegross/batching
pdevine/manifest-list
hoyyeva/launch-page-update
codex/fix-codex-model-metadata-warning
hoyyeva/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.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-rc2
v0.11.0-rc1
v0.11.0-rc0
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
client2
cloud
compatibility
context-length
create
docker
documentation
embeddings
engine
feature request
feedback wanted
good first issue
gpt-oss
gpu
harmony
help wanted
install
integration
intel
js
linux
macos
memory
model
needs more info
networking
nvidia
ollama.com
performance
pull-request
python
question
registry
rendering
thinking
tools
top
windows
wsl
Mirrored from GitHub Pull Request
No Label
bug
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-ollama#2570
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 @CalvesGEH on GitHub (May 3, 2024).
Originally assigned to: @dhiltgen on GitHub.
What is the issue?
I just setup Ollama on a fresh machine and am running into an issue starting Ollama on larger models.
I am running Ubuntu 22.04.4 LTS with 2 Nvidia Tesla P40 GPUs with Driver Version: 535.161.08 and CUDA Version: 12.2.
Small 8b models work great and have no issues but when I try something like a 34b or a 70b model, I get the error "timed out waiting for llama runner to start: ".
Here are the logs from the "ollama serve" process:
OS
Linux
GPU
Nvidia
CPU
Intel
Ollama version
0.1.33
@CalvesGEH commented on GitHub (May 3, 2024):
Running with OLLAMA_DEBUG=1, I get this log directly after the metadata:
@asesidaa commented on GitHub (May 6, 2024):
Can confirm this is a regression that is introduced in v0.1.33, rollback to v0.1.32 can load large models
@asesidaa commented on GitHub (May 7, 2024):
This may also be caused by cuda version
If I use a locally compiled version (with cuda 12) it can load large models just fine
@anaser-fts commented on GitHub (May 9, 2024):
I get similar error when trying to run a custom model using
ollama run.@sridhar25-codvo commented on GitHub (May 10, 2024):
I get a similar error too, when I am trying to run the custom mixtral:8x7b model,

@asesidaa commented on GitHub (May 10, 2024):
Have you tried to compile ollama locally with native cuda libraries
This does fix this issue on my end
@sridhar25-codvo commented on GitHub (May 10, 2024):
Actually, I run only on CPUs, not on any GPU
@EthanRBoyle commented on GitHub (May 14, 2024):
$ uname -rsv
Linux 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03)
$ ollama -v
ollama version is 0.1.34
$ ollama list
llama3:8b-instruct-q8_0
Same problem here. I only have one model installed so far, so I have not tried it with other models yet.
@oerlock commented on GitHub (May 15, 2024):
I get similar error when I trying to run:
ollama run llama3:70b:@EthanRBoyle commented on GitHub (May 15, 2024):
Here is something interesting, at least in my case. I did the following:
$ sudo systemctl stop ollamaFollowed by:
$ sudo systemctl start ollamaNow Ollama works for me:
If anyone can explain that, I, a complete average IQ hobbyist, would really appreciate it. For now, I'm going to disable it from starting automagically at system startup to see how that works for me.
Before I finish here, today I installed the q4 default version of the model and that started no problem, just the q8 gives me a hassle. Thank you.
@UmutAlihan commented on GitHub (May 19, 2024):
I am having the same error here.
ollama version 0.1.38
@oerlock commented on GitHub (May 20, 2024):
There are places in the code to limit the timeout for loading models, you can check this: https://github.com/ollama/ollama/pull/4419
@LukeMauldin commented on GitHub (May 20, 2024):
I am having this same issue. On Ubuntu 24.04 LTS with Nvidia GTX 4050 and drivers 550.78.
Ollama version 0.1.38. Earlier versions of ollama worked as expected.
@rpenha commented on GitHub (May 22, 2024):
I'm facing this issue even with small models, like tinyllama. Running
ollama run tinyllamatimes out after hard coded 10 minutes timeout. The GPU (RX5700 XT - 8GB with ROCm 6.1 /HSA_OVERRIDE_GFX_VERSION="10.3.0") runs near 100% of usage until timeout. The model loads instantly with CPU (Intel XEON E5-2696 v3 18/36 64GB).I tried different versions of ollama, building them locally from git, from v0.1.20 to main branch (commit
955c317cabe1344c9f0ed7a71e33f6b4f0919e5e, at the moment), but I got the same behavior with docker version (v0.1.38) or Arch Linux extra packages. My current kernel version is6.9.1-zen1-1-zen.I'll be glad to help with more information if necessary to address this issue.
@dhiltgen commented on GitHub (Jun 2, 2024):
This should be resolved in the latest release. Please upgrade and if you're still seeing timeouts loading large models on slower systems, share your server log and I'll re-open.
@UmutAlihan commented on GitHub (Jun 2, 2024):
Unfortunately after upgrade to 0.1.41, the same issue continues :'/
Server Logs:
llm-api-ollama | 2024/06/02 18:43:45 routes.go:1007: INFO server config env="map[OLLAMA_DEBUG:false OLLAMA_FLASH_ATTENTION:false OLLAMA_HOST: OLLAMA_KEEP_ALIVE:60s OLLAMA_LLM_LIBRARY: OLLAMA_MAX_LOADED_MODELS:1 OLLAMA_MAX_QUEUE:25 OLLAMA_MAX_VRAM:0 OLLAMA_MODELS: OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:*] OLLAMA_RUNNERS_DIR: OLLAMA_TMPDIR:]" llm-api-ollama | time=2024-06-02T18:43:45.633Z level=INFO source=images.go:729 msg="total blobs: 47" llm-api-ollama | time=2024-06-02T18:43:45.634Z level=INFO source=images.go:736 msg="total unused blobs removed: 0" llm-api-ollama | time=2024-06-02T18:43:45.634Z level=INFO source=routes.go:1053 msg="Listening on [::]:33740 (version 0.1.41)" llm-api-ollama | time=2024-06-02T18:43:45.634Z level=INFO source=payload.go:30 msg="extracting embedded files" dir=/tmp/ollama2612999421/runners llm-api-ollama | time=2024-06-02T18:43:48.812Z level=INFO source=payload.go:44 msg="Dynamic LLM libraries [cpu cpu_avx cpu_avx2 cuda_v11 rocm_v60002]" llm-api-ollama | time=2024-06-02T18:43:49.370Z level=INFO source=types.go:71 msg="inference compute" id=... library=cuda compute=8.6 driver=12.5 name="NVIDIA GeForce RTX 3060" total="11.7 GiB" available="11.6 GiB" llm-api-ollama | time=2024-06-02T18:43:49.370Z level=INFO source=types.go:71 msg="inference compute" id=... library=cuda compute=8.6 driver=12.5 name="NVIDIA GeForce RTX 3060" total="11.7 GiB" available="11.6 GiB" llm-api-ollama | [GIN] 2024/06/02 - 18:44:14 | 200 | 82.831µs | 192.168.240.1 | GET "/api/version" llm-api-ollama | [GIN] 2024/06/02 - 18:44:17 | 200 | 22.011µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:44:17 | 200 | 1.881373ms | 192.168.240.1 | GET "/api/tags" llm-api-ollama | [GIN] 2024/06/02 - 18:44:22 | 200 | 32.52µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:44:22 | 200 | 69.875025ms | 192.168.240.1 | POST "/api/show" llm-api-ollama | [GIN] 2024/06/02 - 18:44:22 | 200 | 547.193µs | 192.168.240.1 | POST "/api/show" llm-api-ollama | time=2024-06-02T18:44:23.919Z level=INFO source=memory.go:133 msg="offload to gpu" layers.requested=-1 layers.real=10 memory.available="11.6 GiB" memory.required.full="71.0 GiB" memory.required.partial="10.9 GiB" memory.required.kv="640.0 MiB" memory.weights.total="68.8 GiB" memory.weights.repeating="67.7 GiB" memory.weights.nonrepeating="1.0 GiB" memory.graph.full="324.0 MiB" memory.graph.partial="1.1 GiB" llm-api-ollama | time=2024-06-02T18:44:23.921Z level=INFO source=memory.go:133 msg="offload to gpu" layers.requested=-1 layers.real=10 memory.available="11.6 GiB" memory.required.full="71.0 GiB" memory.required.partial="10.9 GiB" memory.required.kv="640.0 MiB" memory.weights.total="68.8 GiB" memory.weights.repeating="67.7 GiB" memory.weights.nonrepeating="1.0 GiB" memory.graph.full="324.0 MiB" memory.graph.partial="1.1 GiB" llm-api-ollama | time=2024-06-02T18:44:23.923Z level=INFO source=memory.go:133 msg="offload to gpu" layers.requested=-1 layers.real=23 memory.available="23.1 GiB" memory.required.full="71.3 GiB" memory.required.partial="23.1 GiB" memory.required.kv="640.0 MiB" memory.weights.total="68.8 GiB" memory.weights.repeating="67.7 GiB" memory.weights.nonrepeating="1.0 GiB" memory.graph.full="648.0 MiB" memory.graph.partial="2.2 GiB" llm-api-ollama | time=2024-06-02T18:44:23.925Z level=INFO source=memory.go:133 msg="offload to gpu" layers.requested=-1 layers.real=23 memory.available="23.1 GiB" memory.required.full="71.3 GiB" memory.required.partial="23.1 GiB" memory.required.kv="640.0 MiB" memory.weights.total="68.8 GiB" memory.weights.repeating="67.7 GiB" memory.weights.nonrepeating="1.0 GiB" memory.graph.full="648.0 MiB" memory.graph.partial="2.2 GiB" llm-api-ollama | time=2024-06-02T18:44:23.925Z level=INFO source=server.go:341 msg="starting llama server" cmd="/tmp/ollama2612999421/runners/cuda_v11/ollama_llama_server --model /home/models/blobs/sha256-b6f248eff2d0c4f85d2f6369a27d99fc75686d67314a0b5d35a93c5aee5dcb14 --ctx-size 2048 --batch-size 512 --embedding --log-disable --n-gpu-layers 23 --parallel 1 --port 35075" llm-api-ollama | time=2024-06-02T18:44:23.926Z level=INFO source=sched.go:338 msg="loaded runners" count=1 llm-api-ollama | time=2024-06-02T18:44:23.926Z level=INFO source=server.go:529 msg="waiting for llama runner to start responding" llm-api-ollama | time=2024-06-02T18:44:23.926Z level=INFO source=server.go:567 msg="waiting for server to become available" status="llm server error" llm-api-ollama | INFO [main] build info | build=1 commit="5921b8f" tid="139914827182080" timestamp=1717353863 llm-api-ollama | INFO [main] system info | n_threads=6 n_threads_batch=-1 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 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | " tid="139914827182080" timestamp=1717353863 total_threads=12 llm-api-ollama | INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="11" port="35075" tid="139914827182080" timestamp=1717353863 llm-api-ollama | llama_model_loader: loaded meta data with 21 key-value pairs and 723 tensors from /home/models/blobs/sha256-b6f248eff2d0c4f85d2f6369a27d99fc75686d67314a0b5d35a93c5aee5dcb14 (version GGUF V3 (latest)) llm-api-ollama | llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output. llm-api-ollama | llama_model_loader: - kv 0: general.architecture str = llama llm-api-ollama | llama_model_loader: - kv 1: general.name str = Meta-Llama-3-70B-Instruct llm-api-ollama | llama_model_loader: - kv 2: llama.block_count u32 = 80 llm-api-ollama | llama_model_loader: - kv 3: llama.context_length u32 = 8192 llm-api-ollama | llama_model_loader: - kv 4: llama.embedding_length u32 = 8192 llm-api-ollama | llama_model_loader: - kv 5: llama.feed_forward_length u32 = 28672 llm-api-ollama | llama_model_loader: - kv 6: llama.attention.head_count u32 = 64 llm-api-ollama | llama_model_loader: - kv 7: llama.attention.head_count_kv u32 = 8 llm-api-ollama | llama_model_loader: - kv 8: llama.rope.freq_base f32 = 500000.000000 llm-api-ollama | llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000010 llm-api-ollama | llama_model_loader: - kv 10: general.file_type u32 = 7 llm-api-ollama | llama_model_loader: - kv 11: llama.vocab_size u32 = 128256 llm-api-ollama | llama_model_loader: - kv 12: llama.rope.dimension_count u32 = 128 llm-api-ollama | llama_model_loader: - kv 13: tokenizer.ggml.model str = gpt2 llm-api-ollama | llama_model_loader: - kv 14: tokenizer.ggml.tokens arr[str,128256] = ["!", "\"", "#", "$", "%", "&", "'", ... llm-api-ollama | llama_model_loader: - kv 15: tokenizer.ggml.token_type arr[i32,128256] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... llm-api-ollama | llama_model_loader: - kv 16: tokenizer.ggml.merges arr[str,280147] = ["Ġ Ġ", "Ġ ĠĠĠ", "ĠĠ ĠĠ", "... llm-api-ollama | llama_model_loader: - kv 17: tokenizer.ggml.bos_token_id u32 = 128000 llm-api-ollama | llama_model_loader: - kv 18: tokenizer.ggml.eos_token_id u32 = 128001 llm-api-ollama | llama_model_loader: - kv 19: tokenizer.chat_template str = {% set loop_messages = messages %}{% ... llm-api-ollama | llama_model_loader: - kv 20: general.quantization_version u32 = 2 llm-api-ollama | llama_model_loader: - type f32: 161 tensors llm-api-ollama | llama_model_loader: - type q8_0: 562 tensors llm-api-ollama | time=2024-06-02T18:44:24.178Z level=INFO source=server.go:567 msg="waiting for server to become available" status="llm server loading model" llm-api-ollama | llm_load_vocab: missing or unrecognized pre-tokenizer type, using: 'default' llm-api-ollama | llm_load_vocab: special tokens cache size = 256 llm-api-ollama | llm_load_vocab: token to piece cache size = 1.5928 MB llm-api-ollama | llm_load_print_meta: format = GGUF V3 (latest) llm-api-ollama | llm_load_print_meta: arch = llama llm-api-ollama | llm_load_print_meta: vocab type = BPE llm-api-ollama | llm_load_print_meta: n_vocab = 128256 llm-api-ollama | llm_load_print_meta: n_merges = 280147 llm-api-ollama | llm_load_print_meta: n_ctx_train = 8192 llm-api-ollama | llm_load_print_meta: n_embd = 8192 llm-api-ollama | llm_load_print_meta: n_head = 64 llm-api-ollama | llm_load_print_meta: n_head_kv = 8 llm-api-ollama | llm_load_print_meta: n_layer = 80 llm-api-ollama | llm_load_print_meta: n_rot = 128 llm-api-ollama | llm_load_print_meta: n_embd_head_k = 128 llm-api-ollama | llm_load_print_meta: n_embd_head_v = 128 llm-api-ollama | llm_load_print_meta: n_gqa = 8 llm-api-ollama | llm_load_print_meta: n_embd_k_gqa = 1024 llm-api-ollama | llm_load_print_meta: n_embd_v_gqa = 1024 llm-api-ollama | llm_load_print_meta: f_norm_eps = 0.0e+00 llm-api-ollama | llm_load_print_meta: f_norm_rms_eps = 1.0e-05 llm-api-ollama | llm_load_print_meta: f_clamp_kqv = 0.0e+00 llm-api-ollama | llm_load_print_meta: f_max_alibi_bias = 0.0e+00 llm-api-ollama | llm_load_print_meta: f_logit_scale = 0.0e+00 llm-api-ollama | llm_load_print_meta: n_ff = 28672 llm-api-ollama | llm_load_print_meta: n_expert = 0 llm-api-ollama | llm_load_print_meta: n_expert_used = 0 llm-api-ollama | llm_load_print_meta: causal attn = 1 llm-api-ollama | llm_load_print_meta: pooling type = 0 llm-api-ollama | llm_load_print_meta: rope type = 0 llm-api-ollama | llm_load_print_meta: rope scaling = linear llm-api-ollama | llm_load_print_meta: freq_base_train = 500000.0 llm-api-ollama | llm_load_print_meta: freq_scale_train = 1 llm-api-ollama | llm_load_print_meta: n_yarn_orig_ctx = 8192 llm-api-ollama | llm_load_print_meta: rope_finetuned = unknown llm-api-ollama | llm_load_print_meta: ssm_d_conv = 0 llm-api-ollama | llm_load_print_meta: ssm_d_inner = 0 llm-api-ollama | llm_load_print_meta: ssm_d_state = 0 llm-api-ollama | llm_load_print_meta: ssm_dt_rank = 0 llm-api-ollama | llm_load_print_meta: model type = 70B llm-api-ollama | llm_load_print_meta: model ftype = Q8_0 llm-api-ollama | llm_load_print_meta: model params = 70.55 B llm-api-ollama | llm_load_print_meta: model size = 69.82 GiB (8.50 BPW) llm-api-ollama | llm_load_print_meta: general.name = Meta-Llama-3-70B-Instruct llm-api-ollama | llm_load_print_meta: BOS token = 128000 '<|begin_of_text|>' llm-api-ollama | llm_load_print_meta: EOS token = 128001 '<|end_of_text|>' llm-api-ollama | llm_load_print_meta: LF token = 128 'Ä' llm-api-ollama | llm_load_print_meta: EOT token = 128009 '<|eot_id|>' llm-api-ollama | ggml_cuda_init: GGML_CUDA_FORCE_MMQ: yes llm-api-ollama | ggml_cuda_init: CUDA_USE_TENSOR_CORES: no llm-api-ollama | ggml_cuda_init: found 2 CUDA devices: llm-api-ollama | Device 0: NVIDIA GeForce RTX 3060, compute capability 8.6, VMM: yes llm-api-ollama | Device 1: NVIDIA GeForce RTX 3060, compute capability 8.6, VMM: yes llm-api-ollama | llm_load_tensors: ggml ctx size = 1.10 MiB llm-api-ollama | [GIN] 2024/06/02 - 18:46:02 | 200 | 33.241µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:46:02 | 200 | 157.856186ms | 192.168.240.1 | GET "/api/ps" llm-api-ollama | [GIN] 2024/06/02 - 18:46:03 | 200 | 26.37µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:46:03 | 200 | 40.97µs | 192.168.240.1 | GET "/api/ps" llm-api-ollama | [GIN] 2024/06/02 - 18:46:05 | 200 | 19.6µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:46:05 | 200 | 24.41µs | 192.168.240.1 | GET "/api/ps" llm-api-ollama | [GIN] 2024/06/02 - 18:46:06 | 200 | 31.53µs | 192.168.240.1 | HEAD "/" llm-api-ollama | [GIN] 2024/06/02 - 18:46:06 | 200 | 35.571µs | 192.168.240.1 | GET "/api/ps" llm-api-ollama | time=2024-06-02T18:49:24.158Z level=ERROR source=sched.go:344 msg="error loading llama server" error="timed out waiting for llama runner to start - progress 0.00 - " llm-api-ollama | [GIN] 2024/06/02 - 18:49:24 | 500 | 5m2s | 192.168.240.1 | POST "/api/chat" llm-api-ollama | time=2024-06-02T18:49:29.391Z level=WARN source=sched.go:512 msg="gpu VRAM usage didn't recover within timeout" seconds=5.171164079 llm-api-ollama | time=2024-06-02T18:49:29.756Z level=WARN source=sched.go:512 msg="gpu VRAM usage didn't recover within timeout" seconds=5.535684461 llm-api-ollama | time=2024-06-02T18:49:30.074Z level=WARN source=sched.go:512 msg="gpu VRAM usage didn't recover within timeout" seconds=5.853850574
@rpenha commented on GitHub (Jun 3, 2024):
Same issue, even with tinyllama.
ollama.log
@dhiltgen commented on GitHub (Jun 4, 2024):
@UmutAlihan it looks like we made zero progress loading in 5 minutes and gave up. Can you share some more information about your setup? I see you have dual 3060's. Are you running on a bare metal OS, within a hypervisor, or in a container? Is there anything interesting/unusual about your storage I/O where the models are stored that could lead to very slow model loading? What sort of CPU, RAM? When we're loading, do you see any load on the system in tools like
toporiostat -dmx 5orfreeetc? (is it thrashing, paging, etc.?)@dhiltgen commented on GitHub (Jun 4, 2024):
@rpenha your log is quite short. Let's try another approach.
Then try to
ollama run tinyllamain another terminal, and assuming it still fails with a timeout, share your server.log so I can see where it's getting stuck.@rpenha commented on GitHub (Jun 4, 2024):
Sorry, @dhiltgen! My fault on the last comment.
server.log
@dhiltgen commented on GitHub (Jun 6, 2024):
@rpenha are you installing our pre-built binaries, or building from source or installing from some other source? The set of loaded libraries doesn't match our official builds. (although this might not have any impact on the defect)
How much system memory do you have? Is your system paging/thrashing when the model is loading?
Can you try loading with mmap disabled to see if that changes behavior?
@rpenha commented on GitHub (Jun 7, 2024):
@dhiltgen, these are my system info:
I tried some approaches:
All these approaches ran into the timeout issue.
My system has 64GB of RAM and there weren't any memory paging. GPU usage was about 100% usage.
Since the last Arch System update, opencl and rocm were upgraded and I am getting a segmentation fault error when trying to run the model.
I'll try to restore the last versions and run with memory mapped files disabled, as you asked for.
Thanks!
@UmutAlihan commented on GitHub (Jun 8, 2024):
Interestingly while trying to load smaller models layers distributed to CPU/GPU; I got this error:
ollama serve logs
ollama run logs
@UmutAlihan commented on GitHub (Jun 15, 2024):
considering my setup succesfully loads fp16 format llama3 8B model in 187 secods fully 100& into GPU,
I require to have a larger amount of llama.cpp timeout delay I assume (since 70B largely will load to CPU even slower)
Is there anyway that I can provide an argument so that this timeout delay is like 30minutes for testing ?
@githublihaha commented on GitHub (Jun 18, 2024):
@UmutAlihan Same question, same idea.
@Talnex commented on GitHub (Jun 18, 2024):
I found this error maybe come from here:
c9c8c98bf6/llm/server.go (L539-L543)c9c8c98bf6/llm/server.go (L562-L569)The
stallDurationis set as 5m manualy. I set to 50m ,then I build from source by follow https://github.com/ollama/ollama/blob/main/docs/development.mdIn my case, I use network disk of the server cluster so I need more time to load a 72B model.
It took 11min to load then it works :)
@dhiltgen commented on GitHub (Jun 18, 2024):
For folks seeing out of memory, please give 0.1.45-rc2 a try and see if that improves the behavior. If not, let us know.
For folks seeing timeouts during model loading, please try disabling mmap. We just merged a change that should greatly improve load performance on cuda+windows (will be in 0.1.45 final release later this week), but linux still needs work, however disabling mmap manually may be a viable workaround depending on what is leading to the slow model load performance on your system.
@UmutAlihan commented on GitHub (Jun 18, 2024):
This fixed all the issue flawlessly thank you very much. It seems all required to fix is to allow some old hardwares take their time to load and finalize.
I change "5" static values to "50" as well and built from source. Now I can load any model which fits to my GPU+CPU setup with a little patience.
@Talnex you just made my day, cheers!
@dhiltgen issue seems solved
@dhiltgen commented on GitHub (Jul 3, 2024):
I believe the issues here are resolved. If anyone is still having troubles, please upgrade to the latest release, and if that doesn't clear it up, share the server log and your scenario and I'll reopen the issue.
@wathuta commented on GitHub (Jul 11, 2024):
I'm using ollama version 0.2.1 on docker on vm(CPU only) with the specs below.

I'm facing the same problem where ollama restarts when a prompt is submitted to ollama this is what the error looks like
Here are the logs generated during this process
logs
llama_new_context_with_model: KV self size = 3072.00 MiB, K (f16): 1536.00 MiB, V (f16): 1536.00 MiB
llama_new_context_with_model: CPU output buffer size = 0.54 MiB
⠧ llama_new_context_with_model: CPU compute buffer size = 552.01 MiB
llama_new_context_with_model: graph nodes = 1030
llama_new_context_with_model: graph splits = 1
INFO [main] model loaded | tid="126962295940992" timestamp=1720632834
⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏ ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ time=2024-07-10T17:33:54.900Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server not responding"
⠇ ⠏ ⠋ ⠙ time=2024-07-10T17:33:55.333Z level=INFO source=server.go:609 msg="llama runner started in 22.02 seconds"
[GIN] 2024/07/10 - 17:33:55 | 200 | 22.255653701s | 127.0.0.1 | POST "/api/generate"
Waiting for Ollama server to be active...
[GIN] 2024/07/10 - 17:33:55 | 200 | 19.125742597s | 127.0.0.1 | POST "/api/generate"
[GIN] 2024/07/10 - 17:33:55 | 200 | 31.775µs | 127.0.0.1 | HEAD "/"
[GIN] 2024/07/10 - 17:33:55 | 200 | 1.257983ms | 127.0.0.1 | GET "/api/tags"
[GIN] 2024/07/10 - 17:34:46 | 200 | 23.176178ms | 127.0.0.1 | POST "/api/generate"
[GIN] 2024/07/10 - 17:35:46 | 200 | 35.045859ms | 127.0.0.1 | POST "/api/generate"
[GIN] 2024/07/10 - 17:39:08 | 200 | 2m40s | 172.20.0.9 | POST "/api/generate"
time=2024-07-10T17:39:09.955Z level=INFO source=memory.go:309 msg="offload to cpu" layers.requested=-1 layers.model=33 layers.offload=0 layers.split="" memory.available="[20.7 GiB]" memory.required.full="5.8 GiB" memory.required.partial="0 B" memory.required.kv="3.0 GiB" memory.required.allocations="[5.8 GiB]" memory.weights.total="5.0 GiB" memory.weights.repeating="5.0 GiB" memory.weights.nonrepeating="77.1 MiB" memory.graph.full="552.0 MiB" memory.graph.partial="641.1 MiB"
time=2024-07-10T17:39:09.958Z level=INFO source=server.go:375 msg="starting llama server" cmd="/tmp/ollama1597338378/runners/cpu_avx2/ollama_llama_server --model /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe --ctx-size 8192 --batch-size 512 --embedding --log-disable --no-mmap --parallel 4 --port 43237"
[GIN] 2024/07/10 - 17:39:09 | 499 | 2m22s | 127.0.0.1 | POST "/api/generate"
time=2024-07-10T17:39:09.960Z level=INFO source=sched.go:474 msg="loaded runners" count=1
time=2024-07-10T17:39:09.960Z level=INFO source=server.go:563 msg="waiting for llama runner to start responding"
time=2024-07-10T17:39:09.960Z level=WARN source=server.go:570 msg="client connection closed before server finished loading, aborting load"
time=2024-07-10T17:39:09.960Z level=ERROR source=sched.go:480 msg="error loading llama server" error="timed out waiting for llama runner to start: context canceled"
time=2024-07-10T17:39:09.977Z level=INFO source=memory.go:309 msg="offload to cpu" layers.requested=-1 layers.model=33 layers.offload=0 layers.split="" memory.available="[20.7 GiB]" memory.required.full="5.8 GiB" memory.required.partial="0 B" memory.required.kv="3.0 GiB" memory.required.allocations="[5.8 GiB]" memory.weights.total="5.0 GiB" memory.weights.repeating="5.0 GiB" memory.weights.nonrepeating="77.1 MiB" memory.graph.full="552.0 MiB" memory.graph.partial="641.1 MiB"
time=2024-07-10T17:39:09.979Z level=INFO source=server.go:375 msg="starting llama server" cmd="/tmp/ollama1597338378/runners/cpu_avx2/ollama_llama_server --model /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe --ctx-size 8192 --batch-size 512 --embedding --log-disable --no-mmap --parallel 4 --port 42085"
time=2024-07-10T17:39:10.004Z level=INFO source=sched.go:474 msg="loaded runners" count=1
time=2024-07-10T17:39:10.004Z level=INFO source=server.go:563 msg="waiting for llama runner to start responding"
time=2024-07-10T17:39:10.005Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server error"
INFO [main] build info | build=1 commit="a8db2a9" tid="131619913340800" timestamp=1720633150
INFO [main] system info | n_threads=6 n_threads_batch=-1 system_info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 0 | " tid="131619913340800" timestamp=1720633150 total_threads=6
INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="6" port="42085" tid="131619913340800" timestamp=1720633150
llama_model_loader: loaded meta data with 26 key-value pairs and 291 tensors from /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = model
llama_model_loader: - kv 2: llama.block_count u32 = 32
llama_model_loader: - kv 3: llama.context_length u32 = 4096
llama_model_loader: - kv 4: llama.embedding_length u32 = 3072
llama_model_loader: - kv 5: llama.feed_forward_length u32 = 8192
llama_model_loader: - kv 6: llama.attention.head_count u32 = 32
llama_model_loader: - kv 7: llama.attention.head_count_kv u32 = 32
llama_model_loader: - kv 8: llama.rope.freq_base f32 = 10000.000000
llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
llama_model_loader: - kv 10: general.file_type u32 = 15
llama_model_loader: - kv 11: llama.vocab_size u32 = 32064
llama_model_loader: - kv 12: llama.rope.dimension_count u32 = 96
llama_model_loader: - kv 13: tokenizer.ggml.model str = llama
llama_model_loader: - kv 14: tokenizer.ggml.pre str = default
llama_model_loader: - kv 15: tokenizer.ggml.tokens arr[str,32064] = ["", "
", "", "<0x00>", "<...llama_model_loader: - kv 16: tokenizer.ggml.scores arr[f32,32064] = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv 17: tokenizer.ggml.token_type arr[i32,32064] = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv 18: tokenizer.ggml.bos_token_id u32 = 1
llama_model_loader: - kv 19: tokenizer.ggml.eos_token_id u32 = 32000
llama_model_loader: - kv 20: tokenizer.ggml.unknown_token_id u32 = 0
llama_model_loader: - kv 21: tokenizer.ggml.padding_token_id u32 = 32009
llama_model_loader: - kv 22: tokenizer.ggml.add_bos_token bool = true
llama_model_loader: - kv 23: tokenizer.ggml.add_eos_token bool = false
llama_model_loader: - kv 24: tokenizer.chat_template str = {% for message in messages %}{% if me...
llama_model_loader: - kv 25: general.quantization_version u32 = 2
llama_model_loader: - type f32: 65 tensors
llama_model_loader: - type q4_K: 193 tensors
llama_model_loader: - type q6_K: 33 tensors
llm_load_vocab: special tokens cache size = 323
llm_load_vocab: token to piece cache size = 0.1690 MB
llm_load_print_meta: format = GGUF V3 (latest)
llm_load_print_meta: arch = llama
llm_load_print_meta: vocab type = SPM
llm_load_print_meta: n_vocab = 32064
llm_load_print_meta: n_merges = 0
llm_load_print_meta: vocab_only = 0
llm_load_print_meta: n_ctx_train = 4096
llm_load_print_meta: n_embd = 3072
llm_load_print_meta: n_layer = 32
llm_load_print_meta: n_head = 32
llm_load_print_meta: n_head_kv = 32
llm_load_print_meta: n_rot = 96
llm_load_print_meta: n_swa = 0
llm_load_print_meta: n_embd_head_k = 96
llm_load_print_meta: n_embd_head_v = 96
llm_load_print_meta: n_gqa = 1
llm_load_print_meta: n_embd_k_gqa = 3072
llm_load_print_meta: n_embd_v_gqa = 3072
llm_load_print_meta: f_norm_eps = 0.0e+00
llm_load_print_meta: f_norm_rms_eps = 1.0e-05
llm_load_print_meta: f_clamp_kqv = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: f_logit_scale = 0.0e+00
llm_load_print_meta: n_ff = 8192
llm_load_print_meta: n_expert = 0
llm_load_print_meta: n_expert_used = 0
llm_load_print_meta: causal attn = 1
llm_load_print_meta: pooling type = 0
llm_load_print_meta: rope type = 0
llm_load_print_meta: rope scaling = linear
llm_load_print_meta: freq_base_train = 10000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_ctx_orig_yarn = 4096
llm_load_print_meta: rope_finetuned = unknown
llm_load_print_meta: ssm_d_conv = 0
llm_load_print_meta: ssm_d_inner = 0
llm_load_print_meta: ssm_d_state = 0
llm_load_print_meta: ssm_dt_rank = 0
llm_load_print_meta: model type = 7B
llm_load_print_meta: model ftype = Q4_K - Medium
llm_load_print_meta: model params = 3.82 B
llm_load_print_meta: model size = 2.16 GiB (4.85 BPW)
llm_load_print_meta: general.name = model
llm_load_print_meta: BOS token = 1 '
'llm_load_print_meta: EOS token = 32000 '<|endoftext|>'
llm_load_print_meta: UNK token = 0 ''
llm_load_print_meta: PAD token = 32009 '<|placeholder6|>'
llm_load_print_meta: LF token = 13 '<0x0A>'
llm_load_print_meta: EOT token = 32007 '<|end|>'
llm_load_print_meta: max token length = 48
llm_load_tensors: ggml ctx size = 0.14 MiB
time=2024-07-10T17:39:10.258Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server loading model"
llm_load_tensors: CPU buffer size = 2210.78 MiB
llama_new_context_with_model: n_ctx = 8192
llama_new_context_with_model: n_batch = 512
llama_new_context_with_model: n_ubatch = 512
llama_new_context_with_model: flash_attn = 0
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
time=2024-07-10T17:39:18.326Z level=WARN source=server.go:570 msg="client connection closed before server finished loading, aborting load"
time=2024-07-10T17:39:18.326Z level=ERROR source=sched.go:480 msg="error loading llama server" error="timed out waiting for llama runner to start: context canceled"
[GIN] 2024/07/10 - 17:39:18 | 499 | 10.022229893s | 127.0.0.1 | POST "/api/generate"
time=2024-07-10T17:39:28.299Z level=INFO source=memory.go:309 msg="offload to cpu" layers.requested=-1 layers.model=33 layers.offload=0 layers.split="" memory.available="[20.9 GiB]" memory.required.full="5.8 GiB" memory.required.partial="0 B" memory.required.kv="3.0 GiB" memory.required.allocations="[5.8 GiB]" memory.weights.total="5.0 GiB" memory.weights.repeating="5.0 GiB" memory.weights.nonrepeating="77.1 MiB" memory.graph.full="552.0 MiB" memory.graph.partial="641.1 MiB"
time=2024-07-10T17:39:28.302Z level=INFO source=server.go:375 msg="starting llama server" cmd="/tmp/ollama1597338378/runners/cpu_avx2/ollama_llama_server --model /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe --ctx-size 8192 --batch-size 512 --embedding --log-disable --no-mmap --parallel 4 --port 44127"
time=2024-07-10T17:39:28.307Z level=INFO source=sched.go:474 msg="loaded runners" count=1
time=2024-07-10T17:39:28.307Z level=INFO source=server.go:563 msg="waiting for llama runner to start responding"
time=2024-07-10T17:39:28.309Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server error"
INFO [main] build info | build=1 commit="a8db2a9" tid="140651068561280" timestamp=1720633168
INFO [main] system info | n_threads=6 n_threads_batch=-1 system_info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 0 | " tid="140651068561280" timestamp=1720633168 total_threads=6
INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="6" port="44127" tid="140651068561280" timestamp=1720633168
llama_model_loader: loaded meta data with 26 key-value pairs and 291 tensors from /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = model
llama_model_loader: - kv 2: llama.block_count u32 = 32
llama_model_loader: - kv 3: llama.context_length u32 = 4096
llama_model_loader: - kv 4: llama.embedding_length u32 = 3072
llama_model_loader: - kv 5: llama.feed_forward_length u32 = 8192
llama_model_loader: - kv 6: llama.attention.head_count u32 = 32
llama_model_loader: - kv 7: llama.attention.head_count_kv u32 = 32
llama_model_loader: - kv 8: llama.rope.freq_base f32 = 10000.000000
llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
llama_model_loader: - kv 10: general.file_type u32 = 15
llama_model_loader: - kv 11: llama.vocab_size u32 = 32064
llama_model_loader: - kv 12: llama.rope.dimension_count u32 = 96
llama_model_loader: - kv 13: tokenizer.ggml.model str = llama
llama_model_loader: - kv 14: tokenizer.ggml.pre str = default
llama_model_loader: - kv 15: tokenizer.ggml.tokens arr[str,32064] = ["", "
", "", "<0x00>", "<...llama_model_loader: - kv 16: tokenizer.ggml.scores arr[f32,32064] = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv 17: tokenizer.ggml.token_type arr[i32,32064] = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv 18: tokenizer.ggml.bos_token_id u32 = 1
llama_model_loader: - kv 19: tokenizer.ggml.eos_token_id u32 = 32000
llama_model_loader: - kv 20: tokenizer.ggml.unknown_token_id u32 = 0
llama_model_loader: - kv 21: tokenizer.ggml.padding_token_id u32 = 32009
llama_model_loader: - kv 22: tokenizer.ggml.add_bos_token bool = true
llama_model_loader: - kv 23: tokenizer.ggml.add_eos_token bool = false
llama_model_loader: - kv 24: tokenizer.chat_template str = {% for message in messages %}{% if me...
llama_model_loader: - kv 25: general.quantization_version u32 = 2
llama_model_loader: - type f32: 65 tensors
llama_model_loader: - type q4_K: 193 tensors
llama_model_loader: - type q6_K: 33 tensors
llm_load_vocab: special tokens cache size = 323
llm_load_vocab: token to piece cache size = 0.1690 MB
llm_load_print_meta: format = GGUF V3 (latest)
llm_load_print_meta: arch = llama
llm_load_print_meta: vocab type = SPM
llm_load_print_meta: n_vocab = 32064
llm_load_print_meta: n_merges = 0
llm_load_print_meta: vocab_only = 0
llm_load_print_meta: n_ctx_train = 4096
llm_load_print_meta: n_embd = 3072
llm_load_print_meta: n_layer = 32
llm_load_print_meta: n_head = 32
llm_load_print_meta: n_head_kv = 32
llm_load_print_meta: n_rot = 96
llm_load_print_meta: n_swa = 0
llm_load_print_meta: n_embd_head_k = 96
llm_load_print_meta: n_embd_head_v = 96
llm_load_print_meta: n_gqa = 1
llm_load_print_meta: n_embd_k_gqa = 3072
llm_load_print_meta: n_embd_v_gqa = 3072
llm_load_print_meta: f_norm_eps = 0.0e+00
llm_load_print_meta: f_norm_rms_eps = 1.0e-05
llm_load_print_meta: f_clamp_kqv = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: f_logit_scale = 0.0e+00
llm_load_print_meta: n_ff = 8192
llm_load_print_meta: n_expert = 0
llm_load_print_meta: n_expert_used = 0
llm_load_print_meta: causal attn = 1
llm_load_print_meta: pooling type = 0
llm_load_print_meta: rope type = 0
llm_load_print_meta: rope scaling = linear
llm_load_print_meta: freq_base_train = 10000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_ctx_orig_yarn = 4096
llm_load_print_meta: rope_finetuned = unknown
llm_load_print_meta: ssm_d_conv = 0
llm_load_print_meta: ssm_d_inner = 0
llm_load_print_meta: ssm_d_state = 0
llm_load_print_meta: ssm_dt_rank = 0
llm_load_print_meta: model type = 7B
llm_load_print_meta: model ftype = Q4_K - Medium
llm_load_print_meta: model params = 3.82 B
llm_load_print_meta: model size = 2.16 GiB (4.85 BPW)
llm_load_print_meta: general.name = model
llm_load_print_meta: BOS token = 1 '
'llm_load_print_meta: EOS token = 32000 '<|endoftext|>'
llm_load_print_meta: UNK token = 0 ''
llm_load_print_meta: PAD token = 32009 '<|placeholder6|>'
llm_load_print_meta: LF token = 13 '<0x0A>'
llm_load_print_meta: EOT token = 32007 '<|end|>'
llm_load_print_meta: max token length = 48
llm_load_tensors: ggml ctx size = 0.14 MiB
llm_load_tensors: CPU buffer size = 2210.78 MiB
time=2024-07-10T17:39:28.565Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server loading model"
llama_new_context_with_model: n_ctx = 8192
llama_new_context_with_model: n_batch = 512
llama_new_context_with_model: n_ubatch = 512
llama_new_context_with_model: flash_attn = 0
llama_new_context_with_model: freq_base = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init: CPU KV buffer size = 3072.00 MiB
llama_new_context_with_model: KV self size = 3072.00 MiB, K (f16): 1536.00 MiB, V (f16): 1536.00 MiB
llama_new_context_with_model: CPU output buffer size = 0.54 MiB
llama_new_context_with_model: CPU compute buffer size = 552.01 MiB
llama_new_context_with_model: graph nodes = 1030
llama_new_context_with_model: graph splits = 1
INFO [main] model loaded | tid="140651068561280" timestamp=1720633187
time=2024-07-10T17:39:47.855Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server not responding"
time=2024-07-10T17:39:48.596Z level=INFO source=server.go:609 msg="llama runner started in 20.29 seconds"
[GIN] 2024/07/10 - 17:42:55 | 200 | 3m27s | 172.20.0.9 | POST "/api/generate"
time=2024-07-10T17:42:56.347Z level=INFO source=memory.go:309 msg="offload to cpu" layers.requested=-1 layers.model=33 layers.offload=0 layers.split="" memory.available="[20.8 GiB]" memory.required.full="5.8 GiB" memory.required.partial="0 B" memory.required.kv="3.0 GiB" memory.required.allocations="[5.8 GiB]" memory.weights.total="5.0 GiB" memory.weights.repeating="5.0 GiB" memory.weights.nonrepeating="77.1 MiB" memory.graph.full="552.0 MiB" memory.graph.partial="641.1 MiB"
time=2024-07-10T17:42:56.348Z level=INFO source=server.go:375 msg="starting llama server" cmd="/tmp/ollama1597338378/runners/cpu_avx2/ollama_llama_server --model /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe --ctx-size 8192 --batch-size 512 --embedding --log-disable --no-mmap --parallel 4 --port 38229"
time=2024-07-10T17:42:56.349Z level=INFO source=sched.go:474 msg="loaded runners" count=1
time=2024-07-10T17:42:56.349Z level=INFO source=server.go:563 msg="waiting for llama runner to start responding"
time=2024-07-10T17:42:56.349Z level=WARN source=server.go:570 msg="client connection closed before server finished loading, aborting load"
time=2024-07-10T17:42:56.349Z level=ERROR source=sched.go:480 msg="error loading llama server" error="timed out waiting for llama runner to start: context canceled"
[GIN] 2024/07/10 - 17:42:56 | 499 | 2m37s | 127.0.0.1 | POST "/api/generate"
time=2024-07-10T17:43:08.992Z level=INFO source=memory.go:309 msg="offload to cpu" layers.requested=-1 layers.model=33 layers.offload=0 layers.split="" memory.available="[20.7 GiB]" memory.required.full="5.8 GiB" memory.required.partial="0 B" memory.required.kv="3.0 GiB" memory.required.allocations="[5.8 GiB]" memory.weights.total="5.0 GiB" memory.weights.repeating="5.0 GiB" memory.weights.nonrepeating="77.1 MiB" memory.graph.full="552.0 MiB" memory.graph.partial="641.1 MiB"
time=2024-07-10T17:43:08.994Z level=INFO source=server.go:375 msg="starting llama server" cmd="/tmp/ollama1597338378/runners/cpu_avx2/ollama_llama_server --model /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe --ctx-size 8192 --batch-size 512 --embedding --log-disable --no-mmap --parallel 4 --port 35307"
INFO [main] build info | build=1 commit="a8db2a9" tid="126275201763200" timestamp=1720633389
INFO [main] system info | n_threads=6 n_threads_batch=-1 system_info="AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 0 | " tid="126275201763200" timestamp=1720633389 total_threads=6
INFO [main] HTTP server listening | hostname="127.0.0.1" n_threads_http="6" port="35307" tid="126275201763200" timestamp=1720633389
time=2024-07-10T17:43:09.009Z level=INFO source=sched.go:474 msg="loaded runners" count=1
time=2024-07-10T17:43:09.009Z level=INFO source=server.go:563 msg="waiting for llama runner to start responding"
time=2024-07-10T17:43:09.015Z level=INFO source=server.go:604 msg="waiting for server to become available" status="llm server loading model"
llama_model_loader: loaded meta data with 26 key-value pairs and 291 tensors from /root/.ollama/models/blobs/sha256-a2191836aeba86ef910d42a13ca2017facc68217ced42630939507211c2e6dbe (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv 0: general.architecture str = llama
llama_model_loader: - kv 1: general.name str = model
llama_model_loader: - kv 2: llama.block_count u32 = 32
llama_model_loader: - kv 3: llama.context_length u32 = 4096
llama_model_loader: - kv 4: llama.embedding_length u32 = 3072
llama_model_loader: - kv 5: llama.feed_forward_length u32 = 8192
llama_model_loader: - kv 6: llama.attention.head_count u32 = 32
llama_model_loader: - kv 7: llama.attention.head_count_kv u32 = 32
llama_model_loader: - kv 8: llama.rope.freq_base f32 = 10000.000000
llama_model_loader: - kv 9: llama.attention.layer_norm_rms_epsilon f32 = 0.000010
llama_model_loader: - kv 10: general.file_type u32 = 15
llama_model_loader: - kv 11: llama.vocab_size u32 = 32064
llama_model_loader: - kv 12: llama.rope.dimension_count u32
@davidbuzz commented on GitHub (Jul 19, 2024):
saw this symptom on a machine that didnt have enough real ram (8g) despite have an A40 and lots of video ram.
@dhiltgen commented on GitHub (Jul 22, 2024):
@wathuta in your logs I see
client connection closed before server finished loading, aborting load- if the client cancels the connection before the model finishes loading, we abort the load.@juangon commented on GitHub (Jul 22, 2024):
@dhiltgen is there a way to keep loading the model even after that connection close? This can be useful for large models that needs some minutes on the first load
@dhiltgen commented on GitHub (Jul 22, 2024):
On Linux/MacOS something like this should be sufficient
@juangon commented on GitHub (Jul 22, 2024):
Thanks @dhiltgen , is there a way when running through the official docker container image?
@dhiltgen commented on GitHub (Jul 22, 2024):
@juangon you could
docker execinto the container, or if you exposed the ports on the host, you could run the ollama CLI on the host, or you could usecurlfrom your host to access the API.https://github.com/ollama/ollama/blob/main/docs/api.md#request-1
@woxiangbo commented on GitHub (Aug 16, 2024):
I got same error,could you help to fix it ?thanks a lot !!

error.log
@edmundronald commented on GitHub (Aug 26, 2024):
Same error on Mac (M3, 128GB RAM).
% ollama run llama3.1:405b-instruct-q2_K
pulling manifest
pulling e7e1972e5b13... 100% ▕████████████████▏ 149 GB
pulling f000eeb056ec... 100% ▕████████████████▏ 1.4 KB
pulling 0ba8f0e314b4... 100% ▕████████████████▏ 12 KB
pulling 56bb8bd477a5... 100% ▕████████████████▏ 96 B
pulling 20fa4f8f2831... 100% ▕████████████████▏ 487 B
verifying sha256 digest
writing manifest
removing any unused layers
success
Error: timed out waiting for llama runner to start - progress 1.00 -
(base) edmundronald@Edmunds-MBP ~ %
@dhiltgen commented on GitHub (Sep 3, 2024):
@edmundronald you're trying to load a ~150G model into 128G of RAM, so your system is likely paging heavily and stalled. Try loading a smaller model.
@woxiangbo you're loading a very small model, so it seems unrelated to this resolved issue. If you're still having trouble loading qwen2 0.5b please open a new issue and include your server logs.
@pauljasperdev commented on GitHub (Sep 5, 2024):
Had the same error using ollama trough langchain. I tried first solving it via the timeout parameter of the langchain ollama wrapper but this had no effect for me. If model loading and answer generation took more than 60s, it timed out.
I ran ollama docker on AWS ECS on a g4dn.xlarge EC2 machine. This machine has 16gb ram und 16gb vram. I am mouning an EBS with multiple pre-downloaded models which i then mount into the models directory of the ollama container to have them already available. I didn't face any issues with small models but issues came with bigger models. Heres what i discovered:
Even tough I had 16gb vram, I could not fit 16gb models. This should fit easily as not all layers are offloaded to the gpu. For me, this didn't work because my ECS Capacity was provisioned with only 14 of the 16 gb ram. Apprently, the whole model has to fit into the containers ram to be parly loaded into vram afterwards.
While loading models >14gb did dont work as described before, I also noticed that the ram of my docker did not recover when it was holding multiple smaller models (~7gb each). I did not clearify this 100%, but I assume the free ram on the host machine, was too small to free up space and I was stuck with a full ram?!
I the end, I still was not able to find a langchain parameter that would effectively increase timeout time to more than some default 60s...
@dhiltgen commented on GitHub (Sep 5, 2024):
@pauljaspersahr you may want to look at creating your own custom container image based on our official image or use a custom entrypoint and inline script so you can add some startup logic to preload your model and wait for that to complete before connecting the client.
@JorgeAlberto91MS commented on GitHub (Sep 6, 2024):
Command:
ollama run moondream
Error code:
Error: timed out waiting for llama runner to start - progress 1.00 -
Ollama version
ollama version is 0.3.9
System information
Machine: aarch64 Hardware
System: Linux Model: NVIDIA Jetson Orin NX Engineering Reference Developer Kit
Distribution: Ubuntu 22.04 Jammy Jellyfish
699-level Part Number: 699-13767-0000-300 Μ.1
Release: 5.15.136-tegra P-Number: p3767-0000
Python: 3.10.12 Module: NVIDIA Jetson Orin NX (16GB ram)
Libraries SoC: tegra234
CUDA: 12.2.140 CUDA Arch BIN: 8.7
L4T: 36.3.0.
cuDNN: 8.9.4.25 Jetpack: 6.0
TensorRT: 8.6.2.3
VPI: 3.1.5 Hostname: bcpgrpAI
Vulkan: 1.3.204 Interfaces
OpenCV: 4.8.0 with CUDA: NO
Logs
journalctl -e -u ollama
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_vocab: special tokens cache size = 944
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_vocab: token to piece cache size = 0.3151 MB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: format = GGUF V3 (latest)
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: arch = phi2
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: vocab type = BPE
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_vocab = 51200
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_merges = 50000
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: vocab_only = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_ctx_train = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_embd = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_layer = 24
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_head = 32
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_head_kv = 32
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_rot = 32
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_swa = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_embd_head_k = 64
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_embd_head_v = 64
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_gqa = 1
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_embd_k_gqa = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_embd_v_gqa = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: f_norm_eps = 1.0e-05
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: f_norm_rms_eps = 0.0e+00
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: f_clamp_kqv = 0.0e+00
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: f_max_alibi_bias = 0.0e+00
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: f_logit_scale = 0.0e+00
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_ff = 8192
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_expert = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_expert_used = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: causal attn = 1
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: pooling type = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: rope type = 2
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: rope scaling = linear
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: freq_base_train = 10000.0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: freq_scale_train = 1
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: n_ctx_orig_yarn = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: rope_finetuned = unknown
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: ssm_d_conv = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: ssm_d_inner = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: ssm_d_state = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: ssm_dt_rank = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: model type = 1B
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: model ftype = Q4_0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: model params = 1.42 B
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: model size = 788.55 MiB (4.66 BPW)
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: general.name = moondream2
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: BOS token = 50256 '<|endoftext|>'
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: EOS token = 50256 '<|endoftext|>'
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: UNK token = 50256 '<|endoftext|>'
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: LF token = 128 'Ä'
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: EOT token = 50256 '<|endoftext|>'
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_print_meta: max token length = 256
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: ggml ctx size = 0.22 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: offloading 24 repeating layers to GPU
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: offloading non-repeating layers to GPU
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: offloaded 25/25 layers to GPU
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: CPU buffer size = 56.25 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llm_load_tensors: CUDA0 buffer size = 732.30 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: n_ctx = 2048
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: n_batch = 512
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: n_ubatch = 512
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: flash_attn = 0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: freq_base = 10000.0
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: freq_scale = 1
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_kv_cache_init: CUDA0 KV buffer size = 384.00 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: KV self size = 384.00 MiB, K (f16): 192.00 MiB, V (f16): 192.00 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: CUDA_Host output buffer size = 0.20 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: CUDA0 compute buffer size = 160.00 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: CUDA_Host compute buffer size = 8.01 MiB
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: graph nodes = 921
sep 06 15:49:06 bcpgrpAI ollama[11339]: llama_new_context_with_model: graph splits = 2
sep 06 15:54:07 bcpgrpAI ollama[11339]: time=2024-09-06T15:54:07.203-05:00 level=ERROR source=sched.go:456 msg="error loading llama server" error="timed out waiting for llama runner to start - progress 1.00 - "
sep 06 15:54:07 bcpgrpAI ollama[11339]: [GIN] 2024/09/06 - 15:54:07 | 500 | 8m10s | 127.0.0.1 | POST "/api/chat"
sep 06 15:54:12 bcpgrpAI ollama[11339]: time=2024-09-06T15:54:12.307-05:00 level=WARN source=sched.go:647 msg="gpu VRAM usage didn't recover within timeout" seconds=5.104093918 model=/usr/share/ollama/.ollama/models/blobs/sha256-e554c6b9de016673fd2c732e0342967727e9659c>
sep 06 15:54:12 bcpgrpAI ollama[11339]: time=2024-09-06T15:54:12.557-05:00 level=WARN source=sched.go:647 msg="gpu VRAM usage didn't recover within timeout" seconds=5.354000061 model=/usr/share/ollama/.ollama/models/blobs/sha256-e554c6b9de016673fd2c732e0342967727e9659c>
sep 06 15:54:12 bcpgrpAI ollama[11339]: time=2024-09-06T15:54:12.807-05:00 level=WARN source=sched.go:647 msg="gpu VRAM usage didn't recover within timeout" seconds=5.603623609 model=/usr/share/ollama/.ollama/models/blobs/sha256-e554c6b9de016673fd2c732e0342967727e9659c>
lines 105-179/179 (END)
@Stef1519 commented on GitHub (Dec 13, 2024):
As i was facing the same error also with V0.5.1 until now, i, with a rather slow classic HDD in a dual Xeon with 128GB RAM (plus 2*6GB Nvidia mining accelerators), trying to run deepseek-coder:33b and dolphin-mixtral:47b, found out that setting --keepalive to "10m" solved the issue. I think that the "Watchdog" which unloads the model after a certain time already starts to count when the model starts to load and -not- when it is ready. So maybe the "Watchdog" is killing the loading process.
@xhero05 commented on GitHub (Dec 18, 2024):
我也是cuda12.0 y也是这个情况
@xhero05 commented on GitHub (Dec 18, 2024):
我也是cuda12.0 也是这个情况