Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Sarvam-Prism

Sarvam-Prism is a decision model built on Sarvam-105B, designed for text classification. It takes a context and multiple questions, each with predefined answers, returning a probability for every option in a single pass. This model does not generate text, ensuring answers are always selected from the provided choices, making it ideal for structured decision-making tasks.

View Model
Share
View Model
Share

Sarvam-Prism is a specialized decision model developed by Sarvam, leveraging the powerful Sarvam-105B backbone. Its primary function is text classification, where it processes a given context and one or more questions, each accompanied by a fixed set of possible answers. Unlike generative AI models, Sarvam-Prism does not create new text; instead, it assigns a probability to each predefined answer option in a single forward pass, ensuring that the output is always one of the provided choices.

Read More

This model is particularly suited for applications requiring precise, constrained decision-making rather than open-ended text generation. It operates by transforming each question into a sequence that includes the state, instructions, and every option, followed by an answer marker. A small decision head then reads the hidden state at the end of each option and at the answer marker to produce probabilities for each option. The model's architecture includes specific attention mask adjustments and FP8 kernels for efficient inference.

Sarvam-Prism is available for download and can be run on Hugging Face, with specific hardware requirements including an NVIDIA GPU with FP8 support and approximately 120 GB of free memory (e.g., B200 or H200). It also requires Python 3.10+ and a C compiler. For those without the necessary hardware, Sarvam-Prism is also offered as a hosted API from Sarvam, eliminating the need for local GPU resources.

The model's performance is optimized for speed, achieving a median of 44 ms per request on an NVIDIA B200, as measured on the public Decision Index benchmark. It supports various request formats, including 'choice', 'yes_no', and 'score' types, allowing for flexible question design. All questions within a request are scored together in batches, with each question being scored independently. The context limit is set at 131,072 tokens per question, accommodating extensive input.

The weights are stored in a custom FP8 layout, making them incompatible with general-purpose inference servers or standard models like AutoModelForCausalLM. The model's inference code, including input encoding, attention mask, decision head, and FP8 kernels, is provided within the `prism.py` file. Sarvam-Prism is released under the Apache 2.0 License, making it accessible for a wide range of applications.

  • CategoryAI Models & LLMs
  • Pricing ModelFreemium
  • DeploymentCloud, Self-hosted
  • PlatformsWeb

  • Text classification decision model

  • Built on Sarvam-105B backbone

  • Returns probability for predefined answers

  • Does not generate text, only selects from options

  • Available for download on Hugging Face

  • Hosted API available from Sarvam (no GPU needed)

  • Requires NVIDIA GPU with FP8 support (e.g., B200/H200)

  • Requires Python 3.10+ and C compiler

  • Optimized for speed with median 44 ms per request

  • Supports 'choice', 'yes_no', and 'score' question types

  • Processes questions in batches

  • Context limit of 131,072 tokens per question

  • Weights stored in custom FP8 layout

  • Inference code provided in `prism.py`

  • Licensed under Apache 2.0

  1. Download Model and Code: Obtain the Sarvam-Prism model and associated code from its Hugging Face repository.

  2. Install Dependencies: Set up the required Python 3.10+ environment and install all necessary dependencies.

  3. Prepare Hardware: Ensure you have an NVIDIA GPU with FP8 support and at least 120 GB of free memory, such as a B200 or H200.

  4. Load Model: Use `Prism.from_pretrained("sarvamai/prism")` or load the model with `prism.py` as instructed.

  5. Format Request: Structure your input with a `state` (context) and `questions` (map of question names to question objects), specifying `type`, `instructions`, and `criteria`.

  6. Run Inference: Execute the model with your formatted request to receive probabilities for each answer option.

  7. Access API (Optional): Utilize the hosted API from Sarvam if local GPU resources are unavailable, following the API documentation.

  • Structured Decision Making
  • Text Classification
  • Survey Analysis
  • Question Answering
  • Sentiment Scoring
  • Compliance Checking
  • Content Moderation

From Sarvam AI

Sarvam-Prism Reviews

Loading...

Popular AI Tools Like Sarvam-Prism

GLiDE 27B is a 27 billion parameter decision model developed by Fastino. It processes states containing text, JSON, and optional images to answer typed questions with…

AI Models & LLMs
View Tool

27 billion parameter decision model developed by Fastino. It processes states containing text, JSON, and optional images to answer typed questions with…GLiDE 27B is a 27 billion parameter decision model developed by Fastino. It processes states containing text, JSON, and optional images to answer typed questions with…

AI Models & LLMs
See the Top 50 LLMs

d3-ultra

AI Models

d3-ultra is a 27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities. Ideal for complex…

AI Models & LLMs
View Tool

AI Models

27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities. Ideal for complex…d3-ultra is a 27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities. Ideal for complex…

AI Models & LLMs
See the Top 5 AI Models

XLM-RoBERTa is a multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…

AI Models & LLMs
View Tool

Multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…XLM-RoBERTa is a multilingual model pre-trained on 2.5TB of data across 100 languages. It excels in tasks like sequence classification and token classification, making it a…

FeaturedAI Models & LLMs
See the Top 5 AI Models

Llama-2-7b-chat-hf is a fine-tuned generative text model optimized for dialogue use cases. Developed by Meta, it offers advanced capabilities for natural language processing…

AI Models & LLMs
View Tool

Fine-tuned generative text model optimized for dialogue use cases. Developed by Meta, it offers advanced capabilities for natural language processing…Llama-2-7b-chat-hf is a fine-tuned generative text model optimized for dialogue use cases. Developed by Meta, it offers advanced capabilities for natural language processing…

FeaturedAI Models & LLMs
See the Top 5 AI Models

GPT-2

AI Models

GPT-2 is a pretrained transformer model designed for generating English text. It utilizes a causal language modeling objective and is capable of producing coherent text based on…

AI Models & LLMs
View Tool

AI Models

Pretrained transformer model designed for generating English text. It utilizes a causal language modeling objective and is capable of producing coherent text based on…GPT-2 is a pretrained transformer model designed for generating English text. It utilizes a causal language modeling objective and is capable of producing coherent text based on…

FeaturedAI Models & LLMs
See the Top 5 AI Models

d3-turbo

AI Models

d3-turbo is an advanced 27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities, offering…

AI Models & LLMs
View Tool

AI Models

Advanced 27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities, offering…d3-turbo is an advanced 27B multimodal decision model from vLLM Semantic Router. It processes text, JSON, images, and videos to answer questions with probabilities, offering…

AI Models & LLMs
See the Top 5 AI Models

Mistral-7B-v0.1 is a pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…

AI Models & LLMs
View Tool

Pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…Mistral-7B-v0.1 is a pretrained generative text model with 7 billion parameters, designed to advance artificial intelligence through open source. It outperforms Llama 2 13B on…

FeaturedAI Models & LLMs
See the Top 5 AI Models

SelfJev

AI Apps

SelfJev is a self-hosted decision model that transforms text and images into structured decisions. It offers typed answers, shared-prefix inference, and maintains an open record…

Machine Learning & Data Science
View Tool

AI Apps

Self-hosted decision model that transforms text and images into structured decisions. It offers typed answers, shared-prefix inference, and maintains an open record…SelfJev is a self-hosted decision model that transforms text and images into structured decisions. It offers typed answers, shared-prefix inference, and maintains an open record…

Machine Learning & Data Science
See the Top 250 AI Apps
1 of 8