-
Notifications
You must be signed in to change notification settings - Fork 642
Complete onnx/onnxruntime decoder models integration and testing #2278
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2cc29a0
added test_decoders.py
IlyasMoutawwakil 4da3df2
fix position ids for single batch and more complete decoder testing f…
IlyasMoutawwakil d208f6b
support merging seq2seq models when used as decoders and add more tests
IlyasMoutawwakil 608da13
fix pipe tests
IlyasMoutawwakil f34f6e7
update phi min transformers version (broken by cache position refacto…
IlyasMoutawwakil 2e1a700
remove deprecated bloom modeling
IlyasMoutawwakil 00ec0c7
update opt onnx config to the one with position ids
IlyasMoutawwakil 88dc4a8
remove all complex deprecated modeling
IlyasMoutawwakil 5f9419e
get_supported_model_type_for_task should only return suooprted model …
IlyasMoutawwakil 478fd57
update min transformers
IlyasMoutawwakil 6aa3a17
use transformers like api for use_cache and add can_use_cache and is_…
IlyasMoutawwakil 7da7015
testing
IlyasMoutawwakil f9f7395
fix
IlyasMoutawwakil 8785be6
fix
IlyasMoutawwakil 5f81515
remove unnecessary
IlyasMoutawwakil 6e3bff1
simply qwen3
IlyasMoutawwakil aacf172
docs
IlyasMoutawwakil 2b0137f
qwen-moe
IlyasMoutawwakil 7041a89
model type shenanigans
IlyasMoutawwakil de244d5
fix
IlyasMoutawwakil 088b265
use test models from optimum-internal-hf with proper metadata
IlyasMoutawwakil af7c6bb
Update optimum/onnxruntime/modeling_decoder.py
IlyasMoutawwakil 0149349
keep supported model types
IlyasMoutawwakil 2d9d7ea
Merge branch 'distribute-tests' of https://github.com/huggingface/opt…
IlyasMoutawwakil fbcf3a1
Merge branch 'main' into distribute-tests
IlyasMoutawwakil 2cf507c
optimum model
IlyasMoutawwakil 8821d97
fix failing test by forcing export
IlyasMoutawwakil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking it might be easier to raise an error instead before export when the transformers version is not compatible and to keep all supported architectures so that users know that the architecture export is supported but that transformers needs to be upgraded, what do you think @IlyasMoutawwakil ?
optimum/optimum/exporters/onnx/convert.py
Line 853 in e15053d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact I only added this here to be able to use it in
test_find_untested_architecturesI can move the version checks there and keep this method as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done ! I simply remove them the unsupported models (because version) using
CONFIG_MAPPING_NAMESThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the raising of version error during export, I thin that's already the case