Skip to content
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

[Required for MPT models] Expose trust_remote_code flag for HF-transformers #1630

Closed
wants to merge 3 commits into from

Conversation

eldarkurtic
Copy link
Contributor

MPT models are not yet integrated in HF-transformers, and therefore to load them for ONNX export we need to explicitly set trust_remote_code flag when loading config and model with Auto feature from transformers.

Without this patch, running sparseml.transformers.export_onnx .... on MPT models will crash with: ValueError: Loading 68e1a8e0ebb9b30f3c45c1ef6195980f29063ae2 requires you to execute the configuration file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error.

@natuan natuan requested review from rahul-tuli, dbogunowicz, a team and nm-automation and removed request for a team June 16, 2023 15:45
@eldarkurtic
Copy link
Contributor Author

Changes merged with this PR: #1654

@eldarkurtic eldarkurtic closed this Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants