Shapiro-Jev v0.1.0
experimental checkpoint for cyclic computation and adaptive stopping
2 min readupdated
The model is based on Qwen/Qwen3.5-2B and designed for adaptive stopping research tasks, where a controller decides when to halt computation. Its middle layer blocks (4–15) run repeatedly for the same input, implementing rule chains over names. The output yields response probabilities at each cycle depth with state preservation support. Compared to the base model, direct answering capability is removed, but precise step-by-step tracking via RMS anchoring (rescaling to the RMS of the first cycle) is added.
Key features
- Base: Qwen3.5-2B with cyclic layer processing (4–15).
- RMS anchoring: token state scaling for stability in long cycles.
- Jev interface: state saving and loading, branching, and step-by-step execution.
- Purpose: strictly experimental research checkpoint for controlling thinking depth.
What you can do
- Adaptive stopping research: test strategies for terminating or continuing cycles.
- Cyclic inference: run sequential reasoning steps without generating extra tokens.
- State management: save intermediate computation steps to files and restore them.
Example
import sys
from huggingface_hub import snapshot_download
d = snapshot_download("yixuanzheng/Thinking-Jev-Shapiro", revision="v0.1.0")
sys.path.insert(0, d)
from shapiro_jev import ShapiroJev
m = ShapiroJev.from_pretrained(d)
s = m.start(problem_text)
for t in range(1, 9):
s = m.step(s)
print(t, m.answer(s, {"who": {"type": "choice", "criteria": {"Joe": None, "Max": None, "Amy": None, "Liz": None}}}))
Read more
DetailsBenchmarks: accuracy 1.00 at depths 1–8; zero-shot transfer to other tasks yields random results (0.18–0.23).
Hardware: one step per prompt (~130 tokens) takes about 0.041 s on a single L40S (batch 1).
Limitations: works only in the trained domain (rule chains over 16 names); on other tasks, accuracy drops to random guessing level.










Comments