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

whisper-peft model to onnx #660

Closed
marziye-A opened this issue Jul 2, 2023 · 2 comments
Closed

whisper-peft model to onnx #660

marziye-A opened this issue Jul 2, 2023 · 2 comments

Comments

@marziye-A
Copy link

@pacman100
hi,thanks for your excellent work
is there any way to convert a peft model to onnx?
i saw a pull request but it isn't merged.it is in the following link:
https://github.com/huggingface/peft/blob/smangrul/add-lora-model-to-onnx-conversion-notebook/examples/inference/convert_lora_model_to_onnx.ipynb

and using the code gives the following error:
AttributeError: 'str' object has no attribute 'detach'
any help is really appreciated.

@ingo-m
Copy link

ingo-m commented Jul 6, 2023

Using the bigscience/bloom-560m base model and finetuning with PEFT / LoRA, I was able to export to ONNX and perform inference, but the model predictions are degraded 🤔 Details: #670

Not sure whether ONNX export after PEFT / LoRA finetuning is actually supported yet.

@github-actions
Copy link

github-actions bot commented Aug 1, 2023

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

@github-actions github-actions bot closed this as completed Aug 9, 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

No branches or pull requests

2 participants