Add support for exit layer (#18541)#18541
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18541
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (2 Unrelated Failures)As of commit a4123eb with merge base 4c56d9b ( BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
kimishpatel
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
This PR needs a
|
There was a problem hiding this comment.
Pull request overview
Adds a new per-method export configuration option intended to control the sequence length used for torch.export tracing.
Changes:
- Extend
MethodConfigwith an optionalexport_seq_lenfield. - Document intended semantics for how
export_seq_lenaffects tracing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Attributes: | ||
| method_name: Name of the method to export. | ||
| lora_config: Optional LoRA configuration. | ||
| export_seq_len: Sequence length of example inputs used during | ||
| torch.export tracing. Controls which graph path is captured. | ||
| Use export_seq_len=1 for decode methods (e.g. YOCO decode | ||
| where all layers run). When unset, uses the model's default |
There was a problem hiding this comment.
PR metadata/title mentions "exit layer", but the only code change here adds export_seq_len to MethodConfig and related documentation. Please update the PR title/description to match the actual change (or include the missing exit-layer-related implementation changes) so reviewers can validate the intended behavior.
3d05d25 to
62e4f8a
Compare
Summary: Add Reviewed By: billmguo, kimishpatel Differential Revision: D96844228
Summary: Add Reviewed By: billmguo, kimishpatel Differential Revision: D96844228
62e4f8a to
01770af
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary: Add Reviewed By: billmguo, kimishpatel Differential Revision: D96844228
01770af to
a4123eb
Compare
Differential Revision: D96844228 Pull Request resolved: pytorch#18541
Summary:
Add
Reviewed By: billmguo, kimishpatel
Differential Revision: D96844228