Instructions to use allenai/DREAM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use allenai/DREAM with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("allenai/DREAM") model = AutoModelForSeq2SeqLM.from_pretrained("allenai/DREAM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
db17066
1
Parent(s): 55a2adf
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,7 +31,7 @@ We invite you to try out DREAM 💭 for your own application!
|
|
| 31 |
We provide a quick example of how you can try out DREAM with just a few lines of code:
|
| 32 |
```
|
| 33 |
>>> from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 34 |
-
>>> model = AutoModelForSeq2SeqLM.from_pretrained("
|
| 35 |
|
| 36 |
>>> tokenizer = AutoTokenizer.from_pretrained("t5-11b")
|
| 37 |
>>> input_string = "$answer$ ; $question$ = [SITUATION] hitting someones car in the drive thru on purpose. [QUERY] rot"
|
|
|
|
| 31 |
We provide a quick example of how you can try out DREAM with just a few lines of code:
|
| 32 |
```
|
| 33 |
>>> from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
| 34 |
+
>>> model = AutoModelForSeq2SeqLM.from_pretrained("allenai/DREAM")
|
| 35 |
|
| 36 |
>>> tokenizer = AutoTokenizer.from_pretrained("t5-11b")
|
| 37 |
>>> input_string = "$answer$ ; $question$ = [SITUATION] hitting someones car in the drive thru on purpose. [QUERY] rot"
|