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
From the code, the semaphore is acquired when generate_stream, and release_model_semaphore is added as a background task. But in my envrionment (Ubuntu 22.04) it is never called.
Besides, the global_counter is not restored when semaphore released. Not get what's the trigger condition to call it.
In my test, it's blocked by semaphore after submit --limit-model-concurrency times of query of a model.
I put the release semaphore at the end of streamer the generated the text. There the model end of text generate. It works.
Could you tell me how the semapore is released in the background task?
Is my change acceptable?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I run into semaphore not released issue.
From the code, the semaphore is acquired when generate_stream, and release_model_semaphore is added as a background task. But in my envrionment (Ubuntu 22.04) it is never called.
Besides, the global_counter is not restored when semaphore released. Not get what's the trigger condition to call it.
In my test, it's blocked by semaphore after submit
--limit-model-concurrency
times of query of a model.I put the release semaphore at the end of streamer the generated the text. There the model end of text generate. It works.
Could you tell me how the semapore is released in the background task?
Is my change acceptable?
Thanks!
Xigui
Beta Was this translation helpful? Give feedback.
All reactions