Skip to content

Add Camembert to models exportable with ONNX#14059

Merged
michaelbenayoun merged 11 commits into
huggingface:masterfrom
chainyo:add_camembert_config
Oct 26, 2021
Merged

Add Camembert to models exportable with ONNX#14059
michaelbenayoun merged 11 commits into
huggingface:masterfrom
chainyo:add_camembert_config

Conversation

@chainyo

@chainyo chainyo commented Oct 19, 2021

Copy link
Copy Markdown
Contributor

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

@sgugger sgugger left a comment

Copy link
Copy Markdown
Collaborator

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?

Comment thread regression/emissions.csv Outdated
@@ -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
Copy Markdown
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.

Comment thread test/emissions.csv Outdated
@@ -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
Copy Markdown
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
Copy Markdown
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

chainyo commented Oct 26, 2021

Copy link
Copy Markdown
Contributor Author

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.

@michaelbenayoun michaelbenayoun left a comment

Copy link
Copy Markdown
Member

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!

Comment thread src/transformers/onnx/features.py Outdated
Comment thread src/transformers/models/camembert/configuration_camembert.py Outdated

@michaelbenayoun michaelbenayoun left a comment

Copy link
Copy Markdown
Member

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
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.

3 participants