Open
Conversation
shaahji
requested changes
Mar 19, 2026
Collaborator
shaahji
left a comment
There was a problem hiding this comment.
Few nit-picks
Please update the requirements file to include dependency on questionary
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new interactive olive init CLI wizard (backed by questionary) to generate/run optimization commands for PyTorch, ONNX, and Diffusers models.
Changes:
- Introduces
olive.cli.initwizard + per-framework flow modules (pytorch_flow,onnx_flow,diffusers_flow) and shared prompt/helpers. - Registers the new
initsubcommand in the main CLI launcher. - Adds a comprehensive new test suite for the wizard and flow command generation.
Reviewed changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
olive/cli/launcher.py |
Registers the new init subcommand in the CLI entrypoint. |
olive/cli/init/__init__.py |
Implements InitCommand to run the interactive wizard. |
olive/cli/init/wizard.py |
Adds the interactive wizard that builds and optionally runs commands. |
olive/cli/init/helpers.py |
Shared prompt utilities, choices, and calibration arg builder. |
olive/cli/init/pytorch_flow.py |
PyTorch command builders/flows for optimize/export/quantize/finetune. |
olive/cli/init/onnx_flow.py |
ONNX command builders/flows for optimize/quantize/graph opt/tuning. |
olive/cli/init/diffusers_flow.py |
Diffusers command builders/flows for export and LoRA training. |
olive/cli/optimize.py |
Small fixes: wikitext flag rename; peephole optimizer gating change. |
requirements.txt |
Adds questionary dependency. |
test/cli/init/* |
New tests covering wizard behavior and command generation for flows. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Checklist before requesting a review
lintrunner -a(Optional) Issue link