Fix the typos and grammar mistakes in CONTRIBUTING.md. (#27193)
Fix the typos and grammar mistakes in CONTRIBUTING.md
This commit is contained in:
@@ -40,8 +40,8 @@ There are several ways you can contribute to 🤗 Transformers:
|
|||||||
|
|
||||||
If you don't know where to start, there is a special [Good First
|
If you don't know where to start, there is a special [Good First
|
||||||
Issue](https://github.com/huggingface/transformers/contribute) listing. It will give you a list of
|
Issue](https://github.com/huggingface/transformers/contribute) listing. It will give you a list of
|
||||||
open issues that are beginner-friendly and help you start contributing to open-source. Just comment in the issue that you'd like to work
|
open issues that are beginner-friendly and help you start contributing to open-source. Just comment on the issue that you'd like to work
|
||||||
on it.
|
on.
|
||||||
|
|
||||||
For something slightly more challenging, you can also take a look at the [Good Second Issue](https://github.com/huggingface/transformers/labels/Good%20Second%20Issue) list. In general though, if you feel like you know what you're doing, go for it and we'll help you get there! 🚀
|
For something slightly more challenging, you can also take a look at the [Good Second Issue](https://github.com/huggingface/transformers/labels/Good%20Second%20Issue) list. In general though, if you feel like you know what you're doing, go for it and we'll help you get there! 🚀
|
||||||
|
|
||||||
@@ -62,7 +62,7 @@ feedback.
|
|||||||
The 🤗 Transformers library is robust and reliable thanks to users who report the problems they encounter.
|
The 🤗 Transformers library is robust and reliable thanks to users who report the problems they encounter.
|
||||||
|
|
||||||
Before you report an issue, we would really appreciate it if you could **make sure the bug was not
|
Before you report an issue, we would really appreciate it if you could **make sure the bug was not
|
||||||
already reported** (use the search bar on GitHub under Issues). Your issue should also be related to bugs in the library itself, and not your code. If you're unsure whether the bug is in your code or the library, please ask on the [forum](https://discuss.huggingface.co/) first. This helps us respond quicker to fixing issues related to the library versus general questions.
|
already reported** (use the search bar on GitHub under Issues). Your issue should also be related to bugs in the library itself, and not your code. If you're unsure whether the bug is in your code or the library, please ask in the [forum](https://discuss.huggingface.co/) first. This helps us respond quicker to fixing issues related to the library versus general questions.
|
||||||
|
|
||||||
Once you've confirmed the bug hasn't already been reported, please include the following information in your issue so we can quickly resolve it:
|
Once you've confirmed the bug hasn't already been reported, please include the following information in your issue so we can quickly resolve it:
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ We have added [templates](https://github.com/huggingface/transformers/tree/main/
|
|||||||
|
|
||||||
New models are constantly released and if you want to implement a new model, please provide the following information
|
New models are constantly released and if you want to implement a new model, please provide the following information
|
||||||
|
|
||||||
* A short description of the model and link to the paper.
|
* A short description of the model and a link to the paper.
|
||||||
* Link to the implementation if it is open-sourced.
|
* Link to the implementation if it is open-sourced.
|
||||||
* Link to the model weights if they are available.
|
* Link to the model weights if they are available.
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ You'll need **[Python 3.8]((https://github.com/huggingface/transformers/blob/mai
|
|||||||
|
|
||||||
which should be enough for most use cases.
|
which should be enough for most use cases.
|
||||||
|
|
||||||
5. Develop the features on your branch.
|
5. Develop the features in your branch.
|
||||||
|
|
||||||
As you work on your code, you should make sure the test suite
|
As you work on your code, you should make sure the test suite
|
||||||
passes. Run the tests impacted by your changes like this:
|
passes. Run the tests impacted by your changes like this:
|
||||||
@@ -208,7 +208,7 @@ You'll need **[Python 3.8]((https://github.com/huggingface/transformers/blob/mai
|
|||||||
make quality
|
make quality
|
||||||
```
|
```
|
||||||
|
|
||||||
Finally, we have a lot of scripts to make sure we didn't forget to update
|
Finally, we have a lot of scripts to make sure we don't forget to update
|
||||||
some files when adding a new model. You can run these scripts with:
|
some files when adding a new model. You can run these scripts with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -218,7 +218,7 @@ You'll need **[Python 3.8]((https://github.com/huggingface/transformers/blob/mai
|
|||||||
To learn more about those checks and how to fix any issues with them, check out the
|
To learn more about those checks and how to fix any issues with them, check out the
|
||||||
[Checks on a Pull Request](https://huggingface.co/docs/transformers/pr_checks) guide.
|
[Checks on a Pull Request](https://huggingface.co/docs/transformers/pr_checks) guide.
|
||||||
|
|
||||||
If you're modifying documents under `docs/source` directory, make sure the documentation can still be built. This check will also run in the CI when you open a pull request. To run a local check
|
If you're modifying documents under the `docs/source` directory, make sure the documentation can still be built. This check will also run in the CI when you open a pull request. To run a local check
|
||||||
make sure you install the documentation builder:
|
make sure you install the documentation builder:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -234,7 +234,7 @@ You'll need **[Python 3.8]((https://github.com/huggingface/transformers/blob/mai
|
|||||||
This will build the documentation in the `~/tmp/test-build` folder where you can inspect the generated
|
This will build the documentation in the `~/tmp/test-build` folder where you can inspect the generated
|
||||||
Markdown files with your favorite editor. You can also preview the docs on GitHub when you open a pull request.
|
Markdown files with your favorite editor. You can also preview the docs on GitHub when you open a pull request.
|
||||||
|
|
||||||
Once you're happy with your changes, add changed files with `git add` and
|
Once you're happy with your changes, add the changed files with `git add` and
|
||||||
record your changes locally with `git commit`:
|
record your changes locally with `git commit`:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -261,7 +261,7 @@ You'll need **[Python 3.8]((https://github.com/huggingface/transformers/blob/mai
|
|||||||
|
|
||||||
If you've already opened a pull request, you'll need to force push with the `--force` flag. Otherwise, if the pull request hasn't been opened yet, you can just push your changes normally.
|
If you've already opened a pull request, you'll need to force push with the `--force` flag. Otherwise, if the pull request hasn't been opened yet, you can just push your changes normally.
|
||||||
|
|
||||||
6. Now you can go to your fork of the repository on GitHub and click on **Pull request** to open a pull request. Make sure you tick off all the boxes in our [checklist](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md/#pull-request-checklist) below. When you're ready, you can send your changes to the project maintainers for review.
|
6. Now you can go to your fork of the repository on GitHub and click on **Pull Request** to open a pull request. Make sure you tick off all the boxes on our [checklist](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md/#pull-request-checklist) below. When you're ready, you can send your changes to the project maintainers for review.
|
||||||
|
|
||||||
7. It's ok if maintainers request changes, it happens to our core contributors
|
7. It's ok if maintainers request changes, it happens to our core contributors
|
||||||
too! So everyone can see the changes in the pull request, work in your local
|
too! So everyone can see the changes in the pull request, work in your local
|
||||||
|
|||||||
Reference in New Issue
Block a user