Instructions to use jmeadows17/MathT5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jmeadows17/MathT5-base with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("jmeadows17/MathT5-base") model = AutoModelForSeq2SeqLM.from_pretrained("jmeadows17/MathT5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
1a27ad3
1
Parent(s): 4c8dbc2
Update README.md
Browse files
README.md
CHANGED
|
@@ -25,4 +25,6 @@ Output derivations are equations separated by "and".
|
|
| 25 |
1. Download ```MathT5.py``` to your working directory.
|
| 26 |
2. ```from MathT5 import load_model, inference```
|
| 27 |
3. ```tokenizer, model = load_model("jmeadows17/MathT5-base")```
|
| 28 |
-
4. ```inference(prompt, tokenizer, model)```
|
|
|
|
|
|
|
|
|
| 25 |
1. Download ```MathT5.py``` to your working directory.
|
| 26 |
2. ```from MathT5 import load_model, inference```
|
| 27 |
3. ```tokenizer, model = load_model("jmeadows17/MathT5-base")```
|
| 28 |
+
4. ```inference(prompt, tokenizer, model)```
|
| 29 |
+
|
| 30 |
+
```MathT5.pretty_print(text, prompt=True)``` makes prompts and outputs (```prompt=False```) easier to read.
|