Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

byzerllm query时报错:Failed to unpickle serialized exception #26

Open
feiying00544 opened this issue Jul 16, 2024 · 5 comments
Open

Comments

@feiying00544
Copy link

运行“byzerllm query --model ollama_qwen2_chat --query "who are you"”时会报错:
ERROR serialization.py:425 -- Failed to unpickle serialized exception
Traceback (most recent call last):
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 50, in from_ray_exception
return pickle.loads(ray_exception.serialized_exception)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\serialization.py", line 423, in deserialize_objects
obj = self._deserialize_object(data, metadata, object_ref)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\serialization.py", line 305, in _deserialize_object
return RayError.from_bytes(obj)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 44, in from_bytes
return RayError.from_ray_exception(ray_exception)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 53, in from_ray_exception
raise RuntimeError(msg) from e
RuntimeError: Failed to unpickle serialized exception
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Scripts\byzerllm.exe_main
.py", line 7, in
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\byzerllm\byzerllm_command.py", line 125, in main
resp = llm_client.chat_oai(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\byzerllm\utils\client\byzerllm_client.py", line 1207, in chat_oai
res = self._query(model, v)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\byzerllm\utils\client\byzerllm_client.py", line 1873, in _query
raise inst
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\byzerllm\utils\client\byzerllm_client.py", line 1863, in _query
res = ray.get(worker.async_apply.remote(new_input_value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\auto_init_hook.py", line 21, in auto_init_wrapper
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\client_mode_hook.py", line 103, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\worker.py", line 2656, in get
values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\worker.py", line 873, in get_objects
raise value
ray.exceptions.RaySystemError: System error: Failed to unpickle serialized exception
traceback: Traceback (most recent call last):
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 50, in from_ray_exception
return pickle.loads(ray_exception.serialized_exception)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: APIStatusError.init() missing 2 required keyword-only arguments: 'response' and 'body'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\serialization.py", line 423, in deserialize_objects
obj = self._deserialize_object(data, metadata, object_ref)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray_private\serialization.py", line 305, in _deserialize_object
return RayError.from_bytes(obj)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 44, in from_bytes
return RayError.from_ray_exception(ray_exception)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xxx\Miniconda3\envs\auto-coder\Lib\site-packages\ray\exceptions.py", line 53, in from_ray_exception
raise RuntimeError(msg) from e
RuntimeError: Failed to unpickle serialized exception

@fansir
Copy link

fansir commented Jul 31, 2024

一样的问题,解决了吗?

@hanfangyuan4396
Copy link

我是 在coding时 model_input_max_length配置的太小了出现了这个问题

@yx135790
Copy link

same here , when i deploy deepseek-ai/deepseek-v2-chat model ,but the deepseek-chat model works file

@yx135790
Copy link

same here , when i deploy deepseek-ai/deepseek-v2-chat model ,but the deepseek-chat model works file

I was using a wrong API key ,My problem solved after i switch to a correct api Key.
This issue might due to exception serialization. but I don't know for details

@Sean10
Copy link

Sean10 commented Oct 6, 2024

根据​​‌​‬‬​‬​‌​​​​​​​‌‍​‌‍‌‌‍​​​​⁠​‬⁠​​​‌‬‬使用auto_coder遇到的问题及解决方案汇总 - 飞书云文档 这里的指导

可以去ray的dashboard查看, localhost:8265 看actor下面的log

我的环境这个报错最后是知识库token超了
openai.BadRequestError: Error code: 400 - {'code': 20015, 'message': 'length of prompt_tokens (434052) must be less than max_seq_len (32768).', 'data': None}

处理掉之后, 可以返回内容了. 只不过好像多个文件加起来不能超大模型的上下文, deepseek 128K超了还是会报错.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants