Mindket

Shard-Reward

Newversion 1 · updated

Overview

Scores a reply to a prompt with one number, so you can rank candidate answers per prompt. A 49.4M reward model trained on 282,062 preference comparisons, for people who filter or compare model output.

Shard-Reward 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.

At a glance

You need
  • Python with torch and tokenizers, the only imports the script needs
  • This repository's files kept together in one folder, since the script needs nothing else to run
Runs in
  • Python on Windows, macOS or Linux, with torch and tokenizers
  • A terminal, through the infer.py command line
  • Your own Python code, through the Rewards class
Start with
pip install -U huggingface_hub
hf download Glint-Research/Shard-Reward

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Shard-Reward is a small reward model with 49.4M parameters. It reads a conversation and gives one number to the last reply. A higher number means the reply matched what people preferred in its training data. A scalar head sits on top of the Shard-2 language model. Training used 282,062 preference comparisons collected from five RLHF datasets.

Who it suits

It suits developers who need a cheap judge to order candidate replies, such as when comparing or filtering model output. The author warns that it behaves worse on hand-written prompts than its averages suggest.

Who runs it
IndustryWho uses itHow they use itExample
SoftwareDevelopers building chat toolsRank several candidate replies for one promptPick the best of a few drafted answers
ResearchPreference-learning researchersTest a small reward model against other baselinesCompare it with likelihood scoring
Data workTeams cleaning reply dataOrder replies to the same prompt and keep the top fewKeep the top k replies per prompt

If you need a calibrated score or a fixed pass mark, you can skip it.

Where to use it

  • Python on Windows, macOS or Linux, with torch and tokenizers
  • A terminal, through the infer.py command line
  • Your own Python code, through the Rewards class
Jobs it does
Use caseWhoWhat they get back
Scoring one replyDevelopersOne uncalibrated number for the reply
Comparing two repliesResearchersWhich of a and b is better, with both scores
Ranking many repliesData teamsThe replies ordered best first, with scores

How to set it up

  • Python with torch and tokenizers, the only imports the script needs
  • This repository's files kept together in one folder, since the script needs nothing else to run
  1. Download the repository files.
  2. Install the requirements.
  3. Run the info command to check that it loads.
pip install -U huggingface_hub
hf download Glint-Research/Shard-Reward
pip install -r requirements.txt

python infer.py --info

How to use it

Run infer.py with a flag, or call the Rewards class from Python. Build the context from the prompt, then score, compare or rank replies. Rank candidates per prompt instead of cutting on a fixed score.

python infer.py --score --prompt "What is a hash table?" --response "A key and value store with constant average lookup."
python infer.py --compare --prompt "..." --a "reply a" --b "reply b"
python infer.py --rank --prompt "..." --responses-file replies.txt
python infer.py --pairs pairs.jsonl
from infer import Rewards, as_context

rewards = Rewards()
context = as_context("What is a hash table?")

rewards.score(context, "A key and value store with constant average lookup.")
rewards.compare(context, "reply a", "reply b")     # (a_is_better, score_a, score_b)
rewards.rank(context, ["reply a", "reply b"])      # best first, with scores
rewards.score_many(context, ["reply a", "reply b"])
Ways to call it
ToolWhat it does
--scoreScores one reply to a prompt
--compareCompares two replies, a and b
--rankRanks replies listed in a file
--pairsWorks through a file of reply pairs
RewardsThe Python class with score, compare, rank and score_many

Example

You ask it to score the reply "It stores data as keys and values." to the prompt "What is a hash table?" It returns a single number. A higher number means that reply was closer to the kind people preferred in the training data.

For newcomers and experts

If you are new, think of this as a judge that gives a grade to the last reply in a conversation. The first small thing to try is scoring one prompt and reply with the score command, then comparing two replies.

If you know the field, the backbone is Shard-2 with 20 layers, a 4096-token byte-level vocabulary and a 768-token context, with a Bradley-Terry style head. The output is a relative score and cannot be read as a probability. The trade-off is reliability. Across the suites its ordering is right about 64% of the time on average, and its misses on hand-written prompts follow a pattern.

  1. Render the prompt as a context
  2. Pass the reply to the scalar head
  3. Get one uncalibrated score
  4. Rank replies per prompt

Good to know

Held-out accuracy by source
UltraFeedback71.75%
OpenAssistant70.65%
SHP-266.20%
Anthropic HH-RLHF63.95%
NVIDIA HelpSteer258.45%
  • Baseline: ranking by the backbone's own likelihood scores 55.94 on the same held-out slice, against 66.20 for the head.
  • Weak spots: it loses to the likelihood baseline on two of twelve suites, PKU better and Summarize.
  • Context: 768 tokens, so long conversations are cut.
  • Meaning: typical scores cluster around zero within about one unit, and equal numbers on two prompts are not comparable.
  • License: mit.
  • Cost to run: no API key, account or paid service is named.
  • Data it reaches: the script runs on local files and imports only torch and tokenizers.
  • Not for: fixed score cutoffs, since the number is a difference rather than a probability.

README and files

README

