Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flan-t5 documentation page #19892

Merged
merged 11 commits into from Oct 26, 2022

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

This PR adds FLAN-T5 on the documentation page - following the same approach for t5-v1.1: https://huggingface.co/docs/transformers/model_doc/t5v1.1

cc @sgugger @ydshieh @ArthurZucker

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 26, 2022

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

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 adding this!

README.md Outdated Show resolved Hide resolved
@@ -247,6 +247,8 @@
title: ERNIE
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why there are the four changes above, something to revert probably.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for spotting the nit! Should be fixed !

One can directly plug in the weights of FLAN-T5 into a T5 model, like so:

```python
>>> from transformers import T5ForConditionalGeneration
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd advertise the auto model class, since it works for any checkpoint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added more content in ffabbb1

younesbelkada and others added 4 commits October 26, 2022 15:04
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
@younesbelkada
Copy link
Contributor Author

Thank you for the feedback @sgugger ! I should have addressed the comments now

README_es.md Outdated Show resolved Hide resolved
README_ko.md Outdated Show resolved Hide resolved
README_zh-hans.md Outdated Show resolved Hide resolved
README_zh-hant.md Outdated Show resolved Hide resolved
@younesbelkada younesbelkada merged commit 7a1c68a into huggingface:main Oct 26, 2022
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Nov 1, 2022
* add `flan-t5` documentation page

* Update README.md

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* add more content

* revert `_toctree` modif

* revert `toctree` modif - 2

* Update README.md

* Revert "Update README.md"

This reverts commit 5660714.

* Update README_es.md

* Update README_zh-hans.md

* Update README_zh-hant.md

* Update README_ko.md

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Nov 3, 2022
* add `flan-t5` documentation page

* Update README.md

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* add more content

* revert `_toctree` modif

* revert `toctree` modif - 2

* Update README.md

* Revert "Update README.md"

This reverts commit 5660714.

* Update README_es.md

* Update README_zh-hans.md

* Update README_zh-hant.md

* Update README_ko.md

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
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.

None yet

3 participants