You need to sign in or sign up before continuing.
Unverified Commit 8010fda9 authored by Lysandre Debut's avatar Lysandre Debut Committed by GitHub
Browse files

Removes images to put them in a dataset (#14781)

* First try

* Update instructions
parent 459677ae
...@@ -277,7 +277,9 @@ Follow these steps to start contributing: ...@@ -277,7 +277,9 @@ Follow these steps to start contributing:
example. example.
7. Due to the rapidly growing repository, it is important to make sure that no files that would significantly weigh down the repository are added. This includes images, videos and other non-text files. We prefer to leverage a hf.co hosted `dataset` like 7. Due to the rapidly growing repository, it is important to make sure that no files that would significantly weigh down the repository are added. This includes images, videos and other non-text files. We prefer to leverage a hf.co hosted `dataset` like
the ones hosted on [`hf-internal-testing`](https://huggingface.co/hf-internal-testing) in which to place these files and reference the ones hosted on [`hf-internal-testing`](https://huggingface.co/hf-internal-testing) in which to place these files and reference
them by URL. them by URL. We recommend putting them in the following dataset: [huggingface/documentation-images](https://huggingface.co/datasets/huggingface/documentation-images).
If an external contribution, feel free to add the images to your PR and ask a Hugging Face member to migrate your images
to this dataset.
See more about the checks run on a pull request in our [PR guide](pr_checks) See more about the checks run on a pull request in our [PR guide](pr_checks)
......
...@@ -16,7 +16,7 @@ limitations under the License. ...@@ -16,7 +16,7 @@ limitations under the License.
<p align="center"> <p align="center">
<br> <br>
<img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/transformers_logo_name.png" width="400"/> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_logo_name.png" width="400"/>
<br> <br>
<p> <p>
<p align="center"> <p align="center">
...@@ -52,7 +52,7 @@ limitations under the License. ...@@ -52,7 +52,7 @@ limitations under the License.
</h3> </h3>
<h3 align="center"> <h3 align="center">
<a href="https://hf.co/course"><img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/course_banner.png"></a> <a href="https://hf.co/course"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/course_banner.png"></a>
</h3> </h3>
🤗 Transformers provides thousands of pretrained models to perform tasks on different modalities such as text, vision, and audio. 🤗 Transformers provides thousands of pretrained models to perform tasks on different modalities such as text, vision, and audio.
......
...@@ -16,7 +16,7 @@ limitations under the License. ...@@ -16,7 +16,7 @@ limitations under the License.
<p align="center"> <p align="center">
<br> <br>
<img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/transformers_logo_name.png" width="400"/> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_logo_name.png" width="400"/>
<br> <br>
<p> <p>
<p align="center"> <p align="center">
...@@ -52,7 +52,7 @@ limitations under the License. ...@@ -52,7 +52,7 @@ limitations under the License.
</h3> </h3>
<h3 align="center"> <h3 align="center">
<a href="https://hf.co/course"><img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/course_banner.png"></a> <a href="https://hf.co/course"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/course_banner.png"></a>
</h3> </h3>
🤗 Transformers는 분류, 정보 추출, 질문 답변, 요약, 번역, 문장 생성 등을 100개 이상의 언어로 수행할 수 있는 수천개의 사전학습된 모델을 제공합니다. 우리의 목표는 모두가 최첨단의 NLP 기술을 쉽게 사용하는 것입니다. 🤗 Transformers는 분류, 정보 추출, 질문 답변, 요약, 번역, 문장 생성 등을 100개 이상의 언어로 수행할 수 있는 수천개의 사전학습된 모델을 제공합니다. 우리의 목표는 모두가 최첨단의 NLP 기술을 쉽게 사용하는 것입니다.
......
...@@ -41,7 +41,7 @@ checkpoint: 检查点 ...@@ -41,7 +41,7 @@ checkpoint: 检查点
<p align="center"> <p align="center">
<br> <br>
<img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/transformers_logo_name.png" width="400"/> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_logo_name.png" width="400"/>
<br> <br>
<p> <p>
<p align="center"> <p align="center">
...@@ -77,7 +77,7 @@ checkpoint: 检查点 ...@@ -77,7 +77,7 @@ checkpoint: 检查点
</h3> </h3>
<h3 align="center"> <h3 align="center">
<a href="https://hf.co/course"><img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/course_banner.png"></a> <a href="https://hf.co/course"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/course_banner.png"></a>
</h3> </h3>
🤗 Transformers 提供了数以千计的预训练模型,支持 100 多种语言的文本分类、信息抽取、问答、摘要、翻译、文本生成。它的宗旨让最先进的 NLP 技术人人易用。 🤗 Transformers 提供了数以千计的预训练模型,支持 100 多种语言的文本分类、信息抽取、问答、摘要、翻译、文本生成。它的宗旨让最先进的 NLP 技术人人易用。
......
...@@ -53,7 +53,7 @@ user: 使用者 ...@@ -53,7 +53,7 @@ user: 使用者
<p align="center"> <p align="center">
<br> <br>
<img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/transformers_logo_name.png" width="400"/> <img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_logo_name.png" width="400"/>
<br> <br>
<p> <p>
<p align="center"> <p align="center">
...@@ -89,7 +89,7 @@ user: 使用者 ...@@ -89,7 +89,7 @@ user: 使用者
</h3> </h3>
<h3 align="center"> <h3 align="center">
<a href="https://hf.co/course"><img src="https://raw.githubusercontent.com/huggingface/transformers/master/docs/source/imgs/course_banner.png"></a> <a href="https://hf.co/course"><img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/course_banner.png"></a>
</h3> </h3>
🤗 Transformers 提供了數以千計的預訓練模型,支援 100 多種語言的文本分類、資訊擷取、問答、摘要、翻譯、文本生成。它的宗旨是讓最先進的 NLP 技術人人易用。 🤗 Transformers 提供了數以千計的預訓練模型,支援 100 多種語言的文本分類、資訊擷取、問答、摘要、翻譯、文本生成。它的宗旨是讓最先進的 NLP 技術人人易用。
......
...@@ -324,3 +324,11 @@ So using this particular example's output -- if your current section's header us ...@@ -324,3 +324,11 @@ So using this particular example's output -- if your current section's header us
If you needed to add yet another sub-level, then pick a character that is not used already. That is you must pick a character that is not in the output of that script. If you needed to add yet another sub-level, then pick a character that is not used already. That is you must pick a character that is not in the output of that script.
Here is the full list of characters that can be used in this context: `= - ` : ' " ~ ^ _ * + # < >` Here is the full list of characters that can be used in this context: `= - ` : ' " ~ ^ _ * + # < >`
#### Adding an image
Due to the rapidly growing repository, it is important to make sure that no files that would significantly weigh down the repository are added. This includes images, videos and other non-text files. We prefer to leverage a hf.co hosted `dataset` like
the ones hosted on [`hf-internal-testing`](https://huggingface.co/hf-internal-testing) in which to place these files and reference
them by URL. We recommend putting them in the following dataset: [huggingface/documentation-images](https://huggingface.co/datasets/huggingface/documentation-images).
If an external contribution, feel free to add the images to your PR and ask a Hugging Face member to migrate your images
to this dataset.
...@@ -72,7 +72,7 @@ call the model to be added to 🤗 Transformers ``BrandNewBert``. ...@@ -72,7 +72,7 @@ call the model to be added to 🤗 Transformers ``BrandNewBert``.
Let's take a look: Let's take a look:
.. image:: /imgs/transformers_overview.png .. image:: https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers_overview.png
As you can see, we do make use of inheritance in 🤗 Transformers, but we keep the level of abstraction to an absolute As you can see, we do make use of inheritance in 🤗 Transformers, but we keep the level of abstraction to an absolute
minimum. There are never more than two levels of abstraction for any model in the library. :obj:`BrandNewBertModel` minimum. There are never more than two levels of abstraction for any model in the library. :obj:`BrandNewBertModel`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment