/ Модель

Характеристики

Контекст
131 072 токена
Параметры
9,7 млрд
Размер весов
106 ГБ
Лицензия
Apache 2.0
Архитектура
sarvam_mla · MoE
Опубликована
2 ноя 2026

prism

Генерация текстаТекст → текст8 профессий

Sarvam-Prism оценивает варианты фиксированных ответов и выдаёт вероятности для задач классификации, выбора и оценивания.

530скачиваний за 30 дней49лайковвеса обновлены3 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Sarvam-Prism — модель принятия решений компании Sarvam, дообученная на основе Sarvam-105B. Она принимает контекст и один или несколько вопросов с заранее заданными вариантами ответа, а затем за один проход вычисляет вероятность каждого варианта. Модель подходит для классификации, выбора из фиксированного набора ответов, оценивания по упорядоченным уровням и ответов «да/нет»; свободный текст она не генерирует.

Архитектура — причинная MoE-модель SarvamMLA с отдельной небольшой головой принятия решений; размер базовой модели — 9,7 млрд параметров, контекст — до 131 072 токенов на вопрос. Веса представлены в FP8, эмбеддинги и нормализации — в bf16. README описывает поддержку английского и индийских языков; метаданные перечисляют en, hi, bn, ta, te, mr, gu, kn, ml, or и pa, однако карточка модели отдельно не подтверждает качество на каждом из них. Для локального запуска указаны требования к видеокарте NVIDIA с поддержкой FP8 и примерно 120 ГБ свободной памяти. Лицензия — Apache-2.0.

Сценарии применения

  • классификация текста по заданным категориям
  • выбор наиболее подходящего ответа из списка
  • оценка текста по заданной шкале
  • определение вероятности ответа «да» или «нет»
  • одновременная оценка нескольких вопросов по одному контексту

Ограничения

Модель возвращает оценки только для заранее заданных вариантов и не подходит для генерации свободного текста. Для локального запуска требуется GPU NVIDIA с поддержкой FP8 и около 120 ГБ свободной видеопамяти.

Для каких профессий подходит8

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Sarvam-Prism

Sarvam-Prism is a decision model built on Sarvam-105B. You give it a context and one or more questions, each with a fixed set of possible answers. It returns a probability for every answer in a single forward pass. It does not generate text, so the answer is always one of your options.

Release blog: sarvam.ai/blogs/sarvam-prism: evaluation results, comparisons with other decision models, calibration, and how the model was built and made fast.

API: Sarvam-Prism is also available as a hosted API from Sarvam, with no GPU needed: see the API documentation.

Requirements

  • One NVIDIA GPU with FP8 support and about 120 GB of free memory, such as a B200 or H200. Tested on B200.
  • Python 3.10+ and a C compiler (Triton builds its kernels on first use).
  • About 106 GB of disk for the weights.

Quick start

1. Download the model and code:

pip install -U huggingface_hub
huggingface-cli download sarvamai/prism --local-dir sarvam-prism
cd sarvam-prism

2. Install the dependencies:

pip install -r requirements.txt

3. Run the example:

python example.py .

Loading takes about two minutes on a B200 (Triton compiles its kernels the first time, then CUDA graphs are captured). It prints the answers to the request below.

Use it from Python (run from the sarvam-prism folder, or put it on your PYTHONPATH):

from prism import Prism

model = Prism.from_pretrained(".")   # the downloaded folder; loads on cuda:0

answers = model.decide(
    state={"ticket": "My card was charged twice for the same order and I still haven't got a refund."},
    questions={
        "team": {"type": "choice", "instructions": "Which team should handle this ticket?",
                 "criteria": {"billing": "payments, charges and refunds",
                              "tech": "app or website problems",
                              "delivery": "shipping and order status"}},
        "urgent": {"type": "yes_no", "instructions": "Does this need a reply within the hour?"},
        "anger": {"type": "score", "instructions": "How upset is the customer?",
                  "criteria": ["calm", "annoyed", "angry", "furious"]},
    },
)

The output has one entry per question:

{
  "team":   {"type": "choice", "choice": "billing",
             "probabilities": {"billing": 0.986, "delivery": 0.006, "tech": 0.007}},
  "urgent": {"type": "yes_no", "yes": 0.45},
  "anger":  {"type": "score", "score": 1.86, "level": "2",
             "probabilities": {"0": 0.032, "1": 0.267, "2": 0.510, "3": 0.191}}
}

Prism.from_pretrained("sarvamai/prism") also accepts the repo id and downloads the weights into the Hugging Face cache on first use (you still need prism.py from this repository).

Load the model with prism.py as shown. The weights are stored in a custom FP8 layout for this code, so they cannot be loaded with AutoModelForCausalLM or served by general-purpose inference servers.

Speed

Median 44 ms per request (95th percentile 420 ms) on one NVIDIA B200, measured on 1,000 random requests from the public Decision Index benchmark, sent one at a time after loading. All questions in a request are scored together.

Request format

  • state: the context to decide about. Any text or JSON-serialisable value; JSON is rendered compactly.
  • questions: a map from your question names to questions. Each question has:
    • type: one of the three below.
    • instructions: what to decide, in plain language.
    • criteria: the possible answers.
typecriteriaoutput
choice{key: description}; the description may be nullchoice (most likely key) and probabilities per key
yes_nononeyes: probability of yes
scorea list of ordered levels, or an ordered {key: level} mapscore (expected level index), level (most likely key) and probabilities per key; for a list, the keys are the level indices "0", "1", …

All questions in a request are scored together, in batches of up to batch_size (default 16, set in from_pretrained), and each question is scored independently of the others. Choice options are scored in a fixed order (sorted by key), so the same options always give the same answer, whatever order you send them in. The context limit is 131,072 tokens per question.

Loading captures CUDA graphs for common batch sizes and lengths, which takes a few minutes and makes most requests much faster; pass cuda_graphs=False to skip it.

How it works

Each question becomes one sequence: the state, the instructions, and every option, followed by an answer marker. Every option starts at the same position and cannot see the other options; only the answer marker sees all of them. A small decision head reads the hidden state at the end of each option and at the answer marker, and turns them into one probability per option. prism.py contains the full inference code: the input encoding, the attention mask, the decision head, two small changes to the base model's attention for this mask, and the FP8 kernels.

The weights are stored in FP8 (float8_e4m3fn) with one scale per output row; activations are scaled per token at run time. The 128 routed experts of each layer run as two grouped FP8 matrix multiplications (a Triton kernel), and the other projections use torch._scaled_mm. Embeddings and norms are bf16, and the MoE router is fp32.

Files

filecontents
model-*.safetensors, config.json, *_sarvam_moe.pythe fine-tuned Sarvam-105B backbone in FP8 (one file per layer)
decision_head.safetensorsthe decision head and segment embedding
tokenizer*.json, special_tokens_map.jsontokenizer
prism.py, example.py, requirements.txtinference code
LICENSEApache License 2.0

License

Apache 2.0 (see LICENSE).

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

vLLM

Нельзя запустить

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
SarvamMLAForCausalLM
Ревизия весов
417cf26

0 моделей