Spaces:
Running
Running
Commit History
11 days ago
-
Correct finite-family formulas and remove unsupported capacity verdicts
3ccb7d5
-
Add sampled device memory collection and four-language explanations
Verified signatureReviewed mirror of GitHub source commit 4b7b664babb70f6dd45f659e00996bd614a28082. Adds optional read-only NVIDIA sampling, typed sampling provenance, device-wide metric exclusion from deltas, four-language explanations and docs; no model execution or forum posts.80ebc8f -
Add memory measurement imports in EN ES FR ZH
Verified signatureReviewed mirror of GitHub source commit 0cb33aacd306a2c2805f80840f20c9f25a8f65bd. Adds local measurement preview, explicit attachment, bounded comparison, optional PyTorch collector and private-case v2 support; synchronized docs and guide; no discussion posts.7fd59be
-
Measure attention entropy honestly and update multilingual help and demos
62c7d86 -
Add protocol-aware measurement lab and reproducible uniform control
b048711
-
fix(diagnose): move non-quantized model to cuda (was left on CPU -> nan attn)
run_diagnostic set device='cuda' but for the non-4bit path from_pretrained leaves the model on CPU and the code only moved it when device=='cpu'. Inputs went to cuda while weights stayed on CPU, so every forward raised (swallowed by except: continue) and attn came back nan -> 'Power-law fit failed. Too few valid distances.' Add the cuda+fp16 move for the non-quantized path. 4bit (device_map=auto) unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>6fcd753
-
fix: remove d_horizon tautology + audit-driven correctness/honesty fixes + test net
The displayed "d_horizon" = θ(1−γ)√2/(1+γ) evaluated at γ_Padé is the exact Padé inverse and equals the trained/eval context by construction — it carried no signal yet drove verdicts. Removed across gguf_bridge, yarn_planner, launch_flags and niah_reasoning; verdicts now use real axes (γ@L, γ_eff, trained-context, extrapolation T_eval/T_train). Falsifier F2 demoted to refuted (circular, = F23). Audit fixes (5-agent review): - gamma_check: γ∈(1,1.05] no longer mislabeled "fraud" -> new Phase-B regime - niah_reasoning: wrong d_horizon formula (34x off) + tautology removed; correct YaRN vs linear/dynamic PI handling; fix crash on configs without rope_scaling - arena_ci: two-sided CI overlap (was one-sided, over-declared ties) - contamination_prior: "Bayesian prior/probability" -> uncalibrated risk score; surface clamped + calibrated:false - quant_regime: clamp ΔPPL sizeBoost (no negative); honest IH-cutoff caveat - cross_drift: bug_template only when the gap is real (no false positiv…0937b87
-
fix: 6 formula corrections in TAF Agent (audit-driven)
Audit via Sócrates v0.1 found 6 issues in cli/diagnose_model.py + python/taf_browser.py. CRITICAL bugs (wrong recommendations to users): 1. D_f_closed: Phase B (γ>1) clamped to N when truth is ~3% of N. Affected LLaMA-2/3, Gemma, Mistral, Qwen2.5 — all returned ~all-tokens when paper says compress to ~50-100 tokens. 2. D_f_closed: Hagedorn buffer |γ-1|<0.01 used N·f^(1/log N) instead of N^f, giving ~2× wrong values for models near γ=1. Replaced both with discrete-truth implementation: smallest D such that ∑_{d=1}^D d^{-γ} / Σ_{d=1}^N d^{-γ} ≥ f. The paper's "exact continuous formula" is actually a continuum integral approximation that diverges 5-57% from the discrete sum (worse for higher γ). MEDIUM: 3. partition_Z(γ=1, N) used log(N+0.5), missing Euler-Mascheroni γ_E ≈ 0.577 — ~7% underestimate of H_N. Now log(N) + γ_E. 4. free_energy_F returned -log(Z) (β·F convention), now -log(Z)/γ (Helmholtz F, consistent with U-TS thermodynamic identity). LOW: 5. γ_pred used ob…fed77dc
-
docs: rename paper "Transformer Thermodynamics" → "Predicting How Transformers Attend"
Title aligned with Zenodo publication (https://zenodo.org/records/19826343). Replaced placeholder GitHub repo links with the canonical Zenodo DOI link where appropriate (HF Space readme, HF post, registry bootstrap, README). Files touched: - index.html → help modal "Source code & paper" body - js/i18n.js → help.source.body in EN/ES/FR/ZH (4 langs) - README.md → 2 references in body + CLI section - cli/diagnose_model.py + cli/context_compressor.js → docstrings - data/README.md, hf-space-readme.md, hf-post-announcement.md, hf-discussion-templates.md, registry-bootstrap/README.md - .github/ISSUE_TEMPLATE/config.yml → "Paper questions" link description Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1a6c909
-
feat(ui): add Diagnose CLI builder + Phase Diagram viewer modes
Diagnose CLI mode (🩺): - New mode tab + section in index.html with form: model id, theta, context N, --fast/--cpu/--load_in_4bit toggles, --local path. - Generates exact `python cli/diagnose_model.py ...` command, one-click copy to clipboard. - Bridges browser Padé prediction with the GPU CLI measurement script shipped at cli/diagnose_model.py. Phase diagram mode (📊): - Pure-canvas scatter (no Chart.js dep) reading data/master_gamma_results.json. - Plots γ_obs (y) vs log θ (x) for all 23 paper models, colored by phase (A/B/Hagedorn) with corpus alpha (text=opaque, random=40%). - Padé curve overlay at T=2000 + Hagedorn line γ=1. - Hover: full model details. Click: pre-fills Diagnose + Recipe forms. Other: - cli/context_compressor.js: D_f-based runtime token budgeting module (refactored from user proposal, validity guards γ ∈ [0.67, 0.85]). - i18n.js: added ~25 keys × 4 languages (EN/ES/FR/ZH) for the new modes. - style.css: .diag-cmd-box for terminal-style command renderin…b4f7029 -
feat: ship paper artefacts + CLI diagnostic alongside browser tool
The paper "Transformer Thermodynamics" (Marin 2026) §sec:tafagent claims the diagnostic CLI script and raw experimental data live in the same repository as the browser application. This commit makes that claim true. Adds: - cli/diagnose_model.py — CPU-only Python characteriser referenced in the paper Quick Reference Card (Step 1) - data/ — 343 JSON measurement files + 10 PNG figures + 6 CSV summaries (~5.5 MB) covering γ_obs, H3 transplant, KV compression, NIAH ceiling, RLHF δγ, weight-space DFT, gamma-field, and Hagedorn experiments - data/README.md — layout description and per-experiment file map Updates: - README.md → v0.3 (paper-ready), new section "CLI diagnostic" + "Reproducibility data" Excluded for repo hygiene: *.log, *.txt, *.bak, *.stale (reproducible from the originating Python scripts). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>535348a