Skip to content

Conversation

@larryliu0820
Copy link
Contributor

Summary:
ETRecord previously only supported a single edge dialect program (defaulting to
the "forward" method). This change adds support for multiple methods like
vision_encoder, token_embedding, and text_decoder that are used in VLM exports.

The edge_dialect_program field can now be either a single ExportedProgram (for
backward compatibility) or a Dict[str, ExportedProgram] mapping method names to
their exported programs.

Key changes:

  • Updated ETRecord to accept Dict[str, ExportedProgram] for edge_dialect_program
  • Modified _process_edge_dialect_program to extract all methods from EdgeProgramManager
  • Updated save/parse logic to handle multi-method format with backward compatibility
  • New format uses paths like edge_dialect_exported_program/{method_name}

Authored with Claude Code.

Differential Revision: D92215098

Summary:
ETRecord previously only supported a single edge dialect program (defaulting to
the "forward" method). This change adds support for multiple methods like
vision_encoder, token_embedding, and text_decoder that are used in VLM exports.

The edge_dialect_program field can now be either a single ExportedProgram (for
backward compatibility) or a Dict[str, ExportedProgram] mapping method names to
their exported programs.

Key changes:
- Updated ETRecord to accept Dict[str, ExportedProgram] for edge_dialect_program
- Modified _process_edge_dialect_program to extract all methods from EdgeProgramManager
- Updated save/parse logic to handle multi-method format with backward compatibility
- New format uses paths like edge_dialect_exported_program/{method_name}

Authored with Claude Code.

Differential Revision: D92215098
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 4, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17185

Note: Links to docs will display an error until the docs builds have been completed.

❌ 7 New Failures

As of commit de94c1c with merge base c0cef6c (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 4, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Feb 4, 2026

@larryliu0820 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92215098.

@github-actions
Copy link

github-actions bot commented Feb 4, 2026

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants