mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #1714] Cannot find any model weights /workspace/sglang/python/sglang/srt/model_loader/loader.py #1094
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#1094
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @withyou971 on GitHub (Dec 14, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/1714
Originally assigned to: @SkqLiao on GitHub.
Reminder
System Info
[2025-12-14 07:09:52] Scheduler hit an exception: Traceback (most recent call last):
File "/workspace/sglang/python/sglang/srt/managers/scheduler.py", line 2674, in run_scheduler_process
scheduler = Scheduler(
^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/managers/scheduler.py", line 311, in init
self.tp_worker = TpModelWorker(
^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/managers/tp_worker.py", line 237, in init
self._model_runner = ModelRunner(
^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 323, in init
self.initialize(min_per_gpu_memory)
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 404, in initialize
self.load_model()
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 758, in load_model
self.model = get_model(
^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/init.py", line 28, in get_model
return loader.load_model(
^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 600, in load_model
self.load_weights_and_postprocess(
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 608, in load_weights_and_postprocess
model.load_weights(weights)
File "/workspace/sglang/python/sglang/srt/models/qwen3_moe.py", line 812, in load_weights
for name, loaded_weight in weights:
^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 498, in _get_all_weights
yield from self._get_weights_iterator(primary_weights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 447, in _get_weights_iterator
hf_folder, hf_weights_files, use_safetensors = self._prepare_weights(
^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 436, in _prepare_weights
raise RuntimeError(
RuntimeError: Cannot find any model weights with
/mnt/model/Qwen3-30B-A3B['*.safetensors', '*.bin'][]Reproduction
Others
No response
@KMSorSMS commented on GitHub (Dec 15, 2025):
Seems like you didn't download the model weights (Qwen3-30B-A3B) in the right place -> /mnt/model/Qwen3-30B-A3B. Check your environment (the Docker won't contain the weights)
@withyou971 commented on GitHub (Dec 16, 2025):
total 59681116
-rwxrwxrwx 1 wenda wenda 61095802400 Jun 21 10:48 Qwen3-30B-A3B-Q4_K_M.gguf
-rw-r--r-- 1 root root 16798 Jun 28 23:51 README.md
-rw-rw-rw- 1 wenda wenda 707 May 22 2025 added_tokens.json
-rw-r--r-- 1 root root 963 Jun 28 23:51 config.json
-rw-r--r-- 1 root root 73 Jun 28 23:51 configuration.json
-rw-r--r-- 1 root root 239 Jun 28 23:51 generation_config.json
-rw-rw-rw- 1 wenda wenda 1671853 May 2 2025 merges.txt
-rw-r--r-- 1 root root 1699758 Jun 28 23:51 model.safetensors.index.json
-rw-rw-rw- 1 wenda wenda 427 May 2 2025 quantize_config.json
-rw-rw-rw- 1 wenda wenda 613 May 22 2025 special_tokens_map.json
-rw-r--r-- 1 root root 11422654 Jun 28 23:51 tokenizer.json
-rw-r--r-- 1 root root 9732 Jun 28 23:51 tokenizer_config.json
-rw-r--r-- 1 root root 2776833 Jun 28 23:51 vocab.json
wenda@DESKTOP-A7UUURG:/mnt/model/Qwen3-30B-A3B$
@KMSorSMS commented on GitHub (Dec 16, 2025):
['*.safetensors', '*.bin'] []you should pass the safetensors weight, not gguf.@withyou971 commented on GitHub (Dec 16, 2025):
In the readme it show the example --kt-method LLAMAFILE will be gguf type
@KMSorSMS commented on GitHub (Dec 17, 2025):
@withyou971 What command are you using? Are you passing the --kt-method LLAMAFILE argument? Please provide more details so we can help troubleshoot. I believe the default container startup command does not include --kt-method LLAMAFILE.
@withyou971 commented on GitHub (Dec 18, 2025):
python -m sglang.launch_server
--host 0.0.0.0
--port 10002
--model /mnt/model/Qwen3-235B-A22B
--trust-remote-code
--mem-fraction-static 0.92
--chunked-prefill-size 4096
--served-model-name Qwen3-235B-A22B
--enable-mixed-chunk
--kt-method LLAMAFILE
--kt-weight-path /mnt/model/Qwen3-235B-A22B-gguf
--kt-cpuinfer 16
--kt-num-gpu-experts 32
--kt-threadpool-count 1
--kt-max-deferred-experts-per-token 2 --tp 1 --log-level debug
@SkqLiao commented on GitHub (Dec 18, 2025):
This is a valid startup command. You need to ensure that the paths /mnt/model/Qwen3-235B-A22B and /mnt/model/Qwen3-235B-A22B-gguf are correct and contain weights.
@withyou971 commented on GitHub (Dec 18, 2025):
root@DESKTOP-A7UUURG:/mnt/model/Qwen3-235B-A22B# ls -l
total 18816
-rw-rw-rw- 1 wenda wenda 11343 Dec 14 11:33 LICENSE
-rw-rw-rw- 1 wenda wenda 16782 Dec 14 11:33 README.md
-rw-rw-rw- 1 wenda wenda 965 Dec 14 11:33 config.json
-rw-rw-rw- 1 wenda wenda 64 Dec 14 11:33 configuration.json
-rw-rw-rw- 1 wenda wenda 239 Dec 14 11:33 generation_config.json
-rw-rw-rw- 1 wenda wenda 1671853 Dec 14 11:33 merges.txt
-rw-rw-rw- 1 wenda wenda 3332207 Dec 14 11:33 model.safetensors.index.json
-rw-rw-rw- 1 wenda wenda 11422654 Dec 14 11:33 tokenizer.json
-rw-rw-rw- 1 wenda wenda 9732 Dec 14 11:33 tokenizer_config.json
-rw-rw-rw- 1 wenda wenda 2776833 Dec 14 11:33 vocab.json
root@DESKTOP-A7UUURG:/mnt/model/Qwen3-235B-A22B# cd ../Qwen3-235B-A22B-gguf
root@DESKTOP-A7UUURG:/mnt/model/Qwen3-235B-A22B-gguf# ls -l
total 138822396
-rwxrwxrwx 1 wenda wenda 49944699456 May 2 2025 Qwen3-235B-A22B-Q4_K_M-00001-of-00003.gguf
-rwxrwxrwx 1 wenda wenda 49930349824 May 2 2025 Qwen3-235B-A22B-Q4_K_M-00002-of-00003.gguf
-rwxrwxrwx 1 wenda wenda 42279026016 May 2 2025 Qwen3-235B-A22B-Q4_K_M-00003-of-00003.gguf
@SkqLiao commented on GitHub (Dec 18, 2025):
/mnt/model/Qwen3-235B-A22Bappears to have no weights. The weights are in the form ofmodel-00001-of-00118.safetensors, which you can check at huggingface./mnt/model/Qwen3-235B-A22B-ggufseems to be fine.@withyou971 commented on GitHub (Dec 18, 2025):
[GGUFLoader] Loading GGUF files from directory: /mnt/model/Qwen3-235B-A22B-gguf
Loading: Qwen3-235B-A22B-Q4_K_M-00001-of-00003.gguf
Loading: Qwen3-235B-A22B-Q4_K_M-00002-of-00003.gguf
Loading: Qwen3-235B-A22B-Q4_K_M-00003-of-00003.gguf
[GGUFLoader] Summary:
Files loaded: 3
Total tensors: 1131
Metadata keys: 49
ffn_up_exps, Dtype: Q4_K
ffn_gate_exps, Dtype: Q4_K
ffn_down_exps, Dtype: Q6_K
[LlamafileMoEWrapper] Layer 0 TP configuration:
intermediate_size: 1536
threadpool_count: 1
QK_K: 256
Total blocks: 6
Base blocks per TP: 6
Extra blocks (distributed to first TPs): 0
TP 0: size=1536, offset=0, blocks=6
CPUInfer[0x3b635a00]: Hello
WorkerPool[0x46936bc0] 1 subpools, [numa:threads][0:16]
set_mempolicy: Operation not permitted
===========In NumaPool============
In Numa Worker Pool at NUMA 0, 16 threads
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
hwloc_set_membind_nodeset: Operation not permitted
[LlamafileMoEWrapper] Layer 1 TP configuration:
intermediate_size: 1536
threadpool_count: 1
QK_K: 256
[LlamafileMoEWrapper] Layer 93 TP configuration:
intermediate_size: 1536
threadpool_count: 1
QK_K: 256
Total blocks: 6
Base blocks per TP: 6
Extra blocks (distributed to first TPs): 0
TP 0: size=1536, offset=0, blocks=6
[2025-12-18 07:29:11] Scheduler hit an exception: Traceback (most recent call last):
File "/workspace/sglang/python/sglang/srt/managers/scheduler.py", line 2674, in run_scheduler_process
scheduler = Scheduler(
^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/managers/scheduler.py", line 311, in init
self.tp_worker = TpModelWorker(
^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/managers/tp_worker.py", line 237, in init
self._model_runner = ModelRunner(
^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 323, in init
self.initialize(min_per_gpu_memory)
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 404, in initialize
self.load_model()
File "/workspace/sglang/python/sglang/srt/model_executor/model_runner.py", line 758, in load_model
self.model = get_model(
^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/init.py", line 28, in get_model
return loader.load_model(
^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 600, in load_model
self.load_weights_and_postprocess(
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 608, in load_weights_and_postprocess
model.load_weights(weights)
File "/workspace/sglang/python/sglang/srt/models/qwen3_moe.py", line 812, in load_weights
for name, loaded_weight in weights:
^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 498, in _get_all_weights
yield from self._get_weights_iterator(primary_weights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 447, in _get_weights_iterator
hf_folder, hf_weights_files, use_safetensors = self._prepare_weights(
^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/sglang/python/sglang/srt/model_loader/loader.py", line 436, in _prepare_weights
raise RuntimeError(
RuntimeError: Cannot find any model weights with
/mnt/model/Qwen3-235B-A22B['*.safetensors', '*.bin'][][2025-12-18 07:29:11] Received sigquit from a child process. It usually means the child failed.
Killed