HyperReason v2 — an honest Adaptive-Entropy MCTS test-time-compute engine.
v1.x of this project shipped an engine that never called a model and an invented
benchmark table. v2 is a full honest rebuild: it genuinely drives a real LLM
(Z.AI GLM by default; Ollama / HuggingFace supported), runs Adaptive-Entropy
MCTS over model-generated candidates, picks the answer by self-consistency, and
projects KV-cache savings from real per-node token counts.
Quickstart:
pip install hypermcts
export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
export ANTHROPIC_API_KEY=...
python -c "from hyper_reason import wrap_model, GLMBackend; \
print(wrap_model(GLMBackend()).reason('What is 17 + 25?')['boxed_answer'])"
Real benchmark (GSM8K-mini, N=20, GLM-4.6):
greedy (T=0) : 95.0%
self-consistency (K=4) : 90.0%
AE-MCTS (sims=6,k=2,d3) : 85.0%
We publish the run where AE-MCTS UNDERPERFORMS greedy: GLM-4.6 is already near
the ceiling on easy GSM8K, so modest-budget search does not pay off there. This
is the opposite of a SOTA claim. Re-run and scale it:
python eval/gsm8k_mini.py --n 100 --sims 16 --k 4
Entropy is labeled "sample_diversity_entropy (no logprobs)". KV savings are a
projected simulator (no real GPU). Backends RAISE when offline — they never
fabricate a response. Raw per-problem traces: eval/runs/*.jsonl.
Full docs: https://github.com/rudra496/hyper-reason (README.md)
Live demo: https://rudra496.github.io/hyper-reason
License: MIT. Author: Rudra Sarker.
Metadata
Release files for hypermcts 2.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 | |
|---|---|---|---|
| hypermcts-2.0.1.tar.gz | 36.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hypermcts-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 71.5 kB
Release files / hypermcts-2.0.1.tar.gz
| Download URL | hypermcts-2.0.1.tar.gz |
|---|---|
| Size | 36.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28815bfe9d80f8a9300f6c006c2f05409770ec6b1b6788903f9767c269b0107a
|
|
BLAKE2b-256 checksum How to use checksums |
4983ce5ae63d7481ed850755fc19d5de0be3a8ade7c727aba56f86790524f93b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency logRelease files / hypermcts-2.0.1-py3-none-any.whl
| Download URL | hypermcts-2.0.1-py3-none-any.whl |
|---|---|
| Size | 35.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c71d2440277added8148dfa0cca9f84b8ce8ef678b0eed525a6c436a83dedffc
|
|
BLAKE2b-256 checksum How to use checksums |
04b27a7cf5ca62b76b6cc4468b6b16a1dfed539b9e7539e3e9cd9d6bddcec2c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 10, 2026.
Transparency log