Instructions to use AMFORGE/sam-mm-checkpoints with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AMFORGE/sam-mm-checkpoints with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AMFORGE/sam-mm-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
SAM-MM
SAM-MM is the 58.8M-parameter multimodal base of the SAM-G family, built on the bio-inspired SparseMind architecture. It couples a 30M text core with a VisionEncoder (96Γ96 frames), an AudioEncoder (log-mel), and a PhysicsCore latent world-model that predicts the next visual state. Modality embeddings are fused as a prefix to the text stream, so a single decoder reasons jointly over text, image frames, audio, and predicted dynamics. This is a base model β a multimodal continuation engine, not instruction- or reasoning-tuned. Built by AMEFORGE.
- Parameters: 58.8M Β· Footprint: 705 MB fp32
- Components: text core (30M) + VisionEncoder + AudioEncoder + PhysicsCore (GRU world-model)
- Modality tokens:
[VIS][AUD][PHYS][OCR] - Validation perplexity: 3.08 Β· Physics aux (next-frame): ~0.05
Training
Pretrained for 40k steps (best at 30k) on a streamed text corpus mixed with a synthetic multimodal curriculum: physics worlds (gravity, oscillation, bounce, two-body), OCR bitmaps, and robot/scene frames, scheduled across twelve cross-modal modes (text / vision-text / vision-physics / vision-audio / text-audio / β¦ / all). The combined objective is language-model loss plus a weighted physics next-frame auxiliary.
What the metrics mean. Validation perplexity fell from ~3.9e4 (uniform) to 3.08, with the representational "click" near step 2.6k. The physics auxiliary fell from 1.10 β ~0.05: the world-model genuinely predicts the next visual state rather than acting as decoration β the property the downstream physics-reasoning finetune relies on.
Intended use
A base to fine-tune for multimodal tasks. The downstream reasoning finetune (SAM-MM-Reasoning) turns this base into a reasoner over vision, physics, and cross-modal control.
Usage
import sentencepiece as spm
sp = spm.SentencePieceProcessor(); sp.Load("samg_mm_tokenizer.model")
# forward(ids, targets=None, frames=None, mel=None)
# frames: (B, 8, 3, 96, 96) mel: (B, 1, 64, 64)
Limitations
- Base model: emits continuations, not aligned answers or structured actions β fine-tune for end tasks.
- The multimodal curriculum is largely synthetic; audio in pretraining is a toy pseudo-mel signal, so audio is the weakest modality until trained on real spectra downstream.
- Inherits the knowledge limits of its training corpus.
Citation
@misc{sammm2026,
title = {SAM-MM: A 58M-Parameter Multimodal Base with a Latent Physics World-Model},
author = {AMEFORGE Lab},
year = {2026}
}
Evaluation results
- Validation perplexityself-reported3.080
- Physics next-frame aux lossself-reported0.050