-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Moonshine ONNX export (& seq2seq models with non-lega…
…cy cache & `Tensor.repeat_interleave`) (#2162) * Add moonshine ONNX config * Remove use_cache_position for whisper exports * Patch torch repeat_interleave during export * Add support for exporting models with non-legacy caches * Formatting * Re-use model patcher for seq2seq models * Add moonshine unit tests * Formatting * When tracing, repeats passed as an int will be turned into a tensor of rank 0. * Fix failing unit test on 4.45.1 CI. Confirmed it works above 4.46 too.
- Loading branch information
Showing
4 changed files
with
103 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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