Foundation Model · Reasoning Variant · 2026
SAM-G-Reasoning
A reasoning-augmented variant of SAM-G. Structured multi-step inference at 30.3M parameters — logic, planning, and procedural chains, fully on-device.
Overview
Structured reasoning at the edge
SAM-G-Reasoning extends the SAM-G architecture with explicit multi-step reasoning capabilities. Where the base model excels at action generation and structured output, the reasoning variant adds procedural chain inference — enabling it to handle logic, planning sequences, and unit conversions without external tools or cloud APIs.
The model achieves 100% exact match on logic (modus ponens, modus tollens, chained syllogisms) and multi-step planning tasks. These results hold at 30.3M parameters — a fraction of the size of comparable open models that achieve lower scores.
Like all Ameforge models, SAM-G-Reasoning is designed for offline, on-device deployment. It runs without internet connectivity, without cloud inference, and without the energy overhead of large-scale models.
Benchmark
Reasoning evaluation by domain
| Task family | Type | Exact match |
|---|---|---|
| Logic (ponens/tollens/chains) | Procedural | 100% |
| Plan chain (multi-step actions) | Procedural | 100% |
| Conversion (unit chains) | Procedural | 100% |
| Sequence (next term) | Procedural | 100% |
| Date/time (clock/calendar) | Procedural | 92% |
| Compare (max/min) | Procedural | 92% |
| State tracking (device toggles) | Working memory | 83% |
| Parity/digits | Mixed | 58% |
| Count/filter | Calculation | 67% |
| Sort list | Calculation | 50% |
| Word problem | Calculation | 50% |
| Arithmetic chain | Calculation | 42% |
| Aggregate | 77.8% | |
Comparison
Efficiency vs. comparable models
| Model | Parameters | Aggregate exact match |
|---|---|---|
| SAM-G-ReasoningOurs | 30.3M | 77.8% |
| Pythia-70M | 70M | ~12% |
| SmolLM2-360M | 362M | ~28% |
| Qwen2.5-0.5B | 494M | ~34% |
| Qwen2.5-1.5B | 889M | ~41% |
Aggregate exact match across all 12 reasoning task families. Baseline figures are approximate.
Capabilities
What SAM-G-Reasoning does
Logical inference
Modus ponens, modus tollens, and chained syllogisms. The model handles formal logic structures with 100% exact match, making it suitable for rule-based decision systems.
Multi-step planning
Plan chain tasks requiring sequences of dependent actions. The model resolves action dependencies and outputs ordered, structured plans without external orchestration.
Procedural chains
Unit conversions, date/time calculations, and sequence prediction. These procedural tasks require step-by-step computation that the model handles natively.
State tracking
Device toggle sequences and working memory tasks. The model maintains intermediate state across reasoning steps, enabling it to track changes over multi-step inputs.
Available now
Download SAM-G-Reasoning
Available on HuggingFace. fp32 checkpoint, 121MB. No API key required.
HuggingFace — AMFORGE/SAM-G-Reasoning