jmeadows17
commited on
Commit
·
c3856a0
1
Parent(s):
e780719
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1 |
---
|
2 |
license: openrail
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: openrail
|
3 |
---
|
4 |
+
|
5 |
+
---
|
6 |
+
license: openrail
|
7 |
+
pipeline_tag: text-generation
|
8 |
+
---
|
9 |
+
|
10 |
+
**Overview**
|
11 |
+
|
12 |
+
MathT5-base is a version of _T5-base_ (not FLAN-T5) that is fine-tuned for 25 epochs on 15K (LaTeX) synthetic mathematical derivations (containing 5 - 9 equations), that were generated using a symbolic solver (SymPy).
|
13 |
+
|
14 |
+
|
15 |
+
**Example prompt:**
|
16 |
+
|
17 |
+
```prompt = "Given \\cos{(q)} = \\theta{(q)},
|
18 |
+
then derive - \\sin{(q)} = \\frac{d}{d q} \\theta{(q)},
|
19 |
+
then obtain (- \\sin{(q)})^{q} (\\frac{d}{d q} \\cos{(q)})^{q} = (- \\sin{(q)})^{2 q}"```
|
20 |
+
|
21 |
+
**To use MathT5 easily:**
|
22 |
+
|
23 |
+
1. Download ```MathT5.py``` to your working directory.
|
24 |
+
2. ```from MathT5 import load_model, inference```
|
25 |
+
3. ```tokenizer, model = load_model("jmeadows17/MathT5-base")```
|
26 |
+
4. ```inference(prompt, tokenizer, model)```
|