[GH-ISSUE #10146] Why doesn't my L20 load the model into the GPU after starting ollama serve, here is the content of my OLLAMA_DEBUG=1 ollama serve. #6657

Closed
opened 2026-04-12 18:21:55 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @bravelyi on GitHub (Apr 6, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/10146

025/04/06 12:33:05 routes.go:1231: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:true OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/home/chenjy/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 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:* app://* file://* tauri://* vscode-webview://* vscode-file://] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]"
time=2025-04-06T12:33:05.683+08:00 level=INFO source=images.go:458 msg="total blobs: 98"
time=2025-04-06T12:33:05.684+08:00 level=INFO source=images.go:465 msg="total unused blobs removed: 0"
time=2025-04-06T12:33:05.685+08:00 level=INFO source=routes.go:1298 msg="Listening on 127.0.0.1:11434 (version 0.6.4)"
time=2025-04-06T12:33:05.685+08:00 level=DEBUG source=sched.go:107 msg="starting llm scheduler"
time=2025-04-06T12:33:05.685+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs"
time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:98 msg="searching for GPU discovery libraries for NVIDIA"
time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:501 msg="Searching for GPU library" name=libcuda.so

time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:525 msg="gpu library search" globs="[/usr/local/lib/ollama/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda*/targets//lib/libcuda.so /usr/lib/-linux-gnu/nvidia/current/libcuda.so /usr/lib/-linux-gnu/libcuda.so /usr/lib/wsl/lib/libcuda.so* /usr/lib/wsl/drivers//libcuda.so /opt/cuda/lib*/libcuda.so* /usr/local/cuda/lib*/libcuda.so* /usr/lib*/libcuda.so* /usr/local/lib*/libcuda.so*]"
time=2025-04-06T12:33:05.691+08:00 level=DEBUG source=gpu.go:558 msg="discovered GPU libraries" paths="[/usr/lib/i386-linux-gnu/libcuda.so.550.120 /usr/lib/x86_64-linux-gnu/libcuda.so.550.120]"
initializing /usr/lib/i386-linux-gnu/libcuda.so.550.120
library /usr/lib/i386-linux-gnu/libcuda.so.550.120 load err: /usr/lib/i386-linux-gnu/libcuda.so.550.120: wrong ELF class: ELFCLASS32
time=2025-04-06T12:33:05.691+08:00 level=DEBUG source=gpu.go:609 msg="skipping 32bit library" library=/usr/lib/i386-linux-gnu/libcuda.so.550.120
initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120
dlsym: cuInit - 0x70fae927cbc0
dlsym: cuDriverGetVersion - 0x70fae927cbe0
dlsym: cuDeviceGetCount - 0x70fae927cc20
dlsym: cuDeviceGet - 0x70fae927cc00
dlsym: cuDeviceGetAttribute - 0x70fae927cd00
dlsym: cuDeviceGetUuid - 0x70fae927cc60
dlsym: cuDeviceGetName - 0x70fae927cc40
dlsym: cuCtxCreate_v3 - 0x70fae927cee0
dlsym: cuMemGetInfo_v2 - 0x70fae9286e20
dlsym: cuCtxDestroy - 0x70fae92e1850
calling cuInit
calling cuDriverGetVersion
raw version 0x2f08
CUDA driver version: 12.4
calling cuDeviceGetCount
device count 4
time=2025-04-06T12:33:05.766+08:00 level=DEBUG source=gpu.go:125 msg="detected GPUs" count=4 library=/usr/lib/x86_64-linux-gnu/libcuda.so.550.120
[GPU-f075a0d8-8661-5d06-400f-0490085b57ad] CUDA totalMem 45589 mb
[GPU-f075a0d8-8661-5d06-400f-0490085b57ad] CUDA freeMem 45289 mb
[GPU-f075a0d8-8661-5d06-400f-0490085b57ad] Compute Capability 8.9
[GPU-e27fa16c-0842-a43b-8014-d0a78556739a] CUDA totalMem 45586 mb
[GPU-e27fa16c-0842-a43b-8014-d0a78556739a] CUDA freeMem 45286 mb
[GPU-e27fa16c-0842-a43b-8014-d0a78556739a] Compute Capability 8.9
[GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] CUDA totalMem 45589 mb
[GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] CUDA freeMem 45289 mb
[GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] Compute Capability 8.9
[GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] CUDA totalMem 45589 mb
[GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] CUDA freeMem 45289 mb
[GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] Compute Capability 8.9
time=2025-04-06T12:33:06.113+08:00 level=DEBUG source=amd_linux.go:419 msg="amdgpu driver not detected /sys/module/amdgpu"
releasing cuda driver library
time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-f075a0d8-8661-5d06-400f-0490085b57ad library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB"
time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-e27fa16c-0842-a43b-8014-d0a78556739a library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB"
time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB"
time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB"
time=2025-04-06T12:33:06.133+08:00 level=DEBUG source=gpu.go:391 msg="updating system memory data" before.total="125.5 GiB" before.free="120.1 GiB" before.free_swap="2.0 GiB" now.total="125.5 GiB" now.free="119.9 GiB" now.free_swap="2.0 GiB"
initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120
dlsym: cuInit - 0x70fae927cbc0
dlsym: cuDriverGetVersion - 0x70fae927cbe0
dlsym: cuDeviceGetCount - 0x70fae927cc20
dlsym: cuDeviceGet - 0x70fae927cc00
dlsym: cuDeviceGetAttribute - 0x70fae927cd00
dlsym: cuDeviceGetUuid - 0x70fae927cc60
dlsym: cuDeviceGetName - 0x70fae927cc40
dlsym: cuCtxCreate_v3 - 0x70fae927cee0
dlsym: cuMemGetInfo_v2 - 0x70fae9286e20
dlsym: cuCtxDestroy - 0x70fae92e1850
calling cuInit
calling cuDriverGetVersion
raw version 0x2f08
CUDA driver version: 12.4
calling cuDeviceGetCount
device count 4
time=2025-04-06T12:33:06.210+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
time=2025-04-06T12:33:06.284+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-e27fa16c-0842-a43b-8014-d0a78556739a name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="300.1 MiB"
time=2025-04-06T12:33:06.361+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
time=2025-04-06T12:33:06.438+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
releasing cuda driver library
time=2025-04-06T12:33:06.438+08:00 level=DEBUG source=sched.go:183 msg="updating default concurrency" OLLAMA_MAX_LOADED_MODELS=12 gpu_count=4
time=2025-04-06T12:33:06.460+08:00 level=DEBUG source=sched.go:226 msg="loading first model" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730
time=2025-04-06T12:33:06.460+08:00 level=DEBUG source=memory.go:108 msg=evaluating library=cuda gpu_count=1 available="[44.2 GiB]"
time=2025-04-06T12:33:06.460+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.vision.block_count default=0
time=2025-04-06T12:33:06.461+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.key_length default=128
time=2025-04-06T12:33:06.462+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.value_length default=128
time=2025-04-06T12:33:06.462+08:00 level=INFO source=sched.go:716 msg="new model will fit in available VRAM in single GPU, loading" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad parallel=4 available=47489941504 required="5.6 GiB"
time=2025-04-06T12:33:06.462+08:00 level=DEBUG source=gpu.go:391 msg="updating system memory data" before.total="125.5 GiB" before.free="119.9 GiB" before.free_swap="2.0 GiB" now.total="125.5 GiB" now.free="119.9 GiB" now.free_swap="2.0 GiB"
initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120
dlsym: cuInit - 0x70fae927cbc0
dlsym: cuDriverGetVersion - 0x70fae927cbe0
dlsym: cuDeviceGetCount - 0x70fae927cc20
dlsym: cuDeviceGet - 0x70fae927cc00
dlsym: cuDeviceGetAttribute - 0x70fae927cd00
dlsym: cuDeviceGetUuid - 0x70fae927cc60
dlsym: cuDeviceGetName - 0x70fae927cc40
dlsym: cuCtxCreate_v3 - 0x70fae927cee0
dlsym: cuMemGetInfo_v2 - 0x70fae9286e20
dlsym: cuCtxDestroy - 0x70fae92e1850
calling cuInit
calling cuDriverGetVersion
raw version 0x2f08
CUDA driver version: 12.4
calling cuDeviceGetCount
device count 4
time=2025-04-06T12:33:06.535+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
time=2025-04-06T12:33:06.613+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-e27fa16c-0842-a43b-8014-d0a78556739a name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="300.1 MiB"
time=2025-04-06T12:33:07.122+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
time=2025-04-06T12:33:07.194+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB"
releasing cuda driver library
time=2025-04-06T12:33:07.194+08:00 level=INFO source=server.go:105 msg="system memory" total="125.5 GiB" free="119.9 GiB" free_swap="2.0 GiB"
time=2025-04-06T12:33:07.194+08:00 level=DEBUG source=memory.go:108 msg=evaluating library=cuda gpu_count=1 available="[44.2 GiB]"
time=2025-04-06T12:33:07.194+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.vision.block_count default=0
time=2025-04-06T12:33:07.195+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.key_length default=128
time=2025-04-06T12:33:07.195+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.value_length default=128
time=2025-04-06T12:33:07.195+08:00 level=INFO source=server.go:138 msg=offload library=cuda layers.requested=-1 layers.model=29 layers.offload=29 layers.split="" memory.available="[44.2 GiB]" memory.gpu_overhead="0 B" memory.required.full="5.6 GiB" memory.required.partial="5.6 GiB" memory.required.kv="448.0 MiB" memory.required.allocations="[5.6 GiB]" memory.weights.total="4.1 GiB" memory.weights.repeating="3.7 GiB" memory.weights.nonrepeating="426.4 MiB" memory.graph.full="478.0 MiB" memory.graph.partial="730.4 MiB"
time=2025-04-06T12:33:07.195+08:00 level=DEBUG source=server.go:262 msg="compatible gpu libraries" compatible=[]
llama_model_loader: loaded meta data with 34 key-value pairs and 339 tensors from /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 (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 = qwen2
llama_model_loader: - kv 1: general.type str = model
llama_model_loader: - kv 2: general.name str = Qwen2.5 7B Instruct
llama_model_loader: - kv 3: general.finetune str = Instruct
llama_model_loader: - kv 4: general.basename str = Qwen2.5
llama_model_loader: - kv 5: general.size_label str = 7B
llama_model_loader: - kv 6: general.license str = apache-2.0
llama_model_loader: - kv 7: general.license.link str = https://huggingface.co/Qwen/Qwen2.5-7...
llama_model_loader: - kv 8: general.base_model.count u32 = 1
llama_model_loader: - kv 9: general.base_model.0.name str = Qwen2.5 7B
llama_model_loader: - kv 10: general.base_model.0.organization str = Qwen
llama_model_loader: - kv 11: general.base_model.0.repo_url str = https://huggingface.co/Qwen/Qwen2.5-7B
llama_model_loader: - kv 12: general.tags arr[str,2] = ["chat", "text-generation"]
llama_model_loader: - kv 13: general.languages arr[str,1] = ["en"]
llama_model_loader: - kv 14: qwen2.block_count u32 = 28
llama_model_loader: - kv 15: qwen2.context_length u32 = 32768
llama_model_loader: - kv 16: qwen2.embedding_length u32 = 3584
llama_model_loader: - kv 17: qwen2.feed_forward_length u32 = 18944
llama_model_loader: - kv 18: qwen2.attention.head_count u32 = 28
llama_model_loader: - kv 19: qwen2.attention.head_count_kv u32 = 4
llama_model_loader: - kv 20: qwen2.rope.freq_base f32 = 1000000.000000
llama_model_loader: - kv 21: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001
llama_model_loader: - kv 22: general.file_type u32 = 15
llama_model_loader: - kv 23: tokenizer.ggml.model str = gpt2
llama_model_loader: - kv 24: tokenizer.ggml.pre str = qwen2
llama_model_loader: - kv 25: tokenizer.ggml.tokens arr[str,152064] = ["!", """, "#", "$", "%", "&", "'", ...
llama_model_loader: - kv 26: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv 27: tokenizer.ggml.merges arr[str,151387] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
llama_model_loader: - kv 28: tokenizer.ggml.eos_token_id u32 = 151645
llama_model_loader: - kv 29: tokenizer.ggml.padding_token_id u32 = 151643
llama_model_loader: - kv 30: tokenizer.ggml.bos_token_id u32 = 151643
llama_model_loader: - kv 31: tokenizer.ggml.add_bos_token bool = false
llama_model_loader: - kv 32: tokenizer.chat_template str = {%- if tools %}\n {{- '<|im_start|>...
llama_model_loader: - kv 33: general.quantization_version u32 = 2
llama_model_loader: - type f32: 141 tensors
llama_model_loader: - type q4_K: 169 tensors
llama_model_loader: - type q6_K: 29 tensors
print_info: file format = GGUF V3 (latest)
print_info: file type = Q4_K - Medium
print_info: file size = 4.36 GiB (4.91 BPW)
init_tokenizer: initializing tokenizer for type 2
load: control token: 151660 '<|fim_middle|>' is not marked as EOG
load: control token: 151659 '<|fim_prefix|>' is not marked as EOG
load: control token: 151653 '<|vision_end|>' is not marked as EOG
load: control token: 151648 '<|box_start|>' is not marked as EOG
load: control token: 151646 '<|object_ref_start|>' is not marked as EOG
load: control token: 151649 '<|box_end|>' is not marked as EOG
load: control token: 151655 '<|image_pad|>' is not marked as EOG
load: control token: 151651 '<|quad_end|>' is not marked as EOG
load: control token: 151647 '<|object_ref_end|>' is not marked as EOG
load: control token: 151652 '<|vision_start|>' is not marked as EOG
load: control token: 151654 '<|vision_pad|>' is not marked as EOG
load: control token: 151656 '<|video_pad|>' is not marked as EOG
load: control token: 151644 '<|im_start|>' is not marked as EOG
load: control token: 151661 '<|fim_suffix|>' is not marked as EOG
load: control token: 151650 '<|quad_start|>' is not marked as EOG
load: special tokens cache size = 22
load: token to piece cache size = 0.9310 MB
print_info: arch = qwen2
print_info: vocab_only = 1
print_info: model type = ?B
print_info: model params = 7.62 B
print_info: general.name = Qwen2.5 7B Instruct
print_info: vocab type = BPE
print_info: n_vocab = 152064
print_info: n_merges = 151387
print_info: BOS token = 151643 '<|endoftext|>'
print_info: EOS token = 151645 '<|im_end|>'
print_info: EOT token = 151645 '<|im_end|>'
print_info: PAD token = 151643 '<|endoftext|>'
print_info: LF token = 198 'Ċ'
print_info: FIM PRE token = 151659 '<|fim_prefix|>'
print_info: FIM SUF token = 151661 '<|fim_suffix|>'
print_info: FIM MID token = 151660 '<|fim_middle|>'
print_info: FIM PAD token = 151662 '<|fim_pad|>'
print_info: FIM REP token = 151663 '<|repo_name|>'
print_info: FIM SEP token = 151664 '<|file_sep|>'
print_info: EOG token = 151643 '<|endoftext|>'
print_info: EOG token = 151645 '<|im_end|>'
print_info: EOG token = 151662 '<|fim_pad|>'
print_info: EOG token = 151663 '<|repo_name|>'
print_info: EOG token = 151664 '<|file_sep|>'
print_info: max token length = 256
llama_model_load: vocab only - skipping tensors
time=2025-04-06T12:33:07.362+08:00 level=INFO source=server.go:405 msg="starting llama server" cmd="/usr/local/bin/ollama runner --model /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 --ctx-size 8192 --batch-size 512 --n-gpu-layers 29 --verbose --threads 32 --parallel 4 --port 40089"
time=2025-04-06T12:33:07.362+08:00 level=DEBUG source=server.go:423 msg=subprocess environment="[LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:/usr/local/cuda-12.4/lib64:/usr/local/cuda-12.4/lib64:/usr/local/lib/ollama CUDA_HOME=/usr/local/cuda-12.4/bin PATH=/usr/local/nodejs/bin:/root/anaconda3/bin:/usr/local/cuda-12.4/bin:/home/chenjy/.vscode-server/cli/servers/Stable-4437686ffebaf200fa4a6e6e67f735f3edf24ada/server/bin/remote-cli:/usr/local/nodejs/bin:/root/anaconda3/bin:/home/chenjy/anaconda3/bin:/home/chenjy/anaconda3/condabin:/usr/local/cuda-12.4/bin:/usr/local/cuda-12.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chenjy/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand:/home/chenjy/.vscode-server/extensions/ms-python.debugpy-2025.6.0-linux-x64/bundled/scripts/noConfigScripts CUDA_VISIBLE_DEVICES=GPU-f075a0d8-8661-5d06-400f-0490085b57ad]"
time=2025-04-06T12:33:07.363+08:00 level=INFO source=sched.go:451 msg="loaded runners" count=1
time=2025-04-06T12:33:07.363+08:00 level=DEBUG source=sched.go:577 msg="evaluating already loaded" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730
time=2025-04-06T12:33:07.363+08:00 level=INFO source=server.go:580 msg="waiting for llama runner to start responding"
time=2025-04-06T12:33:07.363+08:00 level=INFO source=server.go:614 msg="waiting for server to become available" status="llm server error"
time=2025-04-06T12:33:07.377+08:00 level=INFO source=runner.go:858 msg="starting go runner"
time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64
time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64
time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64
time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:99 msg="ggml backend load all from path" path=/usr/local/lib/ollama
time=2025-04-06T12:33:07.377+08:00 level=INFO source=ggml.go:109 msg=system CPU.0.LLAMAFILE=1 compiler=cgo(gcc)
time=2025-04-06T12:33:07.378+08:00 level=INFO source=runner.go:918 msg="Server listening on 127.0.0.1:40089"
llama_model_loader: loaded meta data with 34 key-value pairs and 339 tensors from /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 (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 = qwen2
llama_model_loader: - kv 1: general.type str = model
llama_model_loader: - kv 2: general.name str = Qwen2.5 7B Instruct
llama_model_loader: - kv 3: general.finetune str = Instruct
llama_model_loader: - kv 4: general.basename str = Qwen2.5
llama_model_loader: - kv 5: general.size_label str = 7B
llama_model_loader: - kv 6: general.license str = apache-2.0
llama_model_loader: - kv 7: general.license.link str = https://huggingface.co/Qwen/Qwen2.5-7...
llama_model_loader: - kv 8: general.base_model.count u32 = 1
llama_model_loader: - kv 9: general.base_model.0.name str = Qwen2.5 7B
llama_model_loader: - kv 10: general.base_model.0.organization str = Qwen
llama_model_loader: - kv 11: general.base_model.0.repo_url str = https://huggingface.co/Qwen/Qwen2.5-7B
llama_model_loader: - kv 12: general.tags arr[str,2] = ["chat", "text-generation"]
llama_model_loader: - kv 13: general.languages arr[str,1] = ["en"]
llama_model_loader: - kv 14: qwen2.block_count u32 = 28
llama_model_loader: - kv 15: qwen2.context_length u32 = 32768
llama_model_loader: - kv 16: qwen2.embedding_length u32 = 3584
llama_model_loader: - kv 17: qwen2.feed_forward_length u32 = 18944
llama_model_loader: - kv 18: qwen2.attention.head_count u32 = 28
llama_model_loader: - kv 19: qwen2.attention.head_count_kv u32 = 4
llama_model_loader: - kv 20: qwen2.rope.freq_base f32 = 1000000.000000
llama_model_loader: - kv 21: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001
llama_model_loader: - kv 22: general.file_type u32 = 15
llama_model_loader: - kv 23: tokenizer.ggml.model str = gpt2
llama_model_loader: - kv 24: tokenizer.ggml.pre str = qwen2
llama_model_loader: - kv 25: tokenizer.ggml.tokens arr[str,152064] = ["!", """, "#", "$", "%", "&", "'", ...
llama_model_loader: - kv 26: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
llama_model_loader: - kv 27: tokenizer.ggml.merges arr[str,151387] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",...
llama_model_loader: - kv 28: tokenizer.ggml.eos_token_id u32 = 151645
llama_model_loader: - kv 29: tokenizer.ggml.padding_token_id u32 = 151643
llama_model_loader: - kv 30: tokenizer.ggml.bos_token_id u32 = 151643
llama_model_loader: - kv 31: tokenizer.ggml.add_bos_token bool = false
llama_model_loader: - kv 32: tokenizer.chat_template str = {%- if tools %}\n {{- '<|im_start|>...
llama_model_loader: - kv 33: general.quantization_version u32 = 2
llama_model_loader: - type f32: 141 tensors
llama_model_loader: - type q4_K: 169 tensors
llama_model_loader: - type q6_K: 29 tensors
print_info: file format = GGUF V3 (latest)
print_info: file type = Q4_K - Medium
print_info: file size = 4.36 GiB (4.91 BPW)
init_tokenizer: initializing tokenizer for type 2
load: control token: 151660 '<|fim_middle|>' is not marked as EOG
load: control token: 151659 '<|fim_prefix|>' is not marked as EOG
load: control token: 151653 '<|vision_end|>' is not marked as EOG
load: control token: 151648 '<|box_start|>' is not marked as EOG
load: control token: 151646 '<|object_ref_start|>' is not marked as EOG
load: control token: 151649 '<|box_end|>' is not marked as EOG
load: control token: 151655 '<|image_pad|>' is not marked as EOG
load: control token: 151651 '<|quad_end|>' is not marked as EOG
load: control token: 151647 '<|object_ref_end|>' is not marked as EOG
load: control token: 151652 '<|vision_start|>' is not marked as EOG
load: control token: 151654 '<|vision_pad|>' is not marked as EOG
load: control token: 151656 '<|video_pad|>' is not marked as EOG
load: control token: 151644 '<|im_start|>' is not marked as EOG
load: control token: 151661 '<|fim_suffix|>' is not marked as EOG
load: control token: 151650 '<|quad_start|>' is not marked as EOG
load: special tokens cache size = 22
load: token to piece cache size = 0.9310 MB
print_info: arch = qwen2
print_info: vocab_only = 0
print_info: n_ctx_train = 32768
print_info: n_embd = 3584
print_info: n_layer = 28
print_info: n_head = 28
print_info: n_head_kv = 4
print_info: n_rot = 128
print_info: n_swa = 0
print_info: n_embd_head_k = 128
print_info: n_embd_head_v = 128
print_info: n_gqa = 7
print_info: n_embd_k_gqa = 512
print_info: n_embd_v_gqa = 512
print_info: f_norm_eps = 0.0e+00
print_info: f_norm_rms_eps = 1.0e-06
print_info: f_clamp_kqv = 0.0e+00
print_info: f_max_alibi_bias = 0.0e+00
print_info: f_logit_scale = 0.0e+00
print_info: n_ff = 18944
print_info: n_expert = 0
print_info: n_expert_used = 0
print_info: causal attn = 1
print_info: pooling type = 0
print_info: rope type = 2
print_info: rope scaling = linear
print_info: freq_base_train = 1000000.0
print_info: freq_scale_train = 1
print_info: n_ctx_orig_yarn = 32768
print_info: rope_finetuned = unknown
print_info: ssm_d_conv = 0
print_info: ssm_d_inner = 0
print_info: ssm_d_state = 0
print_info: ssm_dt_rank = 0
print_info: ssm_dt_b_c_rms = 0
print_info: model type = 7B
print_info: model params = 7.62 B
print_info: general.name = Qwen2.5 7B Instruct
print_info: vocab type = BPE
print_info: n_vocab = 152064
print_info: n_merges = 151387
print_info: BOS token = 151643 '<|endoftext|>'
print_info: EOS token = 151645 '<|im_end|>'
print_info: EOT token = 151645 '<|im_end|>'
print_info: PAD token = 151643 '<|endoftext|>'
print_info: LF token = 198 'Ċ'
print_info: FIM PRE token = 151659 '<|fim_prefix|>'
print_info: FIM SUF token = 151661 '<|fim_suffix|>'
print_info: FIM MID token = 151660 '<|fim_middle|>'
print_info: FIM PAD token = 151662 '<|fim_pad|>'
print_info: FIM REP token = 151663 '<|repo_name|>'
print_info: FIM SEP token = 151664 '<|file_sep|>'
print_info: EOG token = 151643 '<|endoftext|>'
print_info: EOG token = 151645 '<|im_end|>'
print_info: EOG token = 151662 '<|fim_pad|>'
print_info: EOG token = 151663 '<|repo_name|>'
print_info: EOG token = 151664 '<|file_sep|>'
print_info: max token length = 256
load_tensors: loading model tensors, this can take a while... (mmap = true)
load_tensors: layer 0 assigned to device CPU
load_tensors: layer 1 assigned to device CPU
load_tensors: layer 2 assigned to device CPU
load_tensors: layer 3 assigned to device CPU
load_tensors: layer 4 assigned to device CPU
load_tensors: layer 5 assigned to device CPU
load_tensors: layer 6 assigned to device CPU
load_tensors: layer 7 assigned to device CPU
load_tensors: layer 8 assigned to device CPU
load_tensors: layer 9 assigned to device CPU
load_tensors: layer 10 assigned to device CPU
load_tensors: layer 11 assigned to device CPU
load_tensors: layer 12 assigned to device CPU
load_tensors: layer 13 assigned to device CPU
load_tensors: layer 14 assigned to device CPU
load_tensors: layer 15 assigned to device CPU
load_tensors: layer 16 assigned to device CPU
load_tensors: layer 17 assigned to device CPU
load_tensors: layer 18 assigned to device CPU
load_tensors: layer 19 assigned to device CPU
load_tensors: layer 20 assigned to device CPU
load_tensors: layer 21 assigned to device CPU
load_tensors: layer 22 assigned to device CPU
load_tensors: layer 23 assigned to device CPU
load_tensors: layer 24 assigned to device CPU
load_tensors: layer 25 assigned to device CPU
load_tensors: layer 26 assigned to device CPU
load_tensors: layer 27 assigned to device CPU
load_tensors: layer 28 assigned to device CPU
time=2025-04-06T12:33:07.615+08:00 level=INFO source=server.go:614 msg="waiting for server to become available" status="llm server loading model"

Originally created by @bravelyi on GitHub (Apr 6, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/10146 025/04/06 12:33:05 routes.go:1231: INFO server config env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION: HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:2048 OLLAMA_DEBUG:true OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/home/chenjy/.ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:0 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:* app://* file://* tauri://* vscode-webview://* vscode-file://*] OLLAMA_SCHED_SPREAD:false ROCR_VISIBLE_DEVICES: http_proxy: https_proxy: no_proxy:]" time=2025-04-06T12:33:05.683+08:00 level=INFO source=images.go:458 msg="total blobs: 98" time=2025-04-06T12:33:05.684+08:00 level=INFO source=images.go:465 msg="total unused blobs removed: 0" time=2025-04-06T12:33:05.685+08:00 level=INFO source=routes.go:1298 msg="Listening on 127.0.0.1:11434 (version 0.6.4)" time=2025-04-06T12:33:05.685+08:00 level=DEBUG source=sched.go:107 msg="starting llm scheduler" time=2025-04-06T12:33:05.685+08:00 level=INFO source=gpu.go:217 msg="looking for compatible GPUs" time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:98 msg="searching for GPU discovery libraries for NVIDIA" time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:501 msg="Searching for GPU library" name=libcuda.so* time=2025-04-06T12:33:05.688+08:00 level=DEBUG source=gpu.go:525 msg="gpu library search" globs="[/usr/local/lib/ollama/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda-12.4/lib64/libcuda.so* /usr/local/cuda*/targets/*/lib/libcuda.so* /usr/lib/*-linux-gnu/nvidia/current/libcuda.so* /usr/lib/*-linux-gnu/libcuda.so* /usr/lib/wsl/lib/libcuda.so* /usr/lib/wsl/drivers/*/libcuda.so* /opt/cuda/lib*/libcuda.so* /usr/local/cuda/lib*/libcuda.so* /usr/lib*/libcuda.so* /usr/local/lib*/libcuda.so*]" time=2025-04-06T12:33:05.691+08:00 level=DEBUG source=gpu.go:558 msg="discovered GPU libraries" paths="[/usr/lib/i386-linux-gnu/libcuda.so.550.120 /usr/lib/x86_64-linux-gnu/libcuda.so.550.120]" initializing /usr/lib/i386-linux-gnu/libcuda.so.550.120 library /usr/lib/i386-linux-gnu/libcuda.so.550.120 load err: /usr/lib/i386-linux-gnu/libcuda.so.550.120: wrong ELF class: ELFCLASS32 time=2025-04-06T12:33:05.691+08:00 level=DEBUG source=gpu.go:609 msg="skipping 32bit library" library=/usr/lib/i386-linux-gnu/libcuda.so.550.120 initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120 dlsym: cuInit - 0x70fae927cbc0 dlsym: cuDriverGetVersion - 0x70fae927cbe0 dlsym: cuDeviceGetCount - 0x70fae927cc20 dlsym: cuDeviceGet - 0x70fae927cc00 dlsym: cuDeviceGetAttribute - 0x70fae927cd00 dlsym: cuDeviceGetUuid - 0x70fae927cc60 dlsym: cuDeviceGetName - 0x70fae927cc40 dlsym: cuCtxCreate_v3 - 0x70fae927cee0 dlsym: cuMemGetInfo_v2 - 0x70fae9286e20 dlsym: cuCtxDestroy - 0x70fae92e1850 calling cuInit calling cuDriverGetVersion raw version 0x2f08 CUDA driver version: 12.4 calling cuDeviceGetCount device count 4 time=2025-04-06T12:33:05.766+08:00 level=DEBUG source=gpu.go:125 msg="detected GPUs" count=4 library=/usr/lib/x86_64-linux-gnu/libcuda.so.550.120 [GPU-f075a0d8-8661-5d06-400f-0490085b57ad] CUDA totalMem 45589 mb [GPU-f075a0d8-8661-5d06-400f-0490085b57ad] CUDA freeMem 45289 mb [GPU-f075a0d8-8661-5d06-400f-0490085b57ad] Compute Capability 8.9 [GPU-e27fa16c-0842-a43b-8014-d0a78556739a] CUDA totalMem 45586 mb [GPU-e27fa16c-0842-a43b-8014-d0a78556739a] CUDA freeMem 45286 mb [GPU-e27fa16c-0842-a43b-8014-d0a78556739a] Compute Capability 8.9 [GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] CUDA totalMem 45589 mb [GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] CUDA freeMem 45289 mb [GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60] Compute Capability 8.9 [GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] CUDA totalMem 45589 mb [GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] CUDA freeMem 45289 mb [GPU-1cc534f8-b355-b585-210f-44fa8cc4e765] Compute Capability 8.9 time=2025-04-06T12:33:06.113+08:00 level=DEBUG source=amd_linux.go:419 msg="amdgpu driver not detected /sys/module/amdgpu" releasing cuda driver library time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-f075a0d8-8661-5d06-400f-0490085b57ad library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB" time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-e27fa16c-0842-a43b-8014-d0a78556739a library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB" time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB" time=2025-04-06T12:33:06.113+08:00 level=INFO source=types.go:130 msg="inference compute" id=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 library=cuda variant=v12 compute=8.9 driver=12.4 name="NVIDIA L20" total="44.5 GiB" available="44.2 GiB" time=2025-04-06T12:33:06.133+08:00 level=DEBUG source=gpu.go:391 msg="updating system memory data" before.total="125.5 GiB" before.free="120.1 GiB" before.free_swap="2.0 GiB" now.total="125.5 GiB" now.free="119.9 GiB" now.free_swap="2.0 GiB" initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120 dlsym: cuInit - 0x70fae927cbc0 dlsym: cuDriverGetVersion - 0x70fae927cbe0 dlsym: cuDeviceGetCount - 0x70fae927cc20 dlsym: cuDeviceGet - 0x70fae927cc00 dlsym: cuDeviceGetAttribute - 0x70fae927cd00 dlsym: cuDeviceGetUuid - 0x70fae927cc60 dlsym: cuDeviceGetName - 0x70fae927cc40 dlsym: cuCtxCreate_v3 - 0x70fae927cee0 dlsym: cuMemGetInfo_v2 - 0x70fae9286e20 dlsym: cuCtxDestroy - 0x70fae92e1850 calling cuInit calling cuDriverGetVersion raw version 0x2f08 CUDA driver version: 12.4 calling cuDeviceGetCount device count 4 time=2025-04-06T12:33:06.210+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" time=2025-04-06T12:33:06.284+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-e27fa16c-0842-a43b-8014-d0a78556739a name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="300.1 MiB" time=2025-04-06T12:33:06.361+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" time=2025-04-06T12:33:06.438+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" releasing cuda driver library time=2025-04-06T12:33:06.438+08:00 level=DEBUG source=sched.go:183 msg="updating default concurrency" OLLAMA_MAX_LOADED_MODELS=12 gpu_count=4 time=2025-04-06T12:33:06.460+08:00 level=DEBUG source=sched.go:226 msg="loading first model" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 time=2025-04-06T12:33:06.460+08:00 level=DEBUG source=memory.go:108 msg=evaluating library=cuda gpu_count=1 available="[44.2 GiB]" time=2025-04-06T12:33:06.460+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.vision.block_count default=0 time=2025-04-06T12:33:06.461+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.key_length default=128 time=2025-04-06T12:33:06.462+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.value_length default=128 time=2025-04-06T12:33:06.462+08:00 level=INFO source=sched.go:716 msg="new model will fit in available VRAM in single GPU, loading" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad parallel=4 available=47489941504 required="5.6 GiB" time=2025-04-06T12:33:06.462+08:00 level=DEBUG source=gpu.go:391 msg="updating system memory data" before.total="125.5 GiB" before.free="119.9 GiB" before.free_swap="2.0 GiB" now.total="125.5 GiB" now.free="119.9 GiB" now.free_swap="2.0 GiB" initializing /usr/lib/x86_64-linux-gnu/libcuda.so.550.120 dlsym: cuInit - 0x70fae927cbc0 dlsym: cuDriverGetVersion - 0x70fae927cbe0 dlsym: cuDeviceGetCount - 0x70fae927cc20 dlsym: cuDeviceGet - 0x70fae927cc00 dlsym: cuDeviceGetAttribute - 0x70fae927cd00 dlsym: cuDeviceGetUuid - 0x70fae927cc60 dlsym: cuDeviceGetName - 0x70fae927cc40 dlsym: cuCtxCreate_v3 - 0x70fae927cee0 dlsym: cuMemGetInfo_v2 - 0x70fae9286e20 dlsym: cuCtxDestroy - 0x70fae92e1850 calling cuInit calling cuDriverGetVersion raw version 0x2f08 CUDA driver version: 12.4 calling cuDeviceGetCount device count 4 time=2025-04-06T12:33:06.535+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-f075a0d8-8661-5d06-400f-0490085b57ad name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" time=2025-04-06T12:33:06.613+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-e27fa16c-0842-a43b-8014-d0a78556739a name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="300.1 MiB" time=2025-04-06T12:33:07.122+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-fe74533b-efbc-ddc9-e0ac-3768e837bc60 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" time=2025-04-06T12:33:07.194+08:00 level=DEBUG source=gpu.go:441 msg="updating cuda memory data" gpu=GPU-1cc534f8-b355-b585-210f-44fa8cc4e765 name="NVIDIA L20" overhead="0 B" before.total="44.5 GiB" before.free="44.2 GiB" now.total="44.5 GiB" now.free="44.2 GiB" now.used="299.1 MiB" releasing cuda driver library time=2025-04-06T12:33:07.194+08:00 level=INFO source=server.go:105 msg="system memory" total="125.5 GiB" free="119.9 GiB" free_swap="2.0 GiB" time=2025-04-06T12:33:07.194+08:00 level=DEBUG source=memory.go:108 msg=evaluating library=cuda gpu_count=1 available="[44.2 GiB]" time=2025-04-06T12:33:07.194+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.vision.block_count default=0 time=2025-04-06T12:33:07.195+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.key_length default=128 time=2025-04-06T12:33:07.195+08:00 level=WARN source=ggml.go:149 msg="key not found" key=qwen2.attention.value_length default=128 time=2025-04-06T12:33:07.195+08:00 level=INFO source=server.go:138 msg=offload library=cuda layers.requested=-1 layers.model=29 layers.offload=29 layers.split="" memory.available="[44.2 GiB]" memory.gpu_overhead="0 B" memory.required.full="5.6 GiB" memory.required.partial="5.6 GiB" memory.required.kv="448.0 MiB" memory.required.allocations="[5.6 GiB]" memory.weights.total="4.1 GiB" memory.weights.repeating="3.7 GiB" memory.weights.nonrepeating="426.4 MiB" memory.graph.full="478.0 MiB" memory.graph.partial="730.4 MiB" time=2025-04-06T12:33:07.195+08:00 level=DEBUG source=server.go:262 msg="compatible gpu libraries" compatible=[] llama_model_loader: loaded meta data with 34 key-value pairs and 339 tensors from /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 (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 = qwen2 llama_model_loader: - kv 1: general.type str = model llama_model_loader: - kv 2: general.name str = Qwen2.5 7B Instruct llama_model_loader: - kv 3: general.finetune str = Instruct llama_model_loader: - kv 4: general.basename str = Qwen2.5 llama_model_loader: - kv 5: general.size_label str = 7B llama_model_loader: - kv 6: general.license str = apache-2.0 llama_model_loader: - kv 7: general.license.link str = https://huggingface.co/Qwen/Qwen2.5-7... llama_model_loader: - kv 8: general.base_model.count u32 = 1 llama_model_loader: - kv 9: general.base_model.0.name str = Qwen2.5 7B llama_model_loader: - kv 10: general.base_model.0.organization str = Qwen llama_model_loader: - kv 11: general.base_model.0.repo_url str = https://huggingface.co/Qwen/Qwen2.5-7B llama_model_loader: - kv 12: general.tags arr[str,2] = ["chat", "text-generation"] llama_model_loader: - kv 13: general.languages arr[str,1] = ["en"] llama_model_loader: - kv 14: qwen2.block_count u32 = 28 llama_model_loader: - kv 15: qwen2.context_length u32 = 32768 llama_model_loader: - kv 16: qwen2.embedding_length u32 = 3584 llama_model_loader: - kv 17: qwen2.feed_forward_length u32 = 18944 llama_model_loader: - kv 18: qwen2.attention.head_count u32 = 28 llama_model_loader: - kv 19: qwen2.attention.head_count_kv u32 = 4 llama_model_loader: - kv 20: qwen2.rope.freq_base f32 = 1000000.000000 llama_model_loader: - kv 21: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001 llama_model_loader: - kv 22: general.file_type u32 = 15 llama_model_loader: - kv 23: tokenizer.ggml.model str = gpt2 llama_model_loader: - kv 24: tokenizer.ggml.pre str = qwen2 llama_model_loader: - kv 25: tokenizer.ggml.tokens arr[str,152064] = ["!", "\"", "#", "$", "%", "&", "'", ... llama_model_loader: - kv 26: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... llama_model_loader: - kv 27: tokenizer.ggml.merges arr[str,151387] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",... llama_model_loader: - kv 28: tokenizer.ggml.eos_token_id u32 = 151645 llama_model_loader: - kv 29: tokenizer.ggml.padding_token_id u32 = 151643 llama_model_loader: - kv 30: tokenizer.ggml.bos_token_id u32 = 151643 llama_model_loader: - kv 31: tokenizer.ggml.add_bos_token bool = false llama_model_loader: - kv 32: tokenizer.chat_template str = {%- if tools %}\n {{- '<|im_start|>... llama_model_loader: - kv 33: general.quantization_version u32 = 2 llama_model_loader: - type f32: 141 tensors llama_model_loader: - type q4_K: 169 tensors llama_model_loader: - type q6_K: 29 tensors print_info: file format = GGUF V3 (latest) print_info: file type = Q4_K - Medium print_info: file size = 4.36 GiB (4.91 BPW) init_tokenizer: initializing tokenizer for type 2 load: control token: 151660 '<|fim_middle|>' is not marked as EOG load: control token: 151659 '<|fim_prefix|>' is not marked as EOG load: control token: 151653 '<|vision_end|>' is not marked as EOG load: control token: 151648 '<|box_start|>' is not marked as EOG load: control token: 151646 '<|object_ref_start|>' is not marked as EOG load: control token: 151649 '<|box_end|>' is not marked as EOG load: control token: 151655 '<|image_pad|>' is not marked as EOG load: control token: 151651 '<|quad_end|>' is not marked as EOG load: control token: 151647 '<|object_ref_end|>' is not marked as EOG load: control token: 151652 '<|vision_start|>' is not marked as EOG load: control token: 151654 '<|vision_pad|>' is not marked as EOG load: control token: 151656 '<|video_pad|>' is not marked as EOG load: control token: 151644 '<|im_start|>' is not marked as EOG load: control token: 151661 '<|fim_suffix|>' is not marked as EOG load: control token: 151650 '<|quad_start|>' is not marked as EOG load: special tokens cache size = 22 load: token to piece cache size = 0.9310 MB print_info: arch = qwen2 print_info: vocab_only = 1 print_info: model type = ?B print_info: model params = 7.62 B print_info: general.name = Qwen2.5 7B Instruct print_info: vocab type = BPE print_info: n_vocab = 152064 print_info: n_merges = 151387 print_info: BOS token = 151643 '<|endoftext|>' print_info: EOS token = 151645 '<|im_end|>' print_info: EOT token = 151645 '<|im_end|>' print_info: PAD token = 151643 '<|endoftext|>' print_info: LF token = 198 'Ċ' print_info: FIM PRE token = 151659 '<|fim_prefix|>' print_info: FIM SUF token = 151661 '<|fim_suffix|>' print_info: FIM MID token = 151660 '<|fim_middle|>' print_info: FIM PAD token = 151662 '<|fim_pad|>' print_info: FIM REP token = 151663 '<|repo_name|>' print_info: FIM SEP token = 151664 '<|file_sep|>' print_info: EOG token = 151643 '<|endoftext|>' print_info: EOG token = 151645 '<|im_end|>' print_info: EOG token = 151662 '<|fim_pad|>' print_info: EOG token = 151663 '<|repo_name|>' print_info: EOG token = 151664 '<|file_sep|>' print_info: max token length = 256 llama_model_load: vocab only - skipping tensors time=2025-04-06T12:33:07.362+08:00 level=INFO source=server.go:405 msg="starting llama server" cmd="/usr/local/bin/ollama runner --model /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 --ctx-size 8192 --batch-size 512 --n-gpu-layers 29 --verbose --threads 32 --parallel 4 --port 40089" time=2025-04-06T12:33:07.362+08:00 level=DEBUG source=server.go:423 msg=subprocess environment="[LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:/usr/local/cuda-12.4/lib64:/usr/local/cuda-12.4/lib64:/usr/local/lib/ollama CUDA_HOME=/usr/local/cuda-12.4/bin PATH=/usr/local/nodejs/bin:/root/anaconda3/bin:/usr/local/cuda-12.4/bin:/home/chenjy/.vscode-server/cli/servers/Stable-4437686ffebaf200fa4a6e6e67f735f3edf24ada/server/bin/remote-cli:/usr/local/nodejs/bin:/root/anaconda3/bin:/home/chenjy/anaconda3/bin:/home/chenjy/anaconda3/condabin:/usr/local/cuda-12.4/bin:/usr/local/cuda-12.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/chenjy/.vscode-server/data/User/globalStorage/github.copilot-chat/debugCommand:/home/chenjy/.vscode-server/extensions/ms-python.debugpy-2025.6.0-linux-x64/bundled/scripts/noConfigScripts CUDA_VISIBLE_DEVICES=GPU-f075a0d8-8661-5d06-400f-0490085b57ad]" time=2025-04-06T12:33:07.363+08:00 level=INFO source=sched.go:451 msg="loaded runners" count=1 time=2025-04-06T12:33:07.363+08:00 level=DEBUG source=sched.go:577 msg="evaluating already loaded" model=/home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 time=2025-04-06T12:33:07.363+08:00 level=INFO source=server.go:580 msg="waiting for llama runner to start responding" time=2025-04-06T12:33:07.363+08:00 level=INFO source=server.go:614 msg="waiting for server to become available" status="llm server error" time=2025-04-06T12:33:07.377+08:00 level=INFO source=runner.go:858 msg="starting go runner" time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64 time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64 time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:93 msg="skipping path which is not part of ollama" path=/usr/local/cuda-12.4/lib64 time=2025-04-06T12:33:07.377+08:00 level=DEBUG source=ggml.go:99 msg="ggml backend load all from path" path=/usr/local/lib/ollama time=2025-04-06T12:33:07.377+08:00 level=INFO source=ggml.go:109 msg=system CPU.0.LLAMAFILE=1 compiler=cgo(gcc) time=2025-04-06T12:33:07.378+08:00 level=INFO source=runner.go:918 msg="Server listening on 127.0.0.1:40089" llama_model_loader: loaded meta data with 34 key-value pairs and 339 tensors from /home/chenjy/.ollama/models/blobs/sha256-2bada8a7450677000f678be90653b85d364de7db25eb5ea54136ada5f3933730 (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 = qwen2 llama_model_loader: - kv 1: general.type str = model llama_model_loader: - kv 2: general.name str = Qwen2.5 7B Instruct llama_model_loader: - kv 3: general.finetune str = Instruct llama_model_loader: - kv 4: general.basename str = Qwen2.5 llama_model_loader: - kv 5: general.size_label str = 7B llama_model_loader: - kv 6: general.license str = apache-2.0 llama_model_loader: - kv 7: general.license.link str = https://huggingface.co/Qwen/Qwen2.5-7... llama_model_loader: - kv 8: general.base_model.count u32 = 1 llama_model_loader: - kv 9: general.base_model.0.name str = Qwen2.5 7B llama_model_loader: - kv 10: general.base_model.0.organization str = Qwen llama_model_loader: - kv 11: general.base_model.0.repo_url str = https://huggingface.co/Qwen/Qwen2.5-7B llama_model_loader: - kv 12: general.tags arr[str,2] = ["chat", "text-generation"] llama_model_loader: - kv 13: general.languages arr[str,1] = ["en"] llama_model_loader: - kv 14: qwen2.block_count u32 = 28 llama_model_loader: - kv 15: qwen2.context_length u32 = 32768 llama_model_loader: - kv 16: qwen2.embedding_length u32 = 3584 llama_model_loader: - kv 17: qwen2.feed_forward_length u32 = 18944 llama_model_loader: - kv 18: qwen2.attention.head_count u32 = 28 llama_model_loader: - kv 19: qwen2.attention.head_count_kv u32 = 4 llama_model_loader: - kv 20: qwen2.rope.freq_base f32 = 1000000.000000 llama_model_loader: - kv 21: qwen2.attention.layer_norm_rms_epsilon f32 = 0.000001 llama_model_loader: - kv 22: general.file_type u32 = 15 llama_model_loader: - kv 23: tokenizer.ggml.model str = gpt2 llama_model_loader: - kv 24: tokenizer.ggml.pre str = qwen2 llama_model_loader: - kv 25: tokenizer.ggml.tokens arr[str,152064] = ["!", "\"", "#", "$", "%", "&", "'", ... llama_model_loader: - kv 26: tokenizer.ggml.token_type arr[i32,152064] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... llama_model_loader: - kv 27: tokenizer.ggml.merges arr[str,151387] = ["Ġ Ġ", "ĠĠ ĠĠ", "i n", "Ġ t",... llama_model_loader: - kv 28: tokenizer.ggml.eos_token_id u32 = 151645 llama_model_loader: - kv 29: tokenizer.ggml.padding_token_id u32 = 151643 llama_model_loader: - kv 30: tokenizer.ggml.bos_token_id u32 = 151643 llama_model_loader: - kv 31: tokenizer.ggml.add_bos_token bool = false llama_model_loader: - kv 32: tokenizer.chat_template str = {%- if tools %}\n {{- '<|im_start|>... llama_model_loader: - kv 33: general.quantization_version u32 = 2 llama_model_loader: - type f32: 141 tensors llama_model_loader: - type q4_K: 169 tensors llama_model_loader: - type q6_K: 29 tensors print_info: file format = GGUF V3 (latest) print_info: file type = Q4_K - Medium print_info: file size = 4.36 GiB (4.91 BPW) init_tokenizer: initializing tokenizer for type 2 load: control token: 151660 '<|fim_middle|>' is not marked as EOG load: control token: 151659 '<|fim_prefix|>' is not marked as EOG load: control token: 151653 '<|vision_end|>' is not marked as EOG load: control token: 151648 '<|box_start|>' is not marked as EOG load: control token: 151646 '<|object_ref_start|>' is not marked as EOG load: control token: 151649 '<|box_end|>' is not marked as EOG load: control token: 151655 '<|image_pad|>' is not marked as EOG load: control token: 151651 '<|quad_end|>' is not marked as EOG load: control token: 151647 '<|object_ref_end|>' is not marked as EOG load: control token: 151652 '<|vision_start|>' is not marked as EOG load: control token: 151654 '<|vision_pad|>' is not marked as EOG load: control token: 151656 '<|video_pad|>' is not marked as EOG load: control token: 151644 '<|im_start|>' is not marked as EOG load: control token: 151661 '<|fim_suffix|>' is not marked as EOG load: control token: 151650 '<|quad_start|>' is not marked as EOG load: special tokens cache size = 22 load: token to piece cache size = 0.9310 MB print_info: arch = qwen2 print_info: vocab_only = 0 print_info: n_ctx_train = 32768 print_info: n_embd = 3584 print_info: n_layer = 28 print_info: n_head = 28 print_info: n_head_kv = 4 print_info: n_rot = 128 print_info: n_swa = 0 print_info: n_embd_head_k = 128 print_info: n_embd_head_v = 128 print_info: n_gqa = 7 print_info: n_embd_k_gqa = 512 print_info: n_embd_v_gqa = 512 print_info: f_norm_eps = 0.0e+00 print_info: f_norm_rms_eps = 1.0e-06 print_info: f_clamp_kqv = 0.0e+00 print_info: f_max_alibi_bias = 0.0e+00 print_info: f_logit_scale = 0.0e+00 print_info: n_ff = 18944 print_info: n_expert = 0 print_info: n_expert_used = 0 print_info: causal attn = 1 print_info: pooling type = 0 print_info: rope type = 2 print_info: rope scaling = linear print_info: freq_base_train = 1000000.0 print_info: freq_scale_train = 1 print_info: n_ctx_orig_yarn = 32768 print_info: rope_finetuned = unknown print_info: ssm_d_conv = 0 print_info: ssm_d_inner = 0 print_info: ssm_d_state = 0 print_info: ssm_dt_rank = 0 print_info: ssm_dt_b_c_rms = 0 print_info: model type = 7B print_info: model params = 7.62 B print_info: general.name = Qwen2.5 7B Instruct print_info: vocab type = BPE print_info: n_vocab = 152064 print_info: n_merges = 151387 print_info: BOS token = 151643 '<|endoftext|>' print_info: EOS token = 151645 '<|im_end|>' print_info: EOT token = 151645 '<|im_end|>' print_info: PAD token = 151643 '<|endoftext|>' print_info: LF token = 198 'Ċ' print_info: FIM PRE token = 151659 '<|fim_prefix|>' print_info: FIM SUF token = 151661 '<|fim_suffix|>' print_info: FIM MID token = 151660 '<|fim_middle|>' print_info: FIM PAD token = 151662 '<|fim_pad|>' print_info: FIM REP token = 151663 '<|repo_name|>' print_info: FIM SEP token = 151664 '<|file_sep|>' print_info: EOG token = 151643 '<|endoftext|>' print_info: EOG token = 151645 '<|im_end|>' print_info: EOG token = 151662 '<|fim_pad|>' print_info: EOG token = 151663 '<|repo_name|>' print_info: EOG token = 151664 '<|file_sep|>' print_info: max token length = 256 load_tensors: loading model tensors, this can take a while... (mmap = true) load_tensors: layer 0 assigned to device CPU load_tensors: layer 1 assigned to device CPU load_tensors: layer 2 assigned to device CPU load_tensors: layer 3 assigned to device CPU load_tensors: layer 4 assigned to device CPU load_tensors: layer 5 assigned to device CPU load_tensors: layer 6 assigned to device CPU load_tensors: layer 7 assigned to device CPU load_tensors: layer 8 assigned to device CPU load_tensors: layer 9 assigned to device CPU load_tensors: layer 10 assigned to device CPU load_tensors: layer 11 assigned to device CPU load_tensors: layer 12 assigned to device CPU load_tensors: layer 13 assigned to device CPU load_tensors: layer 14 assigned to device CPU load_tensors: layer 15 assigned to device CPU load_tensors: layer 16 assigned to device CPU load_tensors: layer 17 assigned to device CPU load_tensors: layer 18 assigned to device CPU load_tensors: layer 19 assigned to device CPU load_tensors: layer 20 assigned to device CPU load_tensors: layer 21 assigned to device CPU load_tensors: layer 22 assigned to device CPU load_tensors: layer 23 assigned to device CPU load_tensors: layer 24 assigned to device CPU load_tensors: layer 25 assigned to device CPU load_tensors: layer 26 assigned to device CPU load_tensors: layer 27 assigned to device CPU load_tensors: layer 28 assigned to device CPU time=2025-04-06T12:33:07.615+08:00 level=INFO source=server.go:614 msg="waiting for server to become available" status="llm server loading model"
GiteaMirror added the model label 2026-04-12 18:21:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#6657