Views
No views yet
MathT5.py.from MathT5 import load_model, inferencetokenizer, model = load_model("jmeadows17/MathT5-large")inference(prompt, tokenizer, model)MathT5.pretty_print(text, prompt=True) makes prompts and outputs (prompt=False) easier to read.prompt = "Given \\cos{(q)} = \\theta{(q)}, then derive - \\sin{(q)} = \\frac{d}{d q} \\theta{(q)}, then obtain (- \\sin{(q)})^{q} (\\frac{d}{d q} \\cos{(q)})^{q} = (- \\sin{(q)})^{2 q}""jmeadows17/MathT5-base" for the lightweight version.