Skip to main content
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 git+https://github.com/rudra496/hyper-reason
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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hypermcts-2.0.0.tar.gz (36.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hypermcts-2.0.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file hypermcts-2.0.0.tar.gz.

File metadata

  • Download URL: hypermcts-2.0.0.tar.gz
  • Upload date:
  • Size: 36.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for hypermcts-2.0.0.tar.gz
Algorithm Hash digest
SHA256 43046d7af58ac70e5c00deb73153f02162cdbc02bc7e6790d18cf78701c0e7ec
MD5 0790c8055aa26bafa7eab0c493d888d6
BLAKE2b-256 3a4c430908391e666284a2a698a343fc264076c42f7922d2fdf2d2cc3f54bf73

See more details on using hashes here.

File details

Details for the file hypermcts-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: hypermcts-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.10

File hashes

Hashes for hypermcts-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed1869840390695c3e4ea11f591eb1244c05893c449e5347ffd1a43126d4ae8
MD5 036afe22455c97d215f77ddedf8c1e2f
BLAKE2b-256 fa161706b3cef2675868f566fecbfd0814296e83220ff0f7b63b18211193ea57

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page