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

Add Camembert to models exportable with ONNX #14059

Merged
merged 11 commits into from
Oct 26, 2021

Conversation

chainyo
Copy link
Contributor

@chainyo chainyo commented Oct 19, 2021

What does this PR do?

I added lines to make Camembert models available for Onnx conversion.

Issue

This is linked to this conversation #13952

@LysandreJik

Thomas.Chaigneau and others added 2 commits October 19, 2021 09:56
Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! It looks very clean.
Could you make sure to run make style on your branch to get rid of the quality error?

@@ -0,0 +1,8 @@
timestamp,experiment_id,project_name,duration,emissions,energy_consumed,country_name,country_iso_code,region,on_cloud,cloud_provider,cloud_region
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file was added by mistake.

@@ -0,0 +1,3 @@
timestamp,experiment_id,project_name,duration,emissions,energy_consumed,country_name,country_iso_code,region,on_cloud,cloud_provider,cloud_region
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know where does these files comes from. It's probably because I tried to run make test before make style but it wasn't really needed or successfull :)

@chainyo
Copy link
Contributor Author

chainyo commented Oct 26, 2021

I don't understand why run_tests_torch are failing because it was ok before. It seems that it doesn't come from my PR.

Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

src/transformers/onnx/features.py Outdated Show resolved Hide resolved
Copy link
Member

@michaelbenayoun michaelbenayoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks great, thank!

@michaelbenayoun michaelbenayoun merged commit 1f60df8 into huggingface:master Oct 26, 2021
@chainyo chainyo deleted the add_camembert_config branch October 26, 2021 11:00
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
Add Camembert to models exportable with ONNX

Co-authored-by: Thomas.Chaigneau <thomas.chaigneau@arkea.com>
Co-authored-by: Michael Benayoun <mickbenayoun@gmail.com>
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

3 participants