-
Notifications
You must be signed in to change notification settings - Fork 22
Checkpoint for codeflash --all runs #177
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:
|
User description
Restart a failed --all optimization run from a checkpoint
The checkpoint is only valid for 7 days
PR Type
Enhancement
Description
Implement checkpoint file writing and reading
Resume incomplete --all optimization runs
Skip already-processed functions automatically
Remove checkpoints older than seven days
Changes walkthrough 📝
checkpoint.py
Implement run checkpoint functionalitycodeflash/code_utils/checkpoint.py
functions_to_optimize.py
Skip previously checkpointed functionscodeflash/discovery/functions_to_optimize.py
optimizer.py
Integrate checkpoint resume into optimizer runcodeflash/optimization/optimizer.py
function_optimizer.py
Refactor formatting and ratio precisioncodeflash/optimization/function_optimizer.py