Downloads · 30 days
15
37% of all-time downloads
entity2260/pythia-70m
pythia-70m is a text generation model from entity2260. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
--- language: en datasets: - algebralinear1d ---
Downloads · 30 days
15
37% of all-time downloads
All-time downloads
41
Public
Parameters
70.4M
448 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors282 MB · 63%
From the Hugging Face model README
language: en datasets:
This is a t5-small fine-tuned version on the math_dataset/algebra_linear_1d for solving algebra 1d equations mission.
To load the model: (necessary packages: !pip install transformers sentencepiece)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("entity2260/pythia-70m")
model = AutoModelForCausalLM.from_pretrained("entity2260/pythia-70m")
You can then use this model to solve algebra 1d equations into numbers.
query = "Solve 0 = 1026*x - 2474 + 46592 for x"
input_text = f"{query} </s>"
features = tokenizer([input_text], return_tensors='pt')
model.to('cuda')
output = model.generate(input_ids=features['input_ids'].cuda(),
attention_mask=features['attention_mask'].cuda())
tokenizer.decode(output[0])
# <pad> -41</s>
Another examples: