You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/model_executor/model_loader/weight_utils.py:424: FutureWarning: Youareusing`torch.load`with`weights_only=False` (thecurrentdefaultvalue), whichusesthedefaultpicklemoduleimplicitly. Itispossibletoconstructmaliciouspickledatawhichwillexecutearbitrarycodeduringunpickling (Seehttps://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.state=torch.load(bin_file, map_location="cpu")
Loadingptcheckpointshards: 100%Completed|1/1 [00:00<00:00, 5.28it/s]
Loadingptcheckpointshards: 100%Completed|1/1 [00:00<00:00, 5.27it/s]
INFO10-0300:10:12cpu_executor.py:212] # CPU blocks: 7281Processedprompts: 0%||0/4 [00:00<?, ?it/s, est. speedinput: 0.00toks/s, output: 0.00toks/s][rank0]: Traceback (mostrecentcalllast):
[rank0]: File"/root/autodl-tmp/test_vllm_cpu.py", line17, in<module>
[rank0]: outputs=llm.generate(prompts, sampling_params)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/utils.py", line1051, ininner
[rank0]: returnfn(*args, **kwargs)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/entrypoints/llm.py", line391, ingenerate
[rank0]: outputs=self._run_engine(use_tqdm=use_tqdm)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/entrypoints/llm.py", line899, in_run_engine
[rank0]: step_outputs=self.llm_engine.step()
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/engine/llm_engine.py", line1407, instep
[rank0]: outputs=self.model_executor.execute_model(
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/executor/cpu_executor.py", line227, inexecute_model
[rank0]: output=self.driver_method_invoker(self.driver_worker,
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/executor/cpu_executor.py", line377, in_driver_method_invoker
[rank0]: returngetattr(driver, method)(*args, **kwargs)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/worker/worker_base.py", line303, inexecute_model
[rank0]: inputs=self.prepare_input(execute_model_req)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/worker/worker_base.py", line291, inprepare_input
[rank0]: returnself._get_driver_input_and_broadcast(execute_model_req)
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/worker/worker_base.py", line253, in_get_driver_input_and_broadcast
[rank0]: self.model_runner.prepare_model_input(
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/worker/cpu_model_runner.py", line498, inprepare_model_input
[rank0]: sampling_metadata=SamplingMetadata.prepare(seq_group_metadata_list,
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/model_executor/sampling_metadata.py", line160, inprepare
[rank0]: ) =_prepare_seq_groups(seq_group_metadata_list, seq_lens, query_lens,
[rank0]: File"/root/miniconda3/lib/python3.10/site-packages/vllm-0.6.3.dev65+g7f60520d.cpu-py3.10-linux-x86_64.egg/vllm/model_executor/sampling_metadata.py", line287, in_prepare_seq_groups
[rank0]: query_len=query_lens[i] ifquery_lensisnotNoneelse1
[rank0]: IndexError: listindexoutofrangeProcessedprompts: 0%|
Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
The text was updated successfully, but these errors were encountered:
Your current environment
Model Input Dumps
No response
🐛 Describe the bug
my code is :
Before submitting a new issue...
The text was updated successfully, but these errors were encountered: