Skip to content

Conversation

@sgugger
Copy link
Collaborator

@sgugger sgugger commented Jun 17, 2020

This PR simplifies the installation page, adds the mention of TF/PT installation with one command only (for CPU) and adds a test that the installation was successful.

The tests mention is moved to CONTRIBUTING. The mention of the tokenization process for OpenAI GPT is moved to that model doc page.

It also adds the contributing guide to the documentation with a simlink (add to fix a few links to make it work).

@codecov
Copy link

codecov bot commented Jun 17, 2020

Codecov Report

Merging #5084 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5084      +/-   ##
==========================================
+ Coverage   77.24%   77.26%   +0.02%     
==========================================
  Files         133      133              
  Lines       22146    22146              
==========================================
+ Hits        17107    17112       +5     
+ Misses       5039     5034       -5     
Impacted Files Coverage Δ
src/transformers/modeling_utils.py 90.61% <0.00%> (-0.12%) ⬇️
src/transformers/file_utils.py 75.40% <0.00%> (+0.40%) ⬆️
src/transformers/modeling_tf_utils.py 87.42% <0.00%> (+0.77%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7291ea0...e9e1ea6. Read the comment docs.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

LGTM

docs/README.md Outdated
Comment on lines 45 to 51
Make sure that there is a symlink from the `example` file (in /examples) inside the source folder. Run the following
command to generate it:
Make sure that there is a symlink from the `example` file (in /examples) and from the `CONTRIBUTING` guide (in the
root folder) inside the docs source folder. You shouldn't need to, but in case they are missing, run the following
commands to generate them:

```bash
ln -s ../../examples/README.md examples.md
ln -s ../../CONTRIBUTING.md contributing.md
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if these are necessary since the links are committed to the library... Just pulling the repo should automatically have the link files, shouldn't it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, unless a person tries on windows (symlinks would need to be recreated) but since there are make commands after that don't work on Windows, I don't think we care too much.

Copy link
Member

Choose a reason for hiding this comment

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

Right, and I don't think ln is a correct command to make links under Windows?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, that would mklink and I think the order is reversed. I deleted this part for now.

@sgugger sgugger merged commit 204ebc2 into huggingface:master Jun 17, 2020
@sgugger sgugger deleted the installation branch June 17, 2020 18:01
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.

2 participants