Update README.md
Browse files
README.md
CHANGED
|
@@ -68,7 +68,7 @@ tags:
|
|
| 68 |
datasets:
|
| 69 |
- svakulenk0/qrecc
|
| 70 |
- taskmaster2
|
| 71 |
-
- djaym7/wiki_dialog
|
| 72 |
- deepmind/code_contests
|
| 73 |
- lambada
|
| 74 |
- gsm8k
|
|
@@ -77,6 +77,7 @@ datasets:
|
|
| 77 |
- quasc
|
| 78 |
- qed
|
| 79 |
|
|
|
|
| 80 |
license: apache-2.0
|
| 81 |
---
|
| 82 |
|
|
@@ -309,30 +310,4 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 309 |
|
| 310 |
# Model Card Authors
|
| 311 |
|
| 312 |
-
This model card was written by the team at Hugging Face.
|
| 313 |
-
|
| 314 |
-
# How to Get Started with the Model
|
| 315 |
-
|
| 316 |
-
Use the code below to get started with the model.
|
| 317 |
-
|
| 318 |
-
<details>
|
| 319 |
-
<summary> Click to expand </summary>
|
| 320 |
-
|
| 321 |
-
```python
|
| 322 |
-
from transformers import T5Tokenizer, T5Model
|
| 323 |
-
|
| 324 |
-
tokenizer = T5Tokenizer.from_pretrained("t5-base")
|
| 325 |
-
model = T5Model.from_pretrained("t5-base")
|
| 326 |
-
|
| 327 |
-
input_ids = tokenizer(
|
| 328 |
-
"Studies have been shown that owning a dog is good for you", return_tensors="pt"
|
| 329 |
-
).input_ids # Batch size 1
|
| 330 |
-
decoder_input_ids = tokenizer("Studies show that", return_tensors="pt").input_ids # Batch size 1
|
| 331 |
-
|
| 332 |
-
# forward pass
|
| 333 |
-
outputs = model(input_ids=input_ids, decoder_input_ids=decoder_input_ids)
|
| 334 |
-
last_hidden_states = outputs.last_hidden_state
|
| 335 |
-
```
|
| 336 |
-
|
| 337 |
-
See the [Hugging Face T5](https://huggingface.co/docs/transformers/model_doc/t5#transformers.T5Model) docs and a [Colab Notebook](https://colab.research.google.com/github/google-research/text-to-text-transfer-transformer/blob/main/notebooks/t5-trivia.ipynb) created by the model developers for more examples.
|
| 338 |
-
</details>
|
|
|
|
| 68 |
datasets:
|
| 69 |
- svakulenk0/qrecc
|
| 70 |
- taskmaster2
|
| 71 |
+
- djaym7/wiki_dialog
|
| 72 |
- deepmind/code_contests
|
| 73 |
- lambada
|
| 74 |
- gsm8k
|
|
|
|
| 77 |
- quasc
|
| 78 |
- qed
|
| 79 |
|
| 80 |
+
|
| 81 |
license: apache-2.0
|
| 82 |
---
|
| 83 |
|
|
|
|
| 310 |
|
| 311 |
# Model Card Authors
|
| 312 |
|
| 313 |
+
This model card was written by the team at Hugging Face.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|