Spaces:
Running
Running
Commit History
-
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
-
Review model examples and guard dense configuration imports
56acff6 -
Connect eight transformer studies to the guide with optional mechanism demos
450e2c1 -
Add protocol-aware measurement lab and reproducible uniform control
b048711 -
Add multilingual research explorer linked to the Transformers Guide
e2715cd
-
feat(wip): forgetting lit explorer module + knowledge base
Standalone logic module (js/forgetting_lit_explorer.js) + curated KB (data/forgetting_kb.json) for a catastrophic-forgetting literature explorer. Not yet wired into main.js/index.html — pure logic + data; module parses clean, KB is valid JSON. Returns structured codes for i18n lookup. Honest framing: not a predictor (Δ ranges -10pp..+35pp on near-identical setups, variance-dominated by dataset×task interaction). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>e972122
-
v0.8.8 LongScore mode — anti-bullshit pack #14 + Hub badge readability fix
22nd mode: 🎯 LongScore. Lookup any HF model id → see relative degradation past short context, sourced from RULER per-length + HELMET aggregate. Why: every model claims a 128K context window, but accuracy degrades long before that. Raw long-ctx scores are dominated by base ability — a smarter model with a worse long-ctx recipe still scores higher than a less-smart model with a better one, hiding the actual degradation. The 100-LongBench paper (ACL 2025, arXiv:2505.19293) proposed LongScore to disentangle base ability from true long-ctx capability: LC_l = (S_l − Base) / Base Base = mean(S_short) LongScore = mean(LC_l for l in {16K, 32K, 64K, 128K}) 0 = no degradation; -0.30 = severe. Stage 0.5 verified (per PROTOCOL.md): no existing browser tool surfaces LongScore for a given model id. tiktokenizer.vercel.app, llm-stats.com, BenchLM.ai use raw RULER/needle scores. HELM Long Context aggregates 5 benchmarks but doesn't compute LongScore. Genuinely novel. Files: - data/longs…ebabb49
-
hub: add multilingual_token_tax entry → 🌍 Multilingual Tokenizer Tax
Closes v0.8.7 commitment: Token Tax was wired into UI but the Solutions Hub JSON didn't carry the corresponding pain entry, so users searching for "multilingual" or "tokenizer cost" couldn't find the in-app tool from the Hub view. Added under category=diagnostic with canonical pain statement, 3 curated external links (tiktokenizer for OpenAI baseline, transformers.js for browser BPE runtime, OpenAI cookbook), and best_for/not_for guidance. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>6f608c8 -
v0.8.6 NIAH RULER calibration — anti-bullshit pack #12
The 🔍 NIAH→Reason mode predicted pass rates from architectural inputs (γ_Padé, d_horizon, GQA pressure, SWA boundary) using a heuristic logistic. That heuristic was calibrated against rough RULER bands but never validated against per-model-per-context ground truth. Anti-bullshit principle: if measured data exists, USE the measured data. Layered RULER calibration on top of the existing predictor: - NEW data/ruler_kb.json — 12 models from RULER paper Table 3 + DeepWiki leaderboard. Each row carries 4K/8K/16K/32K/64K/128K aggregate scores, claimed-vs-effective context, params, and multi-name aliases (org/name + bare-name + unsloth mirrors so autocomplete-pasted ids hit). Models: GPT-4-1106, Command-R-35B, Yi-34B-200K, Mixtral-8x7B/-8x22B, Mistral-7B-v0.2, ChatGLM3-6B, LWM-7B, Llama-3.1-70B-Instruct, Gemini-1.5-Pro, Jamba-1.5-Large, Qwen2.5-14B-1M. - `loadRulerKB()` + `lookupRulerModel()` + `calibrateNIAH()` in niah_reasoning.js. Lookup is case-insen…5c94f4b -
v0.8.5 Speculative-Decode Compatibility Checker — anti-bullshit pack #11
Speculative decoding (vLLM, SGLang, llama.cpp, transformers `assistant_model`) requires the draft and target model to share an EXACT vocabulary. If token IDs disagree, every draft token is rejected by the target's verifier — you pay BOTH compute costs AND get WORSE throughput than baseline. The system reports nominal output (just slower), so the bug is invisible in unit tests. vLLM #4570 / #16757 / #20409 / #12488 all surface variants of this. 🔬 Spec-Decode (19th mode): - Two HF model id inputs with autocomplete (reuses v0.7.4 infra) - Async fetch `tokenizer.json` from HF Hub for both ids; falls back to `tokenizer_config.json` when the canonical artifact is missing - Compares: tokenizer type (BPE/Unigram/WordPiece), vocab size, full token→id sample on the smaller side, special tokens (BOS/EOS/PAD/UNK), added tokens (chat-template extensions) - Speedup band based on param ratio (parsed from id "8B"/"72B" hints OR derived from `config.json` hidden_size × layers …a499fd5 -
v0.8.3 PEFT Anti-Pattern Checker — anti-bullshit pack #9
PEFT's `get_peft_model(base, config)` creates a FRESH adapter — it does not load saved weights from a path. Users who paste tutorial code and try to resume from a checkpoint silently throw away their training. peft #2115 has the canonical bug report (12+ thumbs). 🔧 PEFT Lint (17th mode): - Paste your PEFT/LoRA training script - Static linter scans for 4 classes of bug: 1. silent_base_load — `get_peft_model` + checkpoint path string in same script, no `PeftModel.from_pretrained`. Suggests the fix inline with the detected path. 2. qlora_order — `prepare_model_for_kbit_training` AFTER `get_peft_model`. Reversed order silently breaks gradient flow through LoRA layers (loss → NaN or training nothing). 3. target_modules_mismatch — user's `target_modules=[…]` doesn't overlap with the conventional list for the architecture detected from a model id string. Covers Llama / Mistral / Qwen2 / Phi / Phi-3 / Gemma / Falcon / Bloom / G…819758d -
v0.8.2 JSON CoT-aware Linter — anti-bullshit pack #8
Constrained-decoding engines (llguidance, Outlines, SGLang grammars) emit JSON properties in the order your schema declares them. If a schema places `answer` before `reasoning`, the model commits to the final answer first and the rationale that follows can only justify what was already committed — defeating Chain-of-Thought entirely. 📋 JSON CoT Linter (16th mode): - Paste any JSON Schema or example response object - Linter classifies each field as reasoning / answer / other via name patterns (reason|think|thought|cot|chain.of.thought|analysis| explanation|rationale|… vs answer|result|verdict|final_answer|…) - Verdict codes: good_order / anti_pattern / missing_reasoning / missing_answer / no_cot_fields / invalid_json / non_object / empty - Suggested-fix block emits a reordered schema (reasoning → other → answer) with `required[]` mirrored to match — copy back into prompt Pure logic in `js/json_cot_linter.js` (codes + params, no human strings); main.js renders …b0f51d4 -
v0.8.1 Solutions Hub — integrator portal (30 pains × 65 external tools)
🧭 Solutions Hub mode: every documented LLM-eval pain mapped to (a) the tafagent mode that addresses it (16 of 30 covered) and (b) the best-of-breed external tools the community already trusts (65 curated links across RAGAS, MTEB, HELM, MCP Schema Validator, llm-stats, llguidance, GlitchMiner, RULER, JSONLint, FastMCP, LangSmith, TruLens, DeepEval, etc.). Strategy shift: tafagent as integrator, not silo. If a canonical solution exists publicly we link, not rebuild. Round-3 + round-4 research (2026-05-07) validated this — 6 of 10 candidate pains had production-grade tools already (skip build). Hub closes the loop: users land here, find the right tool, regardless of who shipped it. Coverage: 7 categories — eval reliability · diagnostic · setup · training · retrieval · multimodal · observability. Each pain entry has: tafagent_mode (or null/planned), external_tools[] (name+url+type), best_for, not_for. Tool types: tool / leaderboard / paper / article / docs / issue / spec / benchmark. U…fbf3edc -
v0.8.0 Benchmark Saturation Detector — anti-bullshit pack #6
New 📈 Saturation mode: pick a benchmark, get top-3 frontier scores, spread, mean, and a verdict (saturated / near-saturated / discriminative) plus recommended replacements. Addresses the explicit "MMLU is saturated, what now?" pain documented in arxiv 2508.15361 and 2026 leaderboards. Data sources: - Live: DemandSphere AI Frontier Model Tracker (CC BY-NC 4.0) — 66 models, weekly updates, no auth, no rate limit - Fallback: baked snapshot data/saturation_kb.json (15 benchmarks, 5 papers cited, last fetch 2026-05-05) Validation (research-physics, pre-registered 2026-05-07): - 3 clean pass (MATH/HLE/SWE-bench) - 3 borderline (GPQA/HumanEval rule sensitivity ±1pp) - 1 falsified (AIME 2025 saturated faster than expected — itself a useful tool output: tells users "AIME 2025 already at 96-100%, switch to HLE") Shipped with explicit threshold-sensitivity disclaimer. Coverage: MMLU/MMLU-Pro/GPQA-Diamond/SWE-bench-Verified/HumanEval/ LiveCodeBench-Pro/MATH/AIME-2025/HLE/ARC-AGI-2/HellaS…7c80934
-
v0.6: TAF Card hero+accordion UI + γ_check + Lean+Mathlib badges
- Hero strip (arch class + meta + 3 pills: count breakdown, γ headline, Anti-Ising) + 4 accordions: Recipes, Diagnostics, Verification, Provenance - New js/gamma_check.js: Padé closed-form + classifyRegime (normal/fraud/compressed/overpade/swa), browser-only - New js/lean_badges.js + data/lean_status.json: manifest of 37 theorems in 7 groups + 1 substantive finding (V_derivative_ne_RG_beta factor-2). Sortable theorem table, hero Anti-Ising pill links to Taf/Identities.lean#L188 (beta_chi_closure) - Verdict aggregation: count breakdown (✅ · ⚠ · ❌) replaces worst-of-N confusion when orthogonal recipes disagree - ⓘ tooltips inline: hero pills (3), Profile form params (6), Diagnostics keys (6), γ_check results (5) - Help v0.6 section: TAF Card layout + 5 regime use cases + Cardy ΔH + concrete Lean reverify command + 37/1 count, all 4 langs - i18n EN/ES/FR/ZH parity: 295+ keys per lang, 0 missing - gamma_check classifier verified 5/5 regimes via headless Chrome simulation Co-Authored-By: C…28ac122
-
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: 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