Instructions to use AMFORGE/sam-mm-reasoning-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AMFORGE/sam-mm-reasoning-checkpoints with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AMFORGE/sam-mm-reasoning-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
SAM-MM-Reasoning
SAM-MM-Reasoning is the 58.8M-parameter multimodal reasoner of the SAM-G
family, fine-tuned from SAM-MM on visual,
physics, and cross-modal reasoning traces. Given image frames and a question, it
emits either a step-by-step [CHAT] trace or a structured [ACTION]
{domain,op,params} control action. Built by AMEFORGE.
- Parameters: 58.8M Β· Base: SAM-MM (with PhysicsCore world-model)
- Fine-tuning: prompt-masked SFT (loss on the reasoning span only), cosine 8e-5, 6k steps, best at 1.5k
- Aggregate exact match: 73.6% (held-out, disjoint seed)
- Lineage: SAM-MM β SAM-MM-Reasoning
Results (held-out)
| Family | Modality | Format | Exact % |
|---|---|---|---|
| p_identify (governing dynamic) | vision+physics | [CHAT] |
100 |
| p_predict (physical outcome) | vision+physics | [CHAT] |
100 |
| v_motion (direction of motion) | vision | [CHAT] |
100 |
| v_ocr (read a number) | vision | [CHAT] |
100 |
| x_sensor (read sensor β control) | vision | [ACTION] |
42 |
| x_robot (frame+instruction β action) | vision | [ACTION] |
0 |
| Aggregate | 73.6 |
What it is good at β and what it is not
Perception and physics reasoning are saturated. Reading numbers, judging motion direction, naming the governing dynamic (gravity / oscillation / collision), and predicting physical outcomes all reach 100%. The physics families in particular confirm that the base PhysicsCore world-model (whose next-frame auxiliary converged in pretraining) carries real dynamics, not decoration β at 58M the model reasons correctly about how scenes evolve.
x_robot scores 0 by construction, not by failure. Its target carries
continuous speed and angle values that are not encoded in the input frame,
so exact match is unachievable β a dataset-design gap to be fixed in a v2 with
frame-derivable targets. x_sensor (42%) works better because its decision is
determined by a number that is actually legible in the frame.
Usage
import sentencepiece as spm
sp = spm.SentencePieceProcessor(); sp.Load("samg_mm_tokenizer.model")
# physics: feed 8 frames as `frames`
# "[VIS] [PHYS] what dynamic governs this motion? [CHAT]" -> "... Answer: gravity"
# "[VIS] which way does the object move? [CHAT]" -> "... Answer: right"
# forward(ids, targets=None, frames=(B,8,3,96,96), mel=None)
Limitations
- Exact-match scoring penalizes any target not fully determined by the input
(see
x_robot). - Synthetic evaluation distribution with a disjoint seed; coverage reflects the generators, not arbitrary real scenes.
- Audio is not a reasoning modality here; see SAM-MM-Audio-Reasoning for the audio-augmented variant.
- Not a general assistant; it reasons and emits structured actions, and inherits the base model's knowledge limits.
Citation
@misc{sammmreasoning2026,
title = {SAM-MM-Reasoning: Vision and Physics Reasoning at 58M Parameters},
author = {AMEFORGE Lab},
year = {2026}
}
Space using AMFORGE/sam-mm-reasoning-checkpoints 1
Evaluation results
- Exact match, aggregate (%)self-reported73.600