Text Classification
Transformers
Safetensors
English
qwen3_5
image-text-to-text
decision-model
classification
calibration
routing
guardrails
vision
multimodal
baseten
Run this model with HF Jobs
Run baselabs/mammoth-1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/baselabs/mammoth-1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/baselabs/mammoth-1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use baselabs/mammoth-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use baselabs/mammoth-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="baselabs/mammoth-1")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("baselabs/mammoth-1") model = AutoModelForMultimodalLM.from_pretrained("baselabs/mammoth-1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1234567891011---license: otherlicense_name: mitbase_model: Qwen/Qwen3.5-27Btags: [decision-model]---# mammoth-1A typed decision model: a full fine-tune of Qwen/Qwen3.5-27B that answers every question of a request with a probability peroption from one shared-prefix prefill, without generating text.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141---license: mitlibrary_name: transformersbase_model: Qwen/Qwen3.5-27Bpipeline_tag: text-classificationlanguage:- entags:- decision-model- classification- calibration- routing- guardrails- baseten---<div align="center"><imgsrc="https://huggingface.co/baselabs/mammoth-1/resolve/main/assets/banner.png"alt="Baseten mammoth-1 decision model"style="width: 100%; max-width: 100%; height: auto; display: inline-block; margin-bottom: 0.5em; margin-top: 0.5em;"/><div style="display: flex; justify-content: center; gap: 0.5em; margin-bottom: 1em;"><a href="https://www.baseten.co/library/mammoth-1/"><strong>Try on Baseten</strong></a> •<a href="https://labs.baseten.co/articles/mammoth-1-and-elephant-1-frontier-decision-models"><strong>Technical report</strong></a> •<a href="https://www.baseten.co/blog/the-best-decision-models-in-the-world-mammoth-1-and-elephant-1/"><strong>Blog</strong></a></div></div># mammoth-1mammoth-1 is a 27B parameter **decision model** post-trained from [Qwen3.5-27B](https://huggingface.co/Qwen/Qwen3.5-27B) by Base Labs at Baseten.Provide the model a state and a set of questions and it will return a calibrated probability for every option,answering all questions from **one shared-prefix prefill**. On tested benchmarks:- **#1 of 208 models on the Jev Decision Index 0.4**: 71.24, ahead of Perplexity Decider v1.2 (69.42), Jev 1.14 (+9.0) and Cloudflare Clef (+15.5).- **#1 on a replica of the Artificial Analysis Decision Index**: 65.9, ahead of d1-ultra (65).For quick, cheaper decisions, see the 9B sibling [elephant-1](https://huggingface.co/baselabs/elephant-1).## 🗒️ Model Details| Model | Parameters | Description ||---|---|---|| [Qwen3.5-27B](https://huggingface.co/Qwen/Qwen3.5-27B) | 27B | General-purpose base model || **[mammoth-1](https://huggingface.co/baselabs/mammoth-1)** | 27B | Post-trained for single-pass, calibrated decisions || [elephant-1](https://huggingface.co/baselabs/elephant-1) | 9B | Smaller sibling, fastest decisions |- **Training**: full fine-tune, text only (we freeze the vision encoder)- **Attention**: block-bidirectional mask on full-attention layers.- **Max sequence length**: 16,384 tokens## 🏃 How to use### Baseten Model APIsmammoth-1 is free for one week on [Baseten Model APIs](https://www.baseten.co/library/mammoth-1/), with zero data retention on by default. The free week ends 10/27/26 at 11:59 PM PT.### Self-hosted`setup.sh` installs the pinned serving runtime (OneJev + `serve.patch`). It needs one CUDA GPU and the `pytorch/pytorch:2.8.0-cuda12.8-cudnn9-devel` image.```bashhf download baselabs/mammoth-1 --local-dir mammoth-1 && bash mammoth-1/setup.sh``````pythonfrom qev.engine import DecisionEnginefrom qev.schema import SystemOneRequestengine = DecisionEngine("baselabs/mammoth-1", device="cuda:0")questions = {"refund": {"type": "noul", "instructions": "Is the customer asking for a refund?"},"team": {"type": "choice","instructions": "Which team should handle this?","criteria": {"billing": "Charges, refunds, invoices","technical": "App or site faults","fraud": "Suspected unauthorised use"},},"urgency": {"type": "score","instructions": "How urgent is this?","criteria": ["Can wait", "Today", "Blocking the customer now"],},}resp, _ = engine.decide(SystemOneRequest(state="I was charged twice this month, please refund one of them.", questions=questions))print(resp.answers)```| `type` | `criteria` | answer fields ||---|---|---|| `noul`: yes or no | optional | `noul`: P(yes) || `choice`: one of named options | `{name: description}` | `choice`, `probabilities` || `score`: ordered levels | list of levels, lowest first | `score`, `probabilities` |Requests longer than the trained length limits are refused, not truncated.## 📊 Performance### Jev Decision Index 0.4| Model | Decision Index ||---|---:|| **mammoth-1** | **71.24** || Perplexity Decider v1.2 | 69.42 || elephant-1 | 62.65 || Jev 1.14 | 62.2 || Cloudflare Clef | 55.7 |On the public split, mammoth-1 leads in 4 of 5 areas (knowledge & reasoning, language, tools & automation, retrieval & classification, arts & human taste).### Artificial Analysis Decision Index (our replica)| Model | Score ||---|---:|| **mammoth-1** | **65.9** || elephant-1 | 65.2 || d1-ultra | 65 |## 🔧 Training (all details in the technical report)- **Data**: 6.21M decision examples (Mix 8). 58.3% core decision skills, 16.1% safety and abstention, 16.1% judging and expert domains, 9.5% public decision data.- **Objective**: cross-entropy plus a Brier calibration term (λ = 1), with a trained "I don't know" option.- **Recipe**: 1 epoch (9,859 steps), peak LR 2.7e-6, AdamW (β 0.9/0.95, no weight decay), 3% warm-up, cosine decay, bf16.- **Hardware**: 18 nodes × 4 GB300 (72 GPUs).## Citation```bibtex@article{baseten2026mammoth,author = {Base Labs, Baseten},title = {mammoth-1 and elephant-1: Frontier Decision Models},journal = {Base Labs},year = {2026},note = {https://labs.baseten.co/articles/mammoth-1-and-elephant-1-frontier-decision-models},}```
README.md+135-5