Who it is forA researcher studying calibration who wants to see how soft probability targets flow through the RLCDLoss objective.
The problemStandard one-hot labels force certainty, and the researcher needs a way to keep disagreement visible in training targets.
The outcomeA runnable loss computation over custom probability targets, with gradients produced by backward().
What you need first
- Python 3.10 or newer (recommended in the README)
- git installed
- PyTorch 2.0 or newer
- Basic familiarity with running Python scripts from a terminal
Steps
- Install the repo and dependency as in the install section:
git clone https://github.com/kyegomez/open-jevthenpython -m pip install "torch>=2.0" - Create one target tensor per question, where each row is a probability distribution rather than a one-hot label
- Instantiate the loss with
RLCDLoss()and call it with the model, states, questions, and targets - Run
loss.backward()on the returned loss - Optionally pass paraphrased or key-shuffled versions of the same state through augmented_states to test consistency (inferred, check the README)
Prompt for your agent
In the repo https://github.com/kyegomez/open-jev, build soft probability targets for <your question set> and compute RLCDLoss on the model with one backward pass. Expected output is a scalar loss tensor with gradients; verify that each target row sums to 1 before calling the loss.
Caveat. The training recipe is described as a hypothesis, the repo has no trained checkpoints, and a single step on random weights does not show that the model becomes calibrated.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for kyegomez/open-jev and "Test soft-target training with RLCDLoss on your own labels"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer