judgly
Calibrated, deterministic judgments from open language models.
Status: early development. This release (0.0.1) contains no functionality yet; it reserves the name while the package is built. Do not depend on it.
What judgly will do
judgly answers typed questions about a text (a choice among options, a yes or no, a rating on a scale) with a probability for every allowed answer, without generating any text. A frozen open language model reads the text once, every question is answered from that single reading and kept isolated from the others, and a small calibration head, fitted on public data, turns the model's scores into probabilities that match observed accuracy: when judgly says 0.8, it is right about 80% of the time. Answers are repeatable: the same request gives the same probabilities.
The default model is Google's Gemma 4 12B, run locally through llama.cpp.
Planned interface (subject to change)
from judgly import Engine, Choice
engine = Engine.load("gemma4-12b")
answer = engine.decide(
state="Claim: ...\n\nEvidence: ...",
questions={
"stance": Choice(
format="stance",
instructions="How does the evidence bear on the claim?",
options={"supports": "The evidence supports the claim",
"contradicts": "The evidence contradicts the claim",
"no_bearing": "The evidence has no bearing on the claim"},
),
},
)
answer["stance"].probs # {"supports": ..., "contradicts": ..., "no_bearing": ...}
Acknowledgements
judgly runs on Google's Gemma 4 models, released under the Apache License 2.0, and on llama.cpp and ggml by the ggml authors (MIT License). See NOTICE.
Licence
Apache License 2.0. See LICENSE and NOTICE.
Release files for judgly 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| judgly-0.0.1.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| judgly-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / judgly-0.0.1.tar.gz
| Download URL | judgly-0.0.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01f07fd2d3a3dcb595055147f51628ec16d0dc670b1d803d669571875ac34ff3
|
|
BLAKE2b-256 checksum How to use checksums |
ec2d1d73db0c43ebab8b659bb2f0d0b4e993e983c7528eda819905ec85b87c3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / judgly-0.0.1-py3-none-any.whl
| Download URL | judgly-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cbe67c2746ff0f28187d3d2c5ce59d81c118f856f208a313c44ebb8db56c08c5
|
|
BLAKE2b-256 checksum How to use checksums |
4de3cce1be5c698665a2127ecf7511f9be2906d60083c842f0d28e428aa455fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|