KEMBAR78
Make the sacremoses dependency optional by LysandreJik · Pull Request #17049 · huggingface/transformers · GitHub
Skip to content

Conversation

@LysandreJik
Copy link
Member

Sacremoses is currently installed by default when installing transformers, but it should not be needed. This is an artifact of the past, and we have since introduced optional dependencies, which applies perfectly to this situation.

@LysandreJik LysandreJik requested a review from sgugger May 2, 2022 16:36
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 taking care of this!

deps["pyyaml"], # used for the model cards metadata
deps["regex"], # for OpenAI GPT
deps["requests"], # for downloading models over HTTPS
deps["sacremoses"], # for XLM
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice!

@LysandreJik LysandreJik merged commit 30ca529 into main May 2, 2022
@LysandreJik LysandreJik deleted the sacremoses-optional branch May 2, 2022 16:47
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 2, 2022

The documentation is not available anymore as the PR was closed or merged.

stevhliu pushed a commit to stevhliu/transformers that referenced this pull request May 3, 2022
elusenji pushed a commit to elusenji/transformers that referenced this pull request Jun 12, 2022
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