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
I am using local deployed model with vllm, but faced following error from dspy File "/home/ubuntu/miniconda3/envs/torch_env/lib/python3.10/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 209, in exception_type raise Timeout( litellm.exceptions.Timeout: litellm.Timeout: APITimeoutError - Request timed out.
As litellm is hardcoded into dspy, I do not see a way (as of now) to change the timeout parameter. Could you help me ?
I'm trying to patch the library and replace litellm with simple request instead, but this takes quite a long time and not very maintainable..
The text was updated successfully, but these errors were encountered:
hi @thangld201, I think you first need to find out why it is timing out. Why is vllm taking so much time? Patching should be the very last resort. Also, the dspy.configure and the dspy.LM takes additional arguments in the form of **kwargs, which are passed to litellm call. Find out whats the timeout argument called in litellm and try passing that to dspy.LM
Hi @rohitgarud, thank you for your fast reply!
The vllm server is working normal, I can infer this from the log. The timeout happens due to either some requests being very long, or something's wrong with litellm, as I met the same problems with litellm-based frameworks in the past. I will try figuring the way out and come back if I find something.
I am using local deployed model with vllm, but faced following error from dspy
File "/home/ubuntu/miniconda3/envs/torch_env/lib/python3.10/site-packages/litellm/litellm_core_utils/exception_mapping_utils.py", line 209, in exception_type raise Timeout( litellm.exceptions.Timeout: litellm.Timeout: APITimeoutError - Request timed out.
As
litellm
is hardcoded into dspy, I do not see a way (as of now) to change the timeout parameter. Could you help me ?I'm trying to patch the library and replace litellm with simple request instead, but this takes quite a long time and not very maintainable..
The text was updated successfully, but these errors were encountered: