anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Scores every answer option for questions about a text, with a probability for each, in one forward pass. For teams that need fixed-choice decisions, such as ticket routing, on a large NVIDIA GPU.
Sarvam-Prism is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub huggingface-cli download sarvamai/prism --local-dir sarvam-prism cd sarvam-prism
Sarvam-Prism answers multiple-choice style questions about a piece of text. It sits on top of Sarvam-105B. For each question you list the allowed answers, and it returns a probability for every one of them in a single forward pass. It writes no free text, so the result is always one of your options.
It suits teams who turn text into fixed decisions, such as routing a support ticket or rating how upset a customer is. They need a large NVIDIA GPU or Sarvam's hosted API.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Customer support | Support teams | Route tickets and flag urgent ones | Pick billing, tech or delivery for a ticket |
| Operations | Teams triaging requests | Score how upset a customer is on an ordered scale | Rate a message from calm to furious |
| Software | Developers building decision steps | Replace free-text classification with fixed options | Add a yes or no check to a workflow |
People who need generated text can skip it, since the model does not generate any.
| Use case | Who | What they get back |
|---|---|---|
| Ticket routing | Support teams | A probability for each team, with the most likely one named |
| Urgency check | Operations | A probability of yes for a yes or no question |
| Tone scoring | Analysts | An expected level and probabilities across ordered levels |
You need these first:
pip install -U huggingface_hub huggingface-cli download sarvamai/prism --local-dir sarvam-prism cd sarvam-prism
pip install -r requirements.txt
python example.py .
Load the model from the downloaded folder, then call decide with a state and a set of questions. On a B200 the first load runs about two minutes, since Triton builds its kernels and CUDA graphs get captured along the way.
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"]},
},
)| Tool | What it does |
|---|---|
| Prism.from_pretrained | Loads the model from the downloaded folder onto cuda:0 |
| decide | Scores every question in a request together |
| choice | Gives the most likely key and a probability for each key |
| yes_no | Gives the probability of yes |
| score | Gives an expected level, the most likely level and probabilities |
You send a ticket saying a card was charged twice with no refund, and ask three questions. The card's sample output picks billing for the team with probability 0.986, gives 0.45 for yes on urgent, and scores anger at 1.86.
Think of it as a multiple-choice grader for text. You write the question and the allowed answers, and it tells you how likely each answer is. A first small step is to run the example script and read the output.
A request can hold several questions. They are scored together, with up to 16 per batch by default, yet each one is judged separately. Choice options are always scored in key order, so sending them in a different order changes nothing. Each question can carry up to 131,072 tokens of context. The files use a custom FP8 format, so general-purpose inference servers and AutoModelForCausalLM cannot load them.
Scores every answer option for questions about a text, with a probability for each, in one forward pass. For teams that need fixed-choice decisions, such as ticket routing, on a large NVIDIA GPU.
Made by sarvamai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Sarvam-Prism answers multiple-choice style questions about a piece of text. It sits on top of Sarvam-105B. For each question you list the allowed answers, and it returns a probability for every one of them in a single forward pass. It writes no free text, so the result is always one of your options.
Who it suits: It suits teams who turn text into fixed decisions, such as routing a support ticket or rating how upset a customer is. They need a large NVIDIA GPU or Sarvam's hosted API.
Industry | Who uses it | How they use it | Example
Customer support | Support teams | Route tickets and flag urgent ones | Pick billing, tech or delivery for a ticket
Operations | Teams triaging requests | Score how upset a customer is on an ordered scale | Rate a message from calm to furious
Software | Developers building decision steps | Replace free-text classification with fixed options | Add a yes or no check to a workflow
People who need generated text can skip it, since the model does not generate any.
Where to use it:
Use case | Who | What they get back
Ticket routing | Support teams | A probability for each team, with the most likely one named
Urgency check | Operations | A probability of yes for a yes or no question
Tone scoring | Analysts | An expected level and probabilities across ordered levels
How to set it up: You need these first:
pip install -U huggingface_hub
huggingface-cli download sarvamai/prism --local-dir sarvam-prism
cd sarvam-prism
pip install -r requirements.txt
python example.py .
How to use it: Load the model from the downloaded folder, then call decide with a state and a set of questions. On a B200 the first load runs about two minutes, since Triton builds its kernels and CUDA graphs get captured along the way.
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"]},
},
)
Tool | What it does
Prism.from_pretrained | Loads the model from the downloaded folder onto cuda:0
decide | Scores every question in a request together
choice | Gives the most likely key and a probability for each key
yes_no | Gives the probability of yes
score | Gives an expected level, the most likely level and probabilities
Example: You send a ticket saying a card was charged twice with no refund, and ask three questions. The card's sample output picks billing for the team with probability 0.986, gives 0.45 for yes on urgent, and scores anger at 1.86.
For newcomers and experts: Think of it as a multiple-choice grader for text. You write the question and the allowed answers, and it tells you how likely each answer is. A first small step is to run the example script and read the output.
A request can hold several questions. They are scored together, with up to 16 per batch by default, yet each one is judged separately. Choice options are always scored in key order, so sending them in a different order changes nothing. Each question can carry up to 131,072 tokens of context. The files use a custom FP8 format, so general-purpose inference servers and AutoModelForCausalLM cannot load them.
You send a context and questions
Each question lists its allowed answers
One forward pass scores every answer
You read a probability per answer
Good to know:
Title: Latency per request on one B200
Median: 44 ms
95th percentile: 420 ms
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download sarvamai/prism
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Sarvam-Prism This page | 325 | 44 | 105B | apache-2.0 | |
| strands-decider-2B-qwen3.5-v1-2610Shares calibration · classification · text-classification | 0 | 18 | — | apache-2.0 | |
| elephant-1Shares calibration · classification · decision-model | 7,426 | 115 | 9.4B | mit | |
| mammoth-1Shares calibration · classification · decision-model | 5,903 | 97 | 27.4B | mit | |
| joey-1Shares calibration · classification · decision-model | 1,539 | 47 | 2.7B | mit | |
| Kev-4BShares calibration · text-classification · decision-model | 12,499 | 175 | — | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.