Shard-Reward

Scores a reply to a prompt with one number, so you can rank candidate answers per prompt. A 49.4M reward model trained on 282,062 preference comparisons, for people who filter or compare model output.

Made by Glint-Research 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.

About

What it is: Shard-Reward is a small reward model with 49.4M parameters. It reads a conversation and gives one number to the last reply. A higher number means the reply matched what people preferred in its training data. A scalar head sits on top of the Shard-2 language model. Training used 282,062 preference comparisons collected from five RLHF datasets.

Who it suits: It suits developers who need a cheap judge to order candidate replies, such as when comparing or filtering model output. The author warns that it behaves worse on hand-written prompts than its averages suggest.

Title: Who runs it
Industry | Who uses it | How they use it | Example
Software | Developers building chat tools | Rank several candidate replies for one prompt | Pick the best of a few drafted answers
Research | Preference-learning researchers | Test a small reward model against other baselines | Compare it with likelihood scoring
Data work | Teams cleaning reply data | Order replies to the same prompt and keep the top few | Keep the top k replies per prompt

If you need a calibrated score or a fixed pass mark, you can skip it.

Where to use it:

  • Python on Windows, macOS or Linux, with torch and tokenizers
  • A terminal, through the infer.py command line
  • Your own Python code, through the Rewards class
Title: Jobs it does
Use case | Who | What they get back
Scoring one reply | Developers | One uncalibrated number for the reply
Comparing two replies | Researchers | Which of a and b is better, with both scores
Ranking many replies | Data teams | The replies ordered best first, with scores

How to set it up:

  • Python with torch and tokenizers, the only imports the script needs
  • This repository's files kept together in one folder, since the script needs nothing else to run
  1. Download the repository files.
  2. Install the requirements.
  3. Run the info command to check that it loads.
pip install -U huggingface_hub
hf download Glint-Research/Shard-Reward
pip install -r requirements.txt

python infer.py --info

How to use it: Run infer.py with a flag, or call the Rewards class from Python. Build the context from the prompt, then score, compare or rank replies. Rank candidates per prompt instead of cutting on a fixed score.

python infer.py --score --prompt "What is a hash table?" --response "A key and value store with constant average lookup."
python infer.py --compare --prompt "..." --a "reply a" --b "reply b"
python infer.py --rank --prompt "..." --responses-file replies.txt
python infer.py --pairs pairs.jsonl
from infer import Rewards, as_context

rewards = Rewards()
context = as_context("What is a hash table?")

rewards.score(context, "A key and value store with constant average lookup.")
rewards.compare(context, "reply a", "reply b")     # (a_is_better, score_a, score_b)
rewards.rank(context, ["reply a", "reply b"])      # best first, with scores
rewards.score_many(context, ["reply a", "reply b"])
Title: Ways to call it
Tool | What it does
--score | Scores one reply to a prompt
--compare | Compares two replies, a and b
--rank | Ranks replies listed in a file
--pairs | Works through a file of reply pairs
Rewards | The Python class with score, compare, rank and score_many

Example: You ask it to score the reply "It stores data as keys and values." to the prompt "What is a hash table?" It returns a single number. A higher number means that reply was closer to the kind people preferred in the training data.

For newcomers and experts: If you are new, think of this as a judge that gives a grade to the last reply in a conversation. The first small thing to try is scoring one prompt and reply with the score command, then comparing two replies.

If you know the field, the backbone is Shard-2 with 20 layers, a 4096-token byte-level vocabulary and a 768-token context, with a Bradley-Terry style head. The output is a relative score and cannot be read as a probability. The trade-off is reliability. Across the suites its ordering is right about 64% of the time on average, and its misses on hand-written prompts follow a pattern.

Render the prompt as a context
Pass the reply to the scalar head
Get one uncalibrated score
Rank replies per prompt

Good to know:

Title: Held-out accuracy by source
UltraFeedback: 71.75%
OpenAssistant: 70.65%
SHP-2: 66.20%
Anthropic HH-RLHF: 63.95%
NVIDIA HelpSteer2: 58.45%
  • Baseline: ranking by the backbone's own likelihood scores 55.94 on the same held-out slice, against 66.20 for the head.
  • Weak spots: it loses to the likelihood baseline on two of twelve suites, PKU better and Summarize.
  • Context: 768 tokens, so long conversations are cut.
  • Meaning: typical scores cluster around zero within about one unit, and equal numbers on two prompts are not comparable.
  • License: mit.
  • Cost to run: no API key, account or paid service is named.
  • Data it reaches: the script runs on local files and imports only torch and tokenizers.
  • Not for: fixed score cutoffs, since the number is a difference rather than a probability.

On Hugging Face, 13 November 2026

  • Downloads in the last 30 days: 33
  • Likes: 3
  • License: mit
  • Languages: en
  • Tags: glint_reward, rlhf, reward

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download Glint-Research/Shard-Reward

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

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…

New

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…

New

ACE-Step 1.5 XL SFT

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…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

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…

New29.8k

buzz

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…

New37.3k

plannotator

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.

New10.5k