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

Handle thread stream generate exceptions. #110

Merged
merged 6 commits into from
May 3, 2023

Conversation

pseudotensor
Copy link
Collaborator

If generate fails, stream hangs unless don't block or timeout. We choose to not block, and keep checking on status, and communicate from other thread to stream in main thread when it should stop if exception hit.

…angs unless don't block or timeout. We choose to not block, and keep checking on status, and communicate from other thread to stream in main thread when it should stop if exception hit.
@pseudotensor pseudotensor force-pushed the handlethreadstreamexceptions branch from 717049f to c789569 Compare May 3, 2023 12:07
…r each so can cancel. But cancel is still imperfect. It still generates on GPU in background, and sometimes shows last result instead of new as if async job was not cancelled but just paused.
@pseudotensor
Copy link
Collaborator Author

pseudotensor commented May 3, 2023

========================================================================================== 4 passed in 260.21s (0:04:20) ==========================================================================================
(h2ollm) jon@pseudotensor:~/h2ogpt$ 

================================================================================================== 4 passed in 271.28s (0:04:31) ==================================================================================================
(alpaca) jon@gpu:/data/jon/h2o-llm$ 

both systems pass

@pseudotensor pseudotensor merged commit a5f3385 into main May 3, 2023
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

Successfully merging this pull request may close these issues.

1 participant