-
Couldn't load subscription status.
- Fork 22
Non-Blocking Async refinement calls for better queing CF-666 #609
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
i will let @KRRT7 review |
|
@KRRT7 ready to review, large diffs are due to changes in indentation |
|
closing as changes present in #615 |
User description
I'm interleaving refinement generation with the candidate evaluation for better cpu utilization and non blocking calls. awaiting in the end when there is nothing else to do. This should save some time in the candidate evaluation loop.
PR Type
Enhancement
Description
Asynchronously submit refinement tasks in loop
Change refine_optimizations to return Future
Increase executor pool size to 3 workers
Remove blocking synchronous refinement logic
Diagram Walkthrough
File Walkthrough
function_optimizer.py
Enable async refinement task handlingcodeflash/optimization/function_optimizer.py