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

Fine-tuning Marian model can't use pipeline doing translate task #415

Open
wolf-li opened this issue Sep 11, 2023 · 2 comments
Open

Fine-tuning Marian model can't use pipeline doing translate task #415

wolf-li opened this issue Sep 11, 2023 · 2 comments

Comments

@wolf-li
Copy link

wolf-li commented Sep 11, 2023

Fine-tuning Marian model use huggingface transformers library. Translate model to rust_model.ot format. Can't use pipelien translate. This is the erroer message.

Tch tensor error: cannot find the tensor named model.decoder.embed_positions.weight

How do I solve this?

@guillaume-be
Copy link
Owner

Hello,

This error message gives you the expected weights name in the parameters dictionary of the model. What do your original model parameters keys look like before export?

@wolf-li
Copy link
Author

wolf-li commented Sep 12, 2023

Hello,

This error message gives you the expected weights name in the parameters dictionary of the model. What do your original model parameters keys look like before export?

Thanks for your replay.
How do I check "original model parameters keys"? Can you explain this? I use the Seq2SeqTrainingArguments and Seq2SeqTrainer fine-tuning the Marian model.

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