-
Notifications
You must be signed in to change notification settings - Fork 227
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
Enable parallel OpenAI calls #645
Conversation
Signed-off-by: Jeffrey Martin <[email protected]>
* ensure read and write of `reportfile` are in parent only * consolidate multiprocessing execution in `probes/base.py` Signed-off-by: Jeffrey Martin <[email protected]>
Signed-off-by: Jeffrey Martin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
I did not test, only performed code review. But nothing here seems to remove or alter functionality in a breaking way. |
Signed-off-by: Jeffrey Martin <[email protected]>
Extended refactor to provide example of using a base class that can share |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - would just appreciate one doc update
Signed-off-by: Jeffrey Martin <[email protected]>
Fix #493
Conceptually since rest generator client objects should not retains state, this provides a pattern where
rest
generator client objects can be instantiated only when required and avoiding the need topickle
the client object when passing a generator to another process.OpenAI
_config.transient.reportfile
are in parent process onlyprobes/base.py
Verification testing preformed with:
Additional testing may be appropriate to validate changes to
base
andgcg
probe flows are not impacted.