Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Conversation

@dbogunowicz
Copy link
Contributor

@dbogunowicz dbogunowicz commented Nov 21, 2023

Fix for: https://app.asana.com/0/1205724081986514/1205917069172910

The possible solution was either to catch the error or set --trust_remote_code flag True by default. I like the first solution much better. It is verbose, indicates where the error has occurred, and most importantly, does not work against the user's assumptions (HF has gotten us used to having this flag set to False by default).

When I get the buy-in from the stakeholders, I will also cherry-pick this to 1.6.

@dbogunowicz dbogunowicz changed the title [Fix] [Fix] "ValueError: scheme_overrides contains submodule names or module types that do not match to any submodules in the model" when using mpt model in sparseml.transformers.export_onnx [Fix]"ValueError: scheme_overrides contains submodule names or module types that do not match to any submodules in the model" when using mpt model in sparseml.transformers.export_onnx Nov 21, 2023
@bfineran bfineran merged commit 75e9ef4 into main Nov 22, 2023
@bfineran bfineran deleted the fix/damian/apply_manager branch November 22, 2023 15:20
dbogunowicz added a commit that referenced this pull request Nov 22, 2023
… types that do not match to any submodules in the model" when using mpt model in sparseml.transformers.export_onnx (#1846)

* initial commit

* Update src/sparseml/transformers/export.py
bfineran pushed a commit that referenced this pull request Nov 22, 2023
… types that do not match to any submodules in the model" when using mpt model in sparseml.transformers.export_onnx (#1846)

* initial commit

* Update src/sparseml/transformers/export.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants