File size: 709 Bytes
f6df285
cc0be50
331dbbf
 
f6df285
 
db6855d
f6df285
cc0be50
331dbbf
 
f6df285
 
cc0be50
331dbbf
cc0be50
 
 
 
331dbbf
cc0be50
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
title: Arithmetic-SLM
emoji: 🧮
colorFrom: green
colorTo: pink
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
short_description: Tiny 31.7M SLM that solves arithmetic expressions
python_version: "3.12"
startup_duration_timeout: 30m
---

# Arithmetic-SLM

An interactive demo for [WhirlwindAI/Arithmetic-SLM](https://huggingface.co/WhirlwindAI/Arithmetic-SLM),
a tiny (31.7M parameter) specialized language model that completes arithmetic
expressions token by token. It handles operator precedence, parentheses, and
decimals.

Inference is ported 1:1 from the model repo's `inference.py` reference
implementation (custom manual sampling loop with the pure-torch attention
backend), running on ZeroGPU.