Spaces:
Running
Running
Commit ·
5e693d9
1
Parent(s): d6c4f60
v0.8.10: fix community feed + falsification gated behind Pyodide; point LIMITATIONS link to GitHub-rendered
Browse filesloadCommunityFeed() and renderFalsificationDashboard() were called inside
enableUI(), which only runs after Pyodide finishes loading. If the Pyodide
CDN is blocked/slow/offline, enableUI() never fires and the community feed
stays stuck on "Loading..." forever despite being Pyodide-independent
(fetch + DOM only). Moved both to bootstrap before loadPyodideAndTaf().
Also repointed the in-app docs/LIMITATIONS.md link (4 langs) to the
GitHub-rendered blob URL so it renders as a page instead of raw markdown.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- js/i18n.js +4 -4
- js/main.js +5 -3
js/i18n.js
CHANGED
|
@@ -1055,7 +1055,7 @@ export const TRANSLATIONS = {
|
|
| 1055 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 on random corpus = sliding-window attention signature (Mistral / Gemma family).",
|
| 1056 |
"gamma_check.regime.unknown.desc": "Inputs out of range or γ_obs > 1 without random-corpus flag. Verify measurement.",
|
| 1057 |
"gamma_check.validity.title": "⚠ Closed-form γ may not apply to this model",
|
| 1058 |
-
"gamma_check.validity.body": "The Padé prediction assumes natural training without explicit attention regularization. Your η falls outside the validated band [0.85, 1.15], so the closed-form is not reliable here. Trust empirical γ (from the Phase Diagram or Diagnose CLI) over the prediction. Possible causes: heavy regularization forcing near-uniform attention, fine-tuning collapse, sliding-window architecture, or non-standard training losses. See <a href=\"docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 1059 |
"gamma_check.validity.fraud.hint": "Hint: η ≪ 1 typically indicates θ marketing inflation (YaRN-style) without genuine context extension, OR attention forced near-uniform by training.",
|
| 1060 |
"gamma_check.validity.compressed.hint":"Hint: η ∈ [0.01, 0.5) is common in instruction-tuned / RLHF models where post-training has flattened the attention distribution.",
|
| 1061 |
"gamma_check.validity.overpade.hint": "Hint: η > 1.5 may indicate an undertrained early checkpoint, a Lerch-corrected regime, or correction terms beyond the Padé approximation.",
|
|
@@ -1206,7 +1206,7 @@ export const TRANSLATIONS = {
|
|
| 1206 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 sobre corpus aleatorio = firma de sliding-window attention (familias Mistral / Gemma).",
|
| 1207 |
"gamma_check.regime.unknown.desc": "Entradas fuera de rango o γ_obs > 1 sin flag de corpus aleatorio. Verifica la medición.",
|
| 1208 |
"gamma_check.validity.title": "⚠ La fórmula cerrada de γ puede no aplicar a este modelo",
|
| 1209 |
-
"gamma_check.validity.body": "La predicción de Padé asume entrenamiento natural sin regularización explícita de la atención. Tu η cae fuera de la banda validada [0.85, 1.15], por lo que la fórmula cerrada no es fiable aquí. Confía en γ empírico (Phase Diagram o Diagnose CLI) por encima de la predicción. Causas posibles: regularización fuerte que fuerza atención casi uniforme, colapso por fine-tuning, arquitectura sliding-window, o pérdidas no estándar. Ver <a href=\"docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 1210 |
"gamma_check.validity.fraud.hint": "Pista: η ≪ 1 suele indicar inflación de θ tipo marketing (YaRN) sin extensión real de contexto, O atención forzada a casi uniforme por el entrenamiento.",
|
| 1211 |
"gamma_check.validity.compressed.hint":"Pista: η ∈ [0.01, 0.5) es habitual en modelos instruction-tuned / RLHF donde el post-entrenamiento ha aplanado la distribución de atención.",
|
| 1212 |
"gamma_check.validity.overpade.hint": "Pista: η > 1.5 puede indicar checkpoint temprano sub-entrenado, régimen Lerch-corregido, o términos de corrección más allá de la aproximación de Padé.",
|
|
@@ -2330,7 +2330,7 @@ export const TRANSLATIONS = {
|
|
| 2330 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 sur corpus aléatoire = signature de sliding-window attention (familles Mistral / Gemma).",
|
| 2331 |
"gamma_check.regime.unknown.desc": "Entrées hors plage ou γ_obs > 1 sans flag corpus_aléatoire. Vérifiez la mesure.",
|
| 2332 |
"gamma_check.validity.title": "⚠ La forme close de γ peut ne pas s'appliquer à ce modèle",
|
| 2333 |
-
"gamma_check.validity.body": "La prédiction de Padé suppose un entraînement naturel sans régularisation explicite de l'attention. Votre η sort de la bande validée [0.85, 1.15], donc la forme close n'est pas fiable ici. Faites confiance au γ empirique (Phase Diagram ou Diagnose CLI) plutôt qu'à la prédiction. Causes possibles : régularisation forte forçant une attention quasi uniforme, effondrement au fine-tuning, architecture sliding-window, ou pertes non standard. Voir <a href=\"docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 2334 |
"gamma_check.validity.fraud.hint": "Indice : η ≪ 1 indique typiquement une inflation marketing de θ (style YaRN) sans vraie extension de contexte, OU une attention forcée quasi uniforme par l'entraînement.",
|
| 2335 |
"gamma_check.validity.compressed.hint":"Indice : η ∈ [0.01, 0.5) est courant dans les modèles instruction-tuned / RLHF où le post-entraînement a aplati la distribution d'attention.",
|
| 2336 |
"gamma_check.validity.overpade.hint": "Indice : η > 1.5 peut indiquer un checkpoint précoce sous-entraîné, un régime Lerch-corrigé, ou des termes de correction au-delà de l'approximation de Padé.",
|
|
@@ -3454,7 +3454,7 @@ export const TRANSLATIONS = {
|
|
| 3454 |
"gamma_check.regime.swa.desc": "随机语料上 γ_obs > 1.05 = 滑动窗口注意力签名 (Mistral / Gemma 系列)。",
|
| 3455 |
"gamma_check.regime.unknown.desc": "输入超范围或 γ_obs > 1 但未标记随机语料。请核验测量。",
|
| 3456 |
"gamma_check.validity.title": "⚠ 闭式 γ 可能不适用于此模型",
|
| 3457 |
-
"gamma_check.validity.body": "Padé 预测假设没有显式注意力正则化的自然训练。你的 η 落在已验证带 [0.85, 1.15] 之外,因此闭式公式在此处不可靠。优先信任经验 γ (Phase Diagram 或 Diagnose CLI) 而非预测值。可能原因:强正则化迫使注意力近乎均匀、微调导致崩溃、滑动窗口架构、或非标准训练损失。详见 <a href=\"docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>。",
|
| 3458 |
"gamma_check.validity.fraud.hint": "提示:η ≪ 1 通常表示 θ 营销虚标 (YaRN 风格) 而非真实上下文扩展,或训练强制注意力近乎均匀。",
|
| 3459 |
"gamma_check.validity.compressed.hint":"提示:η ∈ [0.01, 0.5) 在 instruction-tuned / RLHF 模型中常见,后训练已使注意力分布扁平化。",
|
| 3460 |
"gamma_check.validity.overpade.hint": "提示:η > 1.5 可能表示欠训练早期 checkpoint、Lerch 修正体制、或超出 Padé 近似的修正项。",
|
|
|
|
| 1055 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 on random corpus = sliding-window attention signature (Mistral / Gemma family).",
|
| 1056 |
"gamma_check.regime.unknown.desc": "Inputs out of range or γ_obs > 1 without random-corpus flag. Verify measurement.",
|
| 1057 |
"gamma_check.validity.title": "⚠ Closed-form γ may not apply to this model",
|
| 1058 |
+
"gamma_check.validity.body": "The Padé prediction assumes natural training without explicit attention regularization. Your η falls outside the validated band [0.85, 1.15], so the closed-form is not reliable here. Trust empirical γ (from the Phase Diagram or Diagnose CLI) over the prediction. Possible causes: heavy regularization forcing near-uniform attention, fine-tuning collapse, sliding-window architecture, or non-standard training losses. See <a href=\"https://github.com/karlesmarin/tafagent/blob/main/docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 1059 |
"gamma_check.validity.fraud.hint": "Hint: η ≪ 1 typically indicates θ marketing inflation (YaRN-style) without genuine context extension, OR attention forced near-uniform by training.",
|
| 1060 |
"gamma_check.validity.compressed.hint":"Hint: η ∈ [0.01, 0.5) is common in instruction-tuned / RLHF models where post-training has flattened the attention distribution.",
|
| 1061 |
"gamma_check.validity.overpade.hint": "Hint: η > 1.5 may indicate an undertrained early checkpoint, a Lerch-corrected regime, or correction terms beyond the Padé approximation.",
|
|
|
|
| 1206 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 sobre corpus aleatorio = firma de sliding-window attention (familias Mistral / Gemma).",
|
| 1207 |
"gamma_check.regime.unknown.desc": "Entradas fuera de rango o γ_obs > 1 sin flag de corpus aleatorio. Verifica la medición.",
|
| 1208 |
"gamma_check.validity.title": "⚠ La fórmula cerrada de γ puede no aplicar a este modelo",
|
| 1209 |
+
"gamma_check.validity.body": "La predicción de Padé asume entrenamiento natural sin regularización explícita de la atención. Tu η cae fuera de la banda validada [0.85, 1.15], por lo que la fórmula cerrada no es fiable aquí. Confía en γ empírico (Phase Diagram o Diagnose CLI) por encima de la predicción. Causas posibles: regularización fuerte que fuerza atención casi uniforme, colapso por fine-tuning, arquitectura sliding-window, o pérdidas no estándar. Ver <a href=\"https://github.com/karlesmarin/tafagent/blob/main/docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 1210 |
"gamma_check.validity.fraud.hint": "Pista: η ≪ 1 suele indicar inflación de θ tipo marketing (YaRN) sin extensión real de contexto, O atención forzada a casi uniforme por el entrenamiento.",
|
| 1211 |
"gamma_check.validity.compressed.hint":"Pista: η ∈ [0.01, 0.5) es habitual en modelos instruction-tuned / RLHF donde el post-entrenamiento ha aplanado la distribución de atención.",
|
| 1212 |
"gamma_check.validity.overpade.hint": "Pista: η > 1.5 puede indicar checkpoint temprano sub-entrenado, régimen Lerch-corregido, o términos de corrección más allá de la aproximación de Padé.",
|
|
|
|
| 2330 |
"gamma_check.regime.swa.desc": "γ_obs > 1.05 sur corpus aléatoire = signature de sliding-window attention (familles Mistral / Gemma).",
|
| 2331 |
"gamma_check.regime.unknown.desc": "Entrées hors plage ou γ_obs > 1 sans flag corpus_aléatoire. Vérifiez la mesure.",
|
| 2332 |
"gamma_check.validity.title": "⚠ La forme close de γ peut ne pas s'appliquer à ce modèle",
|
| 2333 |
+
"gamma_check.validity.body": "La prédiction de Padé suppose un entraînement naturel sans régularisation explicite de l'attention. Votre η sort de la bande validée [0.85, 1.15], donc la forme close n'est pas fiable ici. Faites confiance au γ empirique (Phase Diagram ou Diagnose CLI) plutôt qu'à la prédiction. Causes possibles : régularisation forte forçant une attention quasi uniforme, effondrement au fine-tuning, architecture sliding-window, ou pertes non standard. Voir <a href=\"https://github.com/karlesmarin/tafagent/blob/main/docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>.",
|
| 2334 |
"gamma_check.validity.fraud.hint": "Indice : η ≪ 1 indique typiquement une inflation marketing de θ (style YaRN) sans vraie extension de contexte, OU une attention forcée quasi uniforme par l'entraînement.",
|
| 2335 |
"gamma_check.validity.compressed.hint":"Indice : η ∈ [0.01, 0.5) est courant dans les modèles instruction-tuned / RLHF où le post-entraînement a aplati la distribution d'attention.",
|
| 2336 |
"gamma_check.validity.overpade.hint": "Indice : η > 1.5 peut indiquer un checkpoint précoce sous-entraîné, un régime Lerch-corrigé, ou des termes de correction au-delà de l'approximation de Padé.",
|
|
|
|
| 3454 |
"gamma_check.regime.swa.desc": "随机语料上 γ_obs > 1.05 = 滑动窗口注意力签名 (Mistral / Gemma 系列)。",
|
| 3455 |
"gamma_check.regime.unknown.desc": "输入超范围或 γ_obs > 1 但未标记随机语料。请核验测量。",
|
| 3456 |
"gamma_check.validity.title": "⚠ 闭式 γ 可能不适用于此模型",
|
| 3457 |
+
"gamma_check.validity.body": "Padé 预测假设没有显式注意力正则化的自然训练。你的 η 落在已验证带 [0.85, 1.15] 之外,因此闭式公式在此处不可靠。优先信任经验 γ (Phase Diagram 或 Diagnose CLI) 而非预测值。可能原因:强正则化迫使注意力近乎均匀、微调导致崩溃、滑动窗口架构、或非标准训练损失。详见 <a href=\"https://github.com/karlesmarin/tafagent/blob/main/docs/LIMITATIONS.md\" target=\"_blank\">docs/LIMITATIONS.md</a>。",
|
| 3458 |
"gamma_check.validity.fraud.hint": "提示:η ≪ 1 通常表示 θ 营销虚标 (YaRN 风格) 而非真实上下文扩展,或训练强制注意力近乎均匀。",
|
| 3459 |
"gamma_check.validity.compressed.hint":"提示:η ∈ [0.01, 0.5) 在 instruction-tuned / RLHF 模型中常见,后训练已使注意力分布扁平化。",
|
| 3460 |
"gamma_check.validity.overpade.hint": "提示:η > 1.5 可能表示欠训练早期 checkpoint、Lerch 修正体制、或超出 Padé 近似的修正项。",
|
js/main.js
CHANGED
|
@@ -159,9 +159,6 @@ function enableUI() {
|
|
| 159 |
$("compare-recipe").disabled = false;
|
| 160 |
$("compare-btn").disabled = false;
|
| 161 |
$("inspector-btn").disabled = false;
|
| 162 |
-
// Render community feed + falsification (independent of Pyodide)
|
| 163 |
-
renderFalsificationDashboard();
|
| 164 |
-
loadCommunityFeed();
|
| 165 |
// Restore from URL if present
|
| 166 |
parseUrlState();
|
| 167 |
}
|
|
@@ -4616,6 +4613,11 @@ $("longscore-example-bad-btn")?.addEventListener("click", () => {
|
|
| 4616 |
// Bootstrap
|
| 4617 |
// ════════════════════════════════════════════════════════════════════
|
| 4618 |
initI18n();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4619 |
loadPyodideAndTaf().catch(err => {
|
| 4620 |
setStatus(`❌ Failed to initialise: ${err.message || err}`);
|
| 4621 |
console.error(err);
|
|
|
|
| 159 |
$("compare-recipe").disabled = false;
|
| 160 |
$("compare-btn").disabled = false;
|
| 161 |
$("inspector-btn").disabled = false;
|
|
|
|
|
|
|
|
|
|
| 162 |
// Restore from URL if present
|
| 163 |
parseUrlState();
|
| 164 |
}
|
|
|
|
| 4613 |
// Bootstrap
|
| 4614 |
// ════════════════════════════════════════════════════════════════════
|
| 4615 |
initI18n();
|
| 4616 |
+
// Pyodide-independent panels: render immediately so they survive a Pyodide
|
| 4617 |
+
// load failure (CDN blocked / offline / slow region). These use only fetch +
|
| 4618 |
+
// DOM, never state.pyodide — must NOT be gated behind enableUI().
|
| 4619 |
+
renderFalsificationDashboard();
|
| 4620 |
+
loadCommunityFeed();
|
| 4621 |
loadPyodideAndTaf().catch(err => {
|
| 4622 |
setStatus(`❌ Failed to initialise: ${err.message || err}`);
|
| 4623 |
console.error(err);
|