Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a7db81c3
Commit
a7db81c3
authored
Oct 22, 2020
by
Julien Chaumond
Browse files
[model_card] t5-11b move disclaimer to top of page
cc @Narsil @patrickvonplaten
parent
f774b2e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
model_cards/t5-11b-README.md
model_cards/t5-11b-README.md
+13
-12
No files found.
model_cards/t5-11b-README.md
View file @
a7db81c3
...
...
@@ -9,7 +9,19 @@ tags:
license
:
apache-2.0
---
[
Google's T5
](
https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html
)
## Disclaimer
Due do it's immense size,
`t5-11b`
requires some special treatment.
First,
`t5-11b`
should be loaded with flag
`use_cdn`
set to
`False`
as follows:
```
python
t5
=
transformers
.
T5ForConditionalGeneration
.
from_pretrained
(
't5-11b'
,
use_cdn
=
False
)
```
Secondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.
Model parallelism has to be used here to overcome this problem as is explained in this
[
PR
](
https://github.com/huggingface/transformers/pull/3578
)
.
## [Google's T5](https://ai.googleblog.com/2020/02/exploring-transfer-learning-with-t5.html)
Pretraining Dataset:
[
C4
](
https://huggingface.co/datasets/c4
)
...
...
@@ -25,14 +37,3 @@ Transfer learning, where a model is first pre-trained on a data-rich task before

## Disclaimer
Due do it's immense size,
`t5-11b`
requires some special treatment.
First,
`t5-11b`
should be loaded with flag
`use_cdn`
set to
`False`
as follows:
```
python
t5
=
transformers
.
T5ForConditionalGeneration
.
from_pretrained
(
't5-11b'
,
use_cdn
=
False
)
```
Secondly, a single GPU will most likely not have enough memory to even load the model into memory as the weights alone amount to over 40 GB.
Model parallelism has to be used here to overcome this problem as is explained in this
[
PR
](
https://github.com/huggingface/transformers/pull/3578
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment