How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="timo13113/calc-gpt-2")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("timo13113/calc-gpt-2")
model = AutoModelForCausalLM.from_pretrained("timo13113/calc-gpt-2")
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

A toy model with (seemingly) 100% accuracy on addition on 1-digit to 5-digit numbers.

Usage: <number>+<number>; and halt generation at $. The answer should be placed between = and $.
Examples:
99998+2;8200,9010,9010,9010,9010,0011,000=100000$, and 99998+2 is, indeed, 100000
45856+25687;6703,5814,8615,5511,4217,000=71543$, and 45856+25687 is equal to 71543


pipeline_tag: text-generation

Downloads last month
67
Safetensors
Model size
22.1M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support