reasoning-from-scratch
Implement a reasoning LLM in PyTorch from scratch, step by step
- 5.9k
- Jupyter Notebook
- Apache-2.0
- 12 h ago
Implement a reasoning LLM in PyTorch from scratch, step by step
Official code for "Student Guides Teacher: Weak-to-Strong Inference via Spectral Orthogonal Exploration" (SOE, ACL 2026 Oral). A training-free, test-time scaling method that fixes reasoning collapse in LLM mathematical reasoning via orthogonal probing.
Compound model panel for pi: parallel model calls, then one synthesis response.
Airgapped closed-corpus QA loop: a self-hosted Qwen3.6 agent explores a .zip dataroom under a token budget with local tools
LLM reasoning: use draft agreement to route queries and allocate adaptive thinking budgets without training.
Tree execution engine for LLM inference: fork, merge, prune KV cache at token granularity
LLM reasoning: improve small models with uncertainty-guided, trajectory-aware test-time model fusion.
Resample or reroute after a weak-verifier stop? Pre-registered measurements of recoverable stopping debt on MBPP+, a two-sided action-support gate on BigCodeBench that fails closed, a LiveCodeBench observability ladder, and the exchangeable-actions reference showing realized-maximum gaps carry no selector signal. Artifacts for arXiv:2607.08665v3.
Anonymous paper release for VGR-TL, a verifier-gated repair framework for auditing checker-objective alignment at test time.
GenPark Reasoning MCTS Step Verity Evaluator - Implements Monte Carlo Tree Search (MCTS) Step-Level Process Reward Modeling (PRM) & Hallucination Branch Pruning.
GenPark Reasoning Majority Voting Consensus Engine - Implements Self-Consistency Best-of-N temperature resampler with semantic deduplication and confidence-weighted voting.
LoopBridge: Should Prefill and Decode Loop Equally? A cache-foldable adapter for untying prefill and decode loop counts in looped language models (Ouro, Ouro-Thinking, Lev). Every paper number is recomputable from released per-item scores.
GenPark Reasoning Budget Test-Time Compute Allocator - Dynamically schedules thinking token budgets, reflection passes, and temperature annealing based on problem entropy.
GenPark Reasoning Formal Symbolic Proof Checker - Zero-dependency propositional logic assertion and formal symbolic deduction validator.
A controlled research framework for studying when additional test-time reasoning helps, hurts, or wastes compute in open-weight LLMs.
ReasonForge — Interactive Test-Time Compute Laboratory. Live scaling curves, MCTS+PRM, Tree-of-Thoughts, Best-of-N verifier, Self-Refine reward-hacking — all on the Game-of-24 benchmark.