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

support relative paths in sparseml.tarnsformers.export_onnx #1699

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

bfineran
Copy link
Member

fixes internally reported issue where output directories were unable to be created for transformers onnx export
specifically, this commit b52a13d tries to access the parent directory of a model which does not work for relative paths

this PR unwraps any file inputs to the script to their absolute path to unblock this and future workflows

test_plan:
reproduced issue with local file path and confirmed fix resolves:

sparseml.transformers.export_onnx --sequence_length 128 --task text_generation --model_path  opt-350m

@bfineran bfineran self-assigned this Aug 10, 2023
@bfineran bfineran merged commit 45f051a into main Aug 10, 2023
3 checks passed
@bfineran bfineran deleted the transformers-export-abs-path branch August 10, 2023 16:35
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

1 participant