Spaces:
Running
Running
Add ordered memory template and adapter checks with scenario demos
Browse filesFiles changed (22)
- README.md+5
- css/resolver.css+2
- docs/LIMITATIONS.md+5
- docs/RELEASE_NOTES_2026-10.md+9
- docs/guide-integration.md+6
- docs/resolver-module-audit.md+7
- docs/resolver.md+39-1
- index.html+2
- js/demo_i18n.js+1-1
- js/resolver_checks.jsAdded+30
- js/resolver_checks_i18n.jsAdded+48
- js/resolver_demo.js+1
- js/resolver_i18n.js+2-1
- js/resolver_local.js+4-1
- js/resolver_review.js+1
- js/resolver_summary.js+4-2
- js/resolver_ui.js+26-2
- tests/resolver.test.mjs+1
- tests/resolver_browser.mjs+1
- tests/resolver_checks.test.mjsAdded+51
- tests/resolver_checks_browser.mjsAdded+61
- tests/resolver_local_browser.mjs+1-1
66 unmodified lines67686970717266 unmodified linesby model/data, sampling, execution and fit, with missing/different fields and aprioritized next check. The offline attention example demonstrates it. Customfield names and protocol values stay out of the case report.[**🎬 Watch the resolver demo**](https://karlesmarin.github.io/tafagent/?demo=resolver&lang=en)([Hugging Face](https://karlexmarin-taf-agent.static.hf.space/?demo=resolver&lang=en)):66 unmodified lines676869707172737475767766 unmodified linesby model/data, sampling, execution and fit, with missing/different fields and aprioritized next check. The offline attention example demonstrates it. Customfield names and protocol values stay out of the case report.Memory, chat-template and adapter results now include **See the verificationsteps**: 17 evidence-based priorities and three ordered checks per case. Tenoptional example situations show how the steps change. The main animated demohighlights them; recalculation, follow-up and local reports use the current plan.These instructions do not execute a model or certify a fix.[**🎬 Watch the resolver demo**](https://karlesmarin.github.io/tafagent/?demo=resolver&lang=en)([Hugging Face](https://karlexmarin-taf-agent.static.hf.space/?demo=resolver&lang=en)):
27 unmodified lines282930313227 unmodified lines#resolver-protocol { scroll-margin-top:4rem; }#resolver-protocol li { margin:.6rem 0; }#resolver-protocol code { white-space:normal; overflow-wrap:anywhere; }#resolver-dialog :focus-visible { outline:2px solid var(--accent,#58a6ff); outline-offset:3px; }@media(max-width:600px) { #resolver-dialog { padding:1rem; } .resolver-actions { flex-direction:column; } }27 unmodified lines2829303132333427 unmodified lines#resolver-protocol { scroll-margin-top:4rem; }#resolver-protocol li { margin:.6rem 0; }#resolver-protocol code { white-space:normal; overflow-wrap:anywhere; }#resolver-checks { scroll-margin-top:4rem; border:0; padding:0; margin:1rem 0; background:none; }#resolver-checks li + li { margin-top:.8rem; }#resolver-dialog :focus-visible { outline:2px solid var(--accent,#58a6ff); outline-offset:3px; }@media(max-width:600px) { #resolver-dialog { padding:1rem; } .resolver-actions { flex-direction:column; } }
100 unmodified lines101102103104105106100 unmodified linesCustom fields affect missing/difference counts without exposing their names orvalues. The next step follows context issues and protocol differences beforeasking for repetition; no missing settings are invented.The local case report uses schema version 3; its `review` object uses version 1.`independently_verified: false` is explicit, including after a user reports that100 unmodified lines101102103104105106107108109110111100 unmodified linesCustom fields affect missing/difference counts without exposing their names orvalues. The next step follows context issues and protocol differences beforeasking for repetition; no missing settings are invented.Memory, template and adapter plans similarly prioritize current findings andprovide three verification steps. Their `executed: false` status remains explicit.Estimated fit, a present template or matching adapter metadata do not establishsuccessful execution. The illustrative scenario controls replace demo inputs;they do not convert a user's weights or modify a runtime.The local case report uses schema version 3; its `review` object uses version 1.`independently_verified: false` is explicit, including after a user reports that
1 unmodified line2345671 unmodified line## 25 October: review the evidence behind a resultAttention follow-up: **Show protocol details** lists 19 known conditions acrossfour groups, marks missing documentation and reference differences, and choosesthe next check from five explicit priorities. Custom field names and protocol1 unmodified line23456789101112131415161 unmodified line## 25 October: review the evidence behind a resultMemory, templates and adapters now provide **See the verification steps**, with17 priorities and three ordered instructions selected from current findings.Ten optional scenarios exercise memory budgets/loading, template selection andadapter base declarations. Recalculations update the plan; follow-up and reportsuse it consistently. The narrated demo highlights the steps. Soft-prompt adaptersno longer receive a LoRA-style missing-target warning in the resolver. TAF doesnot execute these runtime checks or certify their outcome. Four-language help,README, module audit and guide chapters 20/28/40/R5 describe the feature.Attention follow-up: **Show protocol details** lists 19 known conditions acrossfour groups, marks missing documentation and reference differences, and choosesthe next check from five explicit priorities. Custom field names and protocol
47 unmodified lines48495051525347 unmodified lineslas condiciones de la ejecución real y R5 cómo abrir el panel y su demo. Losenlaces conservan el regreso al mismo formulario, sin restaurar datos pegados.La demo `?demo=resolver&lang=es` abre la revisión en su quinto paso, antes delseguimiento. R5 explica este recorrido en ambos idiomas. El informe descargadoincluye la revisión (esquema 3); no es una medición nueva ni una certificación.47 unmodified lines48495051525354555657585947 unmodified lineslas condiciones de la ejecución real y R5 cómo abrir el panel y su demo. Losenlaces conservan el regreso al mismo formulario, sin restaurar datos pegados.Memoria, plantillas y adaptadores añaden tres pasos de comprobación según loshallazgos actuales y diez escenarios de ejemplo. Los capítulos de caché KV (20),PEFT (28), evaluación (40) y el manual de TAF (R5) explican este seguimiento.Recalcular cambia el plan, pero no implica ejecutar las comprobaciones en elentorno del usuario. Los enlaces de ida y vuelta conservan su comportamiento.La demo `?demo=resolver&lang=es` abre la revisión en su quinto paso, antes delseguimiento. R5 explica este recorrido en ambos idiomas. El informe descargadoincluye la revisión (esquema 3); no es una medición nueva ni una certificación.
31 unmodified lines32333435363731 unmodified linesde B, diferencias, documentación pendiente y repetición controlada, por ese orden.No valida la exactitud de los metadatos ni modifica los informes originales.| Modo | Implementación principal | Datos y operación | Uso en el resolutor y límite ||---|---|---|---|| Profile | `main.js`, `python/taf_browser.py:profile_model` | Configuración HF → tarjeta X-2/X-19/X-1/X-3/X-5 | Formulario especializado. Son fórmulas; no inferencia ni calidad medida. Pyodide. |31 unmodified lines3233343536373839404142434431 unmodified linesde B, diferencias, documentación pendiente y repetición controlada, por ese orden.No valida la exactitud de los metadatos ni modifica los informes originales.Memoria, plantillas y adaptadores incorporan `resolver_checks.js`: 17 prioridadescon tres pasos ordenados, calculados desde el resultado actual. Los diez escenariosde ejemplo son opcionales y están etiquetados; no se ejecutan modelos. El resumen,la revisión, el seguimiento y el informe comparten el mismo plan. En adaptadores,la evidencia exportada son categorías de base/objetivos, no valores privados.Los métodos de soft prompts no reciben el aviso de objetivos LoRA ausentes.| Modo | Implementación principal | Datos y operación | Uso en el resolutor y límite ||---|---|---|---|| Profile | `main.js`, `python/taf_browser.py:profile_model` | Configuración HF → tarjeta X-2/X-19/X-1/X-3/X-5 | Formulario especializado. Son fórmulas; no inferencia ni calidad medida. Pyodide. |
138 unmodified lines139140141142143144145138 unmodified linesperiodic task is enabled by this feature. This feature provides the resolverand the links through which a future authorized integration can introduce users.## Adding a routeAdd an explicit entry to `CASES` in `js/resolver.js`, required-input validation,a pure computation that calls the appropriate TAF module, and a dedicated branch138 unmodified lines139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183138 unmodified linesperiodic task is enabled by this feature. This feature provides the resolverand the links through which a future authorized integration can introduce users.## Ordered checks for memory, templates and adapters`resolver_checks.js` selects one of 17 priorities from the current result:| Route | Priorities ||---|---|| Memory | Unsupported/missing geometry; weight budget exceeded; loading failure; KV budget exceeded; tight estimated margin; estimate fits || Template | Missing from inspected files; multiple choices without an unambiguous default; present || Adapter | Base unidentified/not compared; base mismatch; family-only match; target modules; saved embeddings; per-module settings; unusual scaling; loading/activation |**See the verification steps** opens three instructions: the priority check,what to observe in the user's environment, and how to interpret or redirect anunresolved case. The summary and **It still fails** share these instructions.They are not executed by TAF. A recalculation rebuilds the plan; changing inputsclears it. Existing notices remain visible when a higher-priority issue wins.Conditional tool buttons open the existing catalog's input/limit explanation,preserving the current result; they neither run a tool nor infer another cause.After loading an example, **Explore another example** offers four memory cases,three template cases and three adapter cases. Choosing one resets that demo'sinitial comparison, stays explicitly illustrative and performs no HF lookup ormodel run. Ordinary user-input results do not show these replacement controls.The animated memory demo highlights the ordered checks in step five.Schema-3 reports add `summary.checks` and `review.checks` (version 1), containingthe priority, localized instructions and `executed: false`; `demo_scenario`identifies a selected example. Adapter results retain only categorical base andtarget evidence, not pasted configuration values or the intended private base ID.Soft-prompt methods do not receive a LoRA-style missing-target warning. A missingtarget list for a method that uses targets prompts inspection of actual defaults,not an automatic conclusion that training failed.The guidance was checked against the official [chat-template documentation](https://huggingface.co/docs/transformers/chat_templating)and [PEFT troubleshooting](https://huggingface.co/docs/peft/developer_guides/troubleshooting)on 25 October 2026. Memory guidance follows the actual Fit Check assumptions;runtime memory still requires measurement. No install, training, upload or publicreply is triggered by these steps.## Extending a routeAdd an explicit entry to `CASES` in `js/resolver.js`, required-input validation,a pure computation that calls the appropriate TAF module, and a dedicated branch
70 unmodified lines717273747576354 unmodified lines43143243343443543670 unmodified lines<p data-i18n="resolver.review_help"></p><p data-i18n="resolver.return_help"></p><p data-i18n="resolver.protocol_help"></p><p data-i18n="resolver.summary_help"></p><button type="button" data-resolver-demo-open data-i18n="resolver.demo_start">See how it works</button><h3 data-i18n="updates.title">Guide, studies and optional demos</h3>354 unmodified lines<p data-i18n="resolver.review_help"></p><p data-i18n="resolver.return_help"></p><p data-i18n="resolver.protocol_help"></p><p data-i18n="resolver.summary_help"></p><button type="button" data-resolver-demo-open data-i18n="resolver.demo_start">See how it works</button><p data-i18n="updates.guide">The guide helps you choose a task and search Hugging Face models. Selecting one prepares TAF without starting analysis.</p>70 unmodified lines71727374757677354 unmodified lines43243343443543643743870 unmodified lines<p data-i18n="resolver.review_help"></p><p data-i18n="resolver.return_help"></p><p data-i18n="resolver.protocol_help"></p><p data-i18n="resolver.checks_help"></p><p data-i18n="resolver.summary_help"></p><button type="button" data-resolver-demo-open data-i18n="resolver.demo_start">See how it works</button><h3 data-i18n="updates.title">Guide, studies and optional demos</h3>354 unmodified lines<p data-i18n="resolver.review_help"></p><p data-i18n="resolver.return_help"></p><p data-i18n="resolver.protocol_help"></p><p data-i18n="resolver.checks_help"></p><p data-i18n="resolver.summary_help"></p><button type="button" data-resolver-demo-open data-i18n="resolver.demo_start">See how it works</button><p data-i18n="updates.guide">The guide helps you choose a task and search Hugging Face models. Selecting one prepares TAF without starting analysis.</p>
1073 unmodified lines10741075107610771078107910801073 unmodified liness2:['TAF asks when it fails: choose “while generating” and continue','TAF pregunta cuándo falla: elige «al generar» y continúa','TAF demande quand survient l’échec : choisissez « à la génération » et continuez','TAF 询问何时失败:选择“生成时”并继续'],s3:['Load the saved example: 24 GiB, BF16, 131,072 tokens','Carga el ejemplo guardado: 24 GiB, BF16, 131.072 tokens','Chargez l’exemple : 24 Gio, BF16, 131 072 tokens','加载已保存示例:24 GiB、BF16、131,072 个词元'],s4:['Compare memory, reduce context and watch the estimate change','Compara la memoria, reduce el contexto y observa la nueva estimación','Comparez la mémoire, réduisez le contexte et observez l’estimation','比较内存、缩短上下文,观察估算变化'],s5:['Review the evidence and what remains to check. Still failing? Follow the next checks.','Revisa la evidencia y lo que falta comprobar. ¿Sigue fallando? Sigue las comprobaciones propuestas.','Examinez les preuves et ce qui reste à vérifier. Toujours un échec ? Suivez les vérifications proposées.','复核证据和尚未验证的内容。仍然失败?继续按建议检查。'],s6:['Continue with the guide or download the case report','Continúa con la guía o descarga el informe del caso','Continuez avec le guide ou téléchargez le rapport','继续阅读指南或下载案例报告'],'x.title':['What the resolver just showed you','Qué te acaba de mostrar el resolutor','Ce que le parcours vient de montrer','刚才演示了什么'],'x.learned':['A described problem leads to a route, a bounded estimate, an adjustment and follow-up. No GPU execution or automatic fix is claimed.','Un problema descrito lleva a una ruta, una estimación con límites, un ajuste y un seguimiento. No se ha ejecutado una GPU ni aplicado una reparación automática.','Un problème décrit mène à un parcours, une estimation limitée, un ajustement et un suivi. Aucun calcul GPU ni réparation automatique n’a été effectué.','从问题描述进入路线,得到有适用范围的估算、调整及后续检查。未运行 GPU,也未自动修复模型。'],1073 unmodified lines10741075107610771078107910801073 unmodified liness2:['TAF asks when it fails: choose “while generating” and continue','TAF pregunta cuándo falla: elige «al generar» y continúa','TAF demande quand survient l’échec : choisissez « à la génération » et continuez','TAF 询问何时失败:选择“生成时”并继续'],s3:['Load the saved example: 24 GiB, BF16, 131,072 tokens','Carga el ejemplo guardado: 24 GiB, BF16, 131.072 tokens','Chargez l’exemple : 24 Gio, BF16, 131 072 tokens','加载已保存示例:24 GiB、BF16、131,072 个词元'],s4:['Compare memory, reduce context and watch the estimate change','Compara la memoria, reduce el contexto y observa la nueva estimación','Comparez la mémoire, réduisez le contexte et observez l’estimation','比较内存、缩短上下文,观察估算变化'],s5:['Review the evidence and the ordered checks. Still failing? Follow the next steps.','Revisa la evidencia y los pasos ordenados. ¿Sigue fallando? Continúa con las comprobaciones.','Examinez les preuves et les étapes ordonnées. Toujours un échec ? Suivez les vérifications.','复核证据及有序步骤。仍然失败?继续按步骤检查。'],s6:['Continue with the guide or download the case report','Continúa con la guía o descarga el informe del caso','Continuez avec le guide ou téléchargez le rapport','继续阅读指南或下载案例报告'],'x.title':['What the resolver just showed you','Qué te acaba de mostrar el resolutor','Ce que le parcours vient de montrer','刚才演示了什么'],'x.learned':['A described problem leads to a route, a bounded estimate, an adjustment and follow-up. No GPU execution or automatic fix is claimed.','Un problema descrito lleva a una ruta, una estimación con límites, un ajuste y un seguimiento. No se ha ejecutado una GPU ni aplicado una reparación automática.','Un problème décrit mène à un parcours, une estimation limitée, un ajustement et un suivi. Aucun calcul GPU ni réparation automatique n’a été effectué.','从问题描述进入路线,得到有适用范围的估算、调整及后续检查。未运行 GPU,也未自动修复模型。'],
123456789101112131415161718192021222324252627282930// Priorities based on available evidence only. No inference or automatic fixes.export function selectResolverChecks({route,result,inputs={}}){ if(!result)return null; let priority; if(route==='memory'){ if(!['limited','weights_bound','load_other','kv_bound','fits_tight','fits_comfortably'].includes(result.status))return null; priority=result.status==='limited'?'architecture':result.status==='weights_bound'?'weights':inputs.stage==='load'?'load':result.status==='kv_bound'?'kv':result.status==='fits_tight'?'tight':'fit'; }else if(route==='template'){ if(!['missing','multiple','present'].includes(result.status))return null; priority=result.status; } else if(route==='adapter'){ const e=result.adapterEvidence; if(!e)return null; const notices=new Set(result.notices.map(n=>n.key)); priority=['base_unknown','base_declared'].includes(e.base)?'base':e.base==='base_mismatch'?'mismatch':e.base==='base_match_family'?'family':e.usesTargets&&e.targets==='targets_empty'?'targets':notices.has('adapter_modules_to_save_embed')?'embeddings':notices.has('adapter_patterns')?'patterns':notices.has('adapter_scaling_high')||notices.has('adapter_scaling_low')?'scale':'activation'; }else return null; const code=route+'_'+priority; const tools=route==='memory'?(priority==='architecture'?['memreal']:['launch','memreal']):route==='template'?(priority==='present'?['cot','drift']:['template']):priority==='activation'?['peft']:['adapter']; return {version:1,route,priority:code,title_key:'checks_'+code,steps:['check_'+code,'check_'+route+'_observe','check_'+route+'_interpret'],tools,executed:false};}
export const CHECK_DEMOS={memory:['kv','weights','load','fit'],template:['present','missing','multiple'],adapter:['mismatch','base','activation']};export function checkDemo(route,scenario,bundle){ if(bundle?.origin!=='demo'||!CHECK_DEMOS[route]?.includes(scenario))throw new Error('demo'); if(route==='memory')return {bundle,inputs:{vram:scenario==='weights'?4:24,context:scenario==='kv'?131072:4096,precision:'BF16',stage:scenario==='load'?'load':'generate'}}; if(route==='template')return {bundle:{...bundle,template:null,tokenizer:scenario==='missing'?{}:{chat_template:scenario==='multiple'?{chat:'{{ messages }}',tools:'{{ tools }}'}:'{{ messages }}'}},inputs:{}}; const cfg={peft_type:'LORA',base_model_name_or_path:'Example/Base-A',r:8,lora_alpha:16,target_modules:['q_proj','v_proj']}; return {bundle,inputs:{text:JSON.stringify(cfg,null,2),base:scenario==='base'?'':scenario==='mismatch'?'Example/Base-B':'Example/Base-A'}};}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748export const checksRows={ checks_title:['Your next checks','Tus siguientes comprobaciones','Vos prochaines vérifications','接下来要检查的事项'], checks_open:['See the verification steps','Ver los pasos de comprobación','Voir les étapes de vérification','查看检查步骤'], checks_tools:['Other tools, if your checks point to these cases. Each button shows its inputs and limits.','Otras herramientas, si tus comprobaciones apuntan a esos casos. Cada botón muestra sus entradas y límites.','Autres outils, si vos vérifications indiquent ces cas. Chaque bouton présente les données requises et les limites.','若检查结果指向这些情况,可查看其他工具。各按钮展示其输入要求及限制。'], checks_note:['These steps run in your environment when you choose. TAF has not executed them or verified a fix.','Estos pasos se realizan en tu entorno cuando tú decidas. TAF no los ha ejecutado ni ha verificado una solución.','Vous effectuez ces étapes dans votre environnement quand vous le souhaitez. TAF ne les a pas exécutées ni vérifié de solution.','这些步骤由您选择在自己的环境中执行。TAF 未执行步骤或验证修复。'], checks_examples:['Explore another example','Explorar otro ejemplo','Explorer un autre exemple','探索其他示例'], checks_memory_architecture:['Check the architecture first','Revisar primero la arquitectura','Vérifier d’abord l’architecture','先检查架构'], checks_memory_weights:['Weights exceed the budget','Los pesos superan el presupuesto','Les poids dépassent le budget','权重超出预算'], checks_memory_load:['Failure while loading','Fallo durante la carga','Échec au chargement','加载时失败'], checks_memory_kv:['Context exceeds the budget','El contexto supera el presupuesto','Le contexte dépasse le budget','上下文超出预算'], checks_memory_tight:['Little estimated headroom','Poco margen estimado','Faible marge estimée','估算余量很小'], checks_memory_fit:['Estimate fits; verify the run','La estimación cabe; verificar ejecución','Le budget tient ; vérifier l’exécution','估算可容纳;请验证实际运行'], checks_template_missing:['No template in inspected files','Sin plantilla en los archivos consultados','Aucun modèle de chat dans les fichiers examinés','已检查文件中没有模板'], checks_template_multiple:['Several templates to choose from','Varias plantillas entre las que elegir','Plusieurs modèles de chat à départager','有多个模板可选'], checks_template_present:['Template present; check its use','Plantilla presente; revisar su uso','Modèle de chat présent ; vérifier son usage','模板存在;检查使用方式'], checks_adapter_base:['Identify the exact base','Identificar la base exacta','Identifier la base exacte','识别确切基础模型'], checks_adapter_mismatch:['Declared bases differ','Las bases declaradas difieren','Les bases déclarées diffèrent','声明的基础模型不同'], checks_adapter_family:['Family match only','Solo coincide la familia','Seule la famille correspond','仅模型家族匹配'], checks_adapter_targets:['Check target modules','Revisar módulos objetivo','Vérifier les modules cibles','检查目标模块'], checks_adapter_embeddings:['Check saved embeddings','Revisar embeddings guardados','Vérifier les embeddings sauvegardés','检查保存的嵌入'], checks_adapter_patterns:['Check per-module settings','Revisar ajustes por módulo','Vérifier les réglages par module','检查各模块设置'], checks_adapter_scale:['Check the intended scaling','Revisar la escala prevista','Vérifier l’échelle prévue','检查预期缩放'], checks_adapter_activation:['Verify loading and activation','Verificar carga y activación','Vérifier chargement et activation','验证加载与启用'], check_memory_architecture:['Resolve the missing or unsupported geometry before using a dense-attention budget. Open Memory Reality to identify the mechanism and check your runtime’s architecture support.','Resuelve la geometría ausente o no admitida antes de usar un presupuesto de atención densa. Abre Memory Reality para identificar el mecanismo y comprueba el soporte de tu programa.','Résolvez la géométrie absente ou non prise en charge avant un budget d’attention dense. Memory Reality identifie le mécanisme ; vérifiez aussi le support du moteur.','使用稠密注意力预算前,先确认缺失或不支持的结构信息。打开 Memory Reality 识别机制,并检查运行时支持。'], check_memory_weights:['The estimated weights and overhead exceed the declared budget. Shortening context alone cannot remove that estimate. Check a smaller model or a compatible lower-precision checkpoint; changing this selector does not convert weights.','Los pesos y la sobrecarga estimados superan el presupuesto declarado. Acortar el contexto no elimina esa estimación. Comprueba un modelo menor o pesos compatibles de menor precisión; cambiar el selector no convierte los pesos.','Poids et surcoût estimés dépassent le budget. Réduire le contexte seul ne supprime pas ce dépassement. Examinez un modèle plus petit ou des poids compatibles moins précis ; le sélecteur ne convertit pas les poids.','估算权重和开销超出所填预算。仅缩短上下文无法消除这部分估算。检查更小模型或兼容的低精度权重;更改选项不会转换权重。'], check_memory_load:['The weight estimate alone does not explain the reported loading failure. Inspect free memory and the loading peak before changing context. Record the checkpoint format, runtime version and full loading error.','La estimación de pesos por sí sola no explica el fallo de carga indicado. Revisa memoria libre y pico de carga antes de cambiar contexto. Anota formato de pesos, versión del programa y error completo.','L’estimation des poids seule n’explique pas l’échec déclaré. Vérifiez mémoire libre et pic de chargement avant de changer le contexte. Notez format, version du moteur et erreur complète.','仅凭权重估算无法解释报告的加载失败。改变上下文前请检查可用显存和加载峰值,并记录权重格式、运行时版本及完整错误。'], check_memory_kv:['The estimated budget is exceeded when KV cache is included. Recalculate a shorter total context, then test one request at that length. Verify actual batch/concurrency and KV precision; this estimate assumes one sequence and FP16 KV.','El presupuesto estimado se supera al incluir la caché KV. Recalcula un contexto total menor y prueba una petición con esa longitud. Comprueba lote/concurrencia y precisión KV reales; aquí se supone una secuencia y KV FP16.','Le budget estimé est dépassé avec le cache KV. Recalculez un contexte total plus court, puis testez une requête. Vérifiez lot/concurrence et précision KV réels ; l’estimation suppose une séquence et KV FP16.','计入 KV 缓存后估算超出预算。先缩短总上下文重新计算,再用该长度测试单个请求。核实实际批量、并发及 KV 精度;此处假设单序列和 FP16 KV。'], check_memory_tight:['The estimate leaves little headroom. Try a shorter context or lower concurrency in your runtime and measure peak memory before increasing the workload. The displayed margin is not a reservation of available memory.','La estimación deja poco margen. Prueba menor contexto o concurrencia en tu programa y mide el pico antes de aumentar la carga. El margen mostrado no reserva memoria disponible.','L’estimation laisse peu de marge. Réduisez contexte ou concurrence dans votre moteur et mesurez le pic avant d’augmenter la charge. La marge affichée ne réserve pas de mémoire.','估算余量较小。增加负载前,请在运行时缩短上下文或降低并发并测量峰值。显示的余量不是已保留的可用显存。'], check_memory_fit:['The declared case fits the estimate, but no peak was measured. Test the exact checkpoint and runtime with one short request, then increase length gradually while recording peak memory.','El caso declarado cabe en la estimación, pero no se ha medido el pico. Prueba pesos y programa exactos con una petición corta; aumenta después la longitud gradualmente registrando memoria máxima.','Le cas déclaré tient dans l’estimation, sans mesure du pic. Testez poids et moteur exacts sur une requête courte, puis augmentez progressivement la longueur en mesurant le pic.','所填情况符合估算预算,但尚未测量峰值。先用确切权重和运行时测试一个短请求,再逐步增加长度并记录峰值显存。'], check_memory_observe:['Separate loading from generation. Compare the observed peak with this budget using the same weight format and total input-plus-output length. Include other GPU processes and runtime buffers in your investigation.','Separa carga y generación. Compara el pico observado con este presupuesto usando el mismo formato y longitud total de entrada más salida. Revisa otros procesos de GPU y buffers del programa.','Séparez chargement et génération. Comparez le pic observé au budget avec le même format et la longueur totale entrée plus sortie. Examinez aussi processus GPU et buffers.','区分加载与生成。在相同权重格式及输入加输出总长度下比较实测峰值和预算,同时检查其他 GPU 进程及运行时缓冲区。'], check_memory_interpret:['If a shorter request succeeds, record the tested limit; it is not yet a concurrency or quality guarantee. If loading or a short request still fails, inspect runtime setup in Launch or architecture in Memory Reality. For training or multiple GPUs, return to the symptom selector: this budget does not cover them.','Si funciona una petición menor, registra el límite probado; aún no garantiza concurrencia ni calidad. Si falla la carga o una petición corta, revisa configuración en Launch o arquitectura en Memory Reality. Para entrenamiento o varias GPU, vuelve a los síntomas: este presupuesto no los cubre.','Si une requête plus courte réussit, notez la limite testée ; elle ne garantit ni concurrence ni qualité. Si chargement ou requête courte échouent, consultez Launch ou Memory Reality. Pour entraînement ou plusieurs GPU, revenez aux symptômes : ce budget ne les couvre pas.','若较短请求成功,记录已测试的限制;这尚不保证并发能力或质量。若加载或短请求仍失败,请在 Launch 检查运行设置,或在 Memory Reality 检查架构。训练或多 GPU 情况请返回症状选择,此预算不覆盖它们。'], check_template_missing:['Check whether this revision is a base model or a chat/instruct model. Look for its documented tokenizer or processor and template. Missing files in this inspection do not justify borrowing a template from another model.','Comprueba si esta revisión es un modelo base o chat/instruct. Busca el tokenizador o procesador y la plantilla documentados. Que falten archivos aquí no justifica tomar la plantilla de otro modelo.','Vérifiez si cette révision est un modèle de base ou chat/instruct. Cherchez son tokenizer ou processeur et son format documentés. Des fichiers absents ici ne justifient pas d’emprunter un autre modèle de chat.','确认此版本是基础模型还是聊天/指令模型,查找其文档指定的分词器或处理器及模板。本次检查缺少文件,不代表可以借用其他模型的模板。'], check_template_multiple:['Choose the template documented for your task and revision, including tool use if relevant. Do not silently select the first entry. Then inspect the conversation rendered by that selection.','Elige la plantilla documentada para tu tarea y revisión, incluido uso de herramientas si procede. No selecciones silenciosamente la primera. Inspecciona después la conversación que genera esa elección.','Choisissez le format documenté pour la tâche et la révision, y compris les outils si nécessaire. Ne prenez pas arbitrairement la première entrée. Inspectez ensuite la conversation rendue.','选择适用于任务和模型版本的模板,必要时包括工具调用格式。不要默认选取首项;随后检查所选模板渲染的对话。'], check_template_present:['Render a short conversation with the documented template and inspect roles and control tokens. Check whether the client or server already applies formatting so the conversation is not formatted twice.','Formatea una conversación corta con la plantilla documentada y revisa roles y tokens de control. Comprueba si el cliente o servidor ya aplica el formato para evitar aplicarlo dos veces.','Formatez une courte conversation avec le modèle documenté et inspectez rôles et tokens de contrôle. Vérifiez si client ou serveur applique déjà le format pour éviter un double traitement.','用文档指定模板渲染一段短对话并检查角色和控制词元。核实客户端或服务器是否已应用格式,避免重复格式化。'], check_template_observe:['Keep the model revision, prompt and generation settings fixed. Compare the rendered input with the model’s documented example before interpreting the generated answer. TAF has only inspected template metadata.','Mantén fijos revisión, prompt y ajustes de generación. Compara la entrada formateada con el ejemplo documentado antes de interpretar la respuesta. TAF solo ha inspeccionado metadatos de plantilla.','Fixez révision, prompt et réglages de génération. Comparez l’entrée rendue à l’exemple documenté avant d’interpréter la réponse. TAF a seulement inspecté les métadonnées du modèle de chat.','固定模型版本、提示及生成设置。先将渲染输入与模型文档示例比较,再解释生成回答。TAF 仅检查了模板元数据。'], check_template_interpret:['If formatting matches but answers still repeat or degrade, this check has not established the cause. Use JSON CoT only for a structured-field ordering problem, or Drift for controlled evaluation differences; otherwise return to the symptom selector.','Si el formato coincide pero las respuestas repiten o empeoran, esta comprobación no establece la causa. Usa JSON CoT solo para orden de campos estructurados, o Drift para diferencias de evaluación controladas; en otros casos vuelve a los síntomas.','Si le format concorde mais les réponses se répètent ou se dégradent, la cause reste inconnue. JSON CoT concerne l’ordre des champs structurés ; Drift concerne des écarts d’évaluation contrôlés. Sinon, revenez aux symptômes.','若格式一致但回答仍重复或退化,此检查尚未确定原因。JSON CoT 仅适用于结构化字段顺序问题;Drift 用于受控评估差异。其他情况请返回症状选择。'], check_adapter_base:['Identify the exact base checkpoint used for training and the base you intend to load. Supply the intended base ID to compare declarations; then verify revisions and tokenizer in your environment.','Identifica los pesos base usados en entrenamiento y los que pretendes cargar. Indica el ID de la base prevista para comparar declaraciones; verifica después revisiones y tokenizador en tu entorno.','Identifiez la base d’entraînement et celle à charger. Indiquez l’identifiant prévu pour comparer les déclarations, puis vérifiez révisions et tokenizer dans votre environnement.','确认训练使用的基础权重和计划加载的基础权重。填写预期基础模型 ID 以比较声明,再在环境中核实版本及分词器。'], check_adapter_mismatch:['The declared base and intended base differ. Verify the training checkpoint and exact revision before testing compatibility. Do not rename the metadata merely to silence the mismatch.','La base declarada y la prevista difieren. Verifica los pesos de entrenamiento y su revisión exacta antes de probar compatibilidad. No cambies el nombre en los metadatos solo para ocultar el aviso.','La base déclarée diffère de la base prévue. Vérifiez le checkpoint d’entraînement et sa révision avant de tester la compatibilité. Ne renommez pas les métadonnées pour masquer l’écart.','声明基础模型与预期模型不同。测试兼容性前请核实训练权重及确切版本,不要仅修改元数据名称来隐藏差异。'], check_adapter_family:['A family-name match is not an exact checkpoint match. Confirm the actual base revision, tokenizer and tensor dimensions before interpreting adapter behavior.','Coincidir en familia no equivale a usar los mismos pesos. Confirma revisión base, tokenizador y dimensiones de tensores antes de interpretar el adaptador.','La même famille ne signifie pas les mêmes poids. Confirmez révision de base, tokenizer et dimensions des tenseurs avant d’interpréter le comportement.','家族名称匹配不等于权重匹配。解释适配器表现前,请确认基础模型版本、分词器及张量维度。'], check_adapter_targets:['Inspect the actual modules selected by your PEFT method. An omitted target list may use architecture-specific defaults; check those defaults and the loaded module names rather than inventing a list.','Inspecciona los módulos realmente seleccionados por tu método PEFT. Una lista omitida puede usar valores por defecto de la arquitectura; compruébalos y revisa nombres cargados en lugar de inventar una lista.','Inspectez les modules réellement sélectionnés par la méthode PEFT. Une liste omise peut utiliser les valeurs propres à l’architecture ; vérifiez ces valeurs et les noms chargés plutôt que d’inventer une liste.','检查 PEFT 方法实际选择的模块。省略目标列表可能使用架构默认设置;请核实默认设置及加载模块名称,不要自行猜测列表。'], check_adapter_embeddings:['Check that saved embeddings, tokenizer vocabulary and loaded tensor dimensions agree with the training setup. A declared saved module does not prove it was restored correctly.','Comprueba que embeddings guardados, vocabulario del tokenizador y dimensiones cargadas coincidan con el entrenamiento. Declarar un módulo guardado no prueba que se haya restaurado correctamente.','Vérifiez que embeddings sauvegardés, vocabulaire et dimensions chargées concordent avec l’entraînement. Déclarer un module sauvegardé ne prouve pas sa restauration correcte.','核实保存的嵌入、分词器词表及已加载张量维度与训练设置一致。声明保存模块并不证明已正确恢复。'], check_adapter_patterns:['Inspect the effective rank and alpha for each targeted module. The displayed global scaling does not summarize per-module overrides. Preserve the trained configuration when checking the load.','Inspecciona rango y alpha efectivos de cada módulo. La escala global mostrada no resume las excepciones por módulo. Conserva la configuración entrenada al comprobar la carga.','Inspectez rang et alpha effectifs par module. L’échelle globale ne résume pas les réglages particuliers. Conservez la configuration entraînée lors de la vérification du chargement.','检查各目标模块的实际秩和 alpha。显示的全局缩放不能概括模块级覆盖设置。检查加载时应保留训练配置。'], check_adapter_scale:['Compare the declared scaling with the trained configuration and adapter method. An unusual ratio is not proof of an error; do not tune alpha just to remove this notice.','Compara la escala declarada con la configuración entrenada y el método. Una relación poco habitual no demuestra un error; no ajustes alpha solo para quitar el aviso.','Comparez l’échelle déclarée à la configuration entraînée et à la méthode. Un rapport inhabituel ne prouve pas une erreur ; ne changez pas alpha pour supprimer l’avertissement.','将声明缩放与训练配置及适配器方法比较。比例不常见不证明有错误;不要仅为消除提示而调整 alpha。'], check_adapter_activation:['Verify that the intended adapter weights were loaded and that the adapter is active on the expected modules. Matching metadata does not demonstrate either condition.','Verifica que se cargaron los pesos del adaptador previsto y que está activo en los módulos esperados. Coincidir en metadatos no demuestra ninguna de las dos cosas.','Vérifiez que les poids prévus sont chargés et que l’adaptateur est actif sur les modules attendus. Des métadonnées concordantes ne le démontrent pas.','确认已加载预期适配器权重,并在预期模块上启用。元数据匹配不能证明这两点。'], check_adapter_observe:['Compare base and adapter on the same small task set with matched inference settings. Record loading warnings and active modules. Inspect both intended-task results and tasks you want to retain.','Compara base y adaptador con las mismas tareas pequeñas y ajustes de inferencia. Registra avisos de carga y módulos activos. Revisa tanto la tarea objetivo como las que quieres conservar.','Comparez base et adaptateur sur les mêmes petites tâches et réglages d’inférence. Notez avertissements et modules actifs. Examinez la tâche visée et celles à conserver.','在相同小型任务集和推理设置下比较基础模型及适配器,记录加载提示和启用模块,并检查目标任务及希望保留的任务。'], check_adapter_interpret:['Unchanged outputs alone do not prove an inactive adapter, and changed outputs alone do not prove improvement. If loading and activation are confirmed but training behavior is suspect, inspect the training snippet with PEFT linter; measure quality separately.','Respuestas iguales no prueban por sí solas un adaptador inactivo, ni respuestas distintas una mejora. Si carga y activación están confirmadas pero dudas del entrenamiento, revisa el código con PEFT linter; mide la calidad por separado.','Des réponses identiques ne prouvent pas l’inactivité, ni des réponses différentes une amélioration. Si chargement et activation sont confirmés mais l’entraînement reste suspect, utilisez PEFT linter sur le code ; mesurez la qualité séparément.','输出不变不一定证明适配器未启用,输出变化也不一定代表改进。若加载及启用已确认但训练仍有疑问,可用 PEFT linter 检查训练代码;质量需另行测量。'], checks_help:['Memory, template and adapter results now offer ordered verification steps selected from the current findings. Their optional examples show different situations. Recalculating updates the steps; no runtime check or fix is executed automatically.','Los resultados de memoria, plantillas y adaptadores ofrecen pasos ordenados según los hallazgos actuales. Sus ejemplos opcionales muestran distintas situaciones. Recalcular actualiza los pasos; no se ejecuta automáticamente ninguna comprobación del programa ni reparación.','Les résultats mémoire, modèles de chat et adaptateurs proposent des étapes ordonnées selon les constats. Leurs exemples facultatifs illustrent plusieurs situations. Recalculer actualise les étapes ; aucune vérification du moteur ni réparation automatique.','内存、模板及适配器结果按当前发现提供有序检查步骤,可选示例展示不同情况。重新计算会更新步骤,不会自动执行运行时检查或修复。'],};25 unmodified lines26272829303125 unmodified linesD.hl('#resolver-reduce');await pause(900);D.click('#resolver-reduce');D.hl('#resolver-result dl');await pause(1800);D.banner(dt('resolver.s5'),5,6);D.click('#resolver-review > summary');D.hl('#resolver-review');await pause(2600);D.hl('#resolver-failed');await pause(900);D.click('#resolver-failed');D.hl('#resolver-followup');await pause(1800);D.banner(dt('resolver.s6'),6,6);D.hl('#resolver-case-summary .resolver-summary-guide');await pause(1600);25 unmodified lines2627282930313225 unmodified linesD.hl('#resolver-reduce');await pause(900);D.click('#resolver-reduce');D.hl('#resolver-result dl');await pause(1800);D.banner(dt('resolver.s5'),5,6);D.click('#resolver-review > summary');D.hl('#resolver-review');await pause(2600);D.hl('#resolver-checks');await pause(1200);D.hl('#resolver-failed');await pause(900);D.click('#resolver-failed');D.hl('#resolver-followup');await pause(1800);D.banner(dt('resolver.s6'),6,6);D.hl('#resolver-case-summary .resolver-summary-guide');await pause(1600);
2 unmodified lines34567881 unmodified lines909192939495962 unmodified linesimport { triageRows } from './resolver_triage.js';import { reviewRows } from './resolver_review_i18n.js';import { protocolRows } from './resolver_protocol_i18n.js';const rows={summary_title:['Your case at a glance','Resumen de tu caso','Résumé de votre cas','案例摘要'],summary_help:['Each result ends with the problem, checks, any adjustment and remaining verification, followed by a link to the guide section explaining that part of the solution.','Cada resultado termina con el problema, las comprobaciones, el ajuste si lo hay y lo que falta verificar, seguido del enlace al apartado de la guía que explica esa parte de la solución.','Chaque résultat se termine par le problème, les vérifications, l’ajustement éventuel et ce qui reste à vérifier, puis un lien vers la section du guide correspondante.','每个结果最后汇总问题、检查、调整(如有)及待验证事项,并链接到解释该部分解决思路的指南章节。'],81 unmodified linesreport_note:['The report contains the inputs and estimates shown here, their sources and your feedback. It excludes pasted questions and error text.','El informe incluye los datos y estimaciones mostrados, sus fuentes y tu valoración. Excluye preguntas y errores pegados.','Le rapport contient les données et estimations affichées, leurs sources et votre retour. Les questions et erreurs collées sont exclues.','报告包含所显示的输入、估算、来源及反馈,不包含粘贴的问题和错误文本。'],help:['Solve my problem offers three automatic guided routes: memory, chat templates and architecture compatibility. Each has an offline example, follow-up checks, guide links and a downloadable report. Shareable links open a route without running it. No monitoring or automatic posting to HF discussions is enabled.','Resolver mi problema ofrece tres rutas automáticas: memoria, plantillas de chat y compatibilidad de arquitectura. Cada una incluye un ejemplo sin conexión, comprobaciones de seguimiento, enlaces a la guía e informe descargable. Los enlaces compartidos abren una ruta sin ejecutarla. No hay vigilancia ni publicación automática en discusiones de HF.','Résoudre mon problème propose trois parcours automatiques : mémoire, modèles de chat et compatibilité architecturale. Chacun inclut exemple hors ligne, suivi, guide et rapport. Les liens ouvrent un parcours sans l’exécuter. Aucune surveillance ni publication automatique sur HF.','解决我的问题提供内存、聊天模板及架构兼容性三条自动引导路线,包含离线示例、后续检查、指南链接及可下载报告。共享链接仅打开路线,不执行检查。未启用 HF 讨论监控或自动发帖。'],};Object.assign(rows,localRows,catalogRows,triageRows,reviewRows,protocolRows,{no_match:['No clear match. Choose a check or browse all tools below; keywords only suggest routes.','No hay coincidencia clara. Elige una comprobación o consulta todas las herramientas; las palabras clave solo orientan.','Aucune correspondance claire. Choisissez une vérification ou parcourez les outils ; les mots-clés ne font que suggérer.','没有明确匹配。请选择检查或浏览下方所有工具;关键词仅建议路线。'],demo_note:['Illustrative saved or synthetic data. No model run; this is not your model’s diagnosis.','Datos guardados o sintéticos de ejemplo. No ejecuta un modelo ni diagnostica el tuyo.','Données enregistrées ou synthétiques d’exemple. Aucun modèle exécuté ; ce n’est pas votre diagnostic.','示例使用已保存或合成数据。未运行模型,也不是对您模型的诊断。'],help:['Solve my problem connects all 31 modes: nine direct checks and a tool selector with required inputs, limits, demos and guide explanations. Direct checks cover memory, templates, architecture, JSON, PEFT code, prompt prefixes, evaluation drift, attention reports and adapters. Everything is automatic after providing the required inputs; no person receives the question. No HF discussion monitoring or posting is enabled.','Resolver mi problema conecta los 31 modos: nueve comprobaciones directas y un selector con datos necesarios, límites, demos y explicaciones de la guía. Comprueba memoria, plantillas, arquitectura, JSON, código PEFT, prefijos, diferencias de evaluación, informes de atención y adaptadores. Todo es automático tras aportar los datos necesarios; nadie recibe la consulta. No hay vigilancia ni publicación en discusiones HF.','Résoudre mon problème relie les 31 modes : neuf vérifications directes et un sélecteur avec données requises, limites, démos et guide. Mémoire, modèles de chat, architecture, JSON, code PEFT, préfixes, écarts d’évaluation, rapports d’attention et adaptateurs sont pris en charge. Tout est automatique après saisie ; personne ne reçoit la question. Aucune surveillance ni publication sur HF.','解决我的问题连接全部 31 个模式:九项直接检查及带输入要求、限制、演示和指南解释的工具选择器。涵盖内存、模板、架构、JSON、PEFT 代码、前缀、评估差异、注意力报告和适配器。提供输入后自动处理;没有人工接收问题。未启用 HF 讨论监控或发帖。'],2 unmodified lines345678981 unmodified lines919293949596972 unmodified linesimport { triageRows } from './resolver_triage.js';import { reviewRows } from './resolver_review_i18n.js';import { protocolRows } from './resolver_protocol_i18n.js';import { checksRows } from './resolver_checks_i18n.js';const rows={summary_title:['Your case at a glance','Resumen de tu caso','Résumé de votre cas','案例摘要'],summary_help:['Each result ends with the problem, checks, any adjustment and remaining verification, followed by a link to the guide section explaining that part of the solution.','Cada resultado termina con el problema, las comprobaciones, el ajuste si lo hay y lo que falta verificar, seguido del enlace al apartado de la guía que explica esa parte de la solución.','Chaque résultat se termine par le problème, les vérifications, l’ajustement éventuel et ce qui reste à vérifier, puis un lien vers la section du guide correspondante.','每个结果最后汇总问题、检查、调整(如有)及待验证事项,并链接到解释该部分解决思路的指南章节。'],81 unmodified linesreport_note:['The report contains the inputs and estimates shown here, their sources and your feedback. It excludes pasted questions and error text.','El informe incluye los datos y estimaciones mostrados, sus fuentes y tu valoración. Excluye preguntas y errores pegados.','Le rapport contient les données et estimations affichées, leurs sources et votre retour. Les questions et erreurs collées sont exclues.','报告包含所显示的输入、估算、来源及反馈,不包含粘贴的问题和错误文本。'],help:['Solve my problem offers three automatic guided routes: memory, chat templates and architecture compatibility. Each has an offline example, follow-up checks, guide links and a downloadable report. Shareable links open a route without running it. No monitoring or automatic posting to HF discussions is enabled.','Resolver mi problema ofrece tres rutas automáticas: memoria, plantillas de chat y compatibilidad de arquitectura. Cada una incluye un ejemplo sin conexión, comprobaciones de seguimiento, enlaces a la guía e informe descargable. Los enlaces compartidos abren una ruta sin ejecutarla. No hay vigilancia ni publicación automática en discusiones de HF.','Résoudre mon problème propose trois parcours automatiques : mémoire, modèles de chat et compatibilité architecturale. Chacun inclut exemple hors ligne, suivi, guide et rapport. Les liens ouvrent un parcours sans l’exécuter. Aucune surveillance ni publication automatique sur HF.','解决我的问题提供内存、聊天模板及架构兼容性三条自动引导路线,包含离线示例、后续检查、指南链接及可下载报告。共享链接仅打开路线,不执行检查。未启用 HF 讨论监控或自动发帖。'],};Object.assign(rows,localRows,catalogRows,triageRows,reviewRows,protocolRows,checksRows,{no_match:['No clear match. Choose a check or browse all tools below; keywords only suggest routes.','No hay coincidencia clara. Elige una comprobación o consulta todas las herramientas; las palabras clave solo orientan.','Aucune correspondance claire. Choisissez une vérification ou parcourez les outils ; les mots-clés ne font que suggérer.','没有明确匹配。请选择检查或浏览下方所有工具;关键词仅建议路线。'],demo_note:['Illustrative saved or synthetic data. No model run; this is not your model’s diagnosis.','Datos guardados o sintéticos de ejemplo. No ejecuta un modelo ni diagnostica el tuyo.','Données enregistrées ou synthétiques d’exemple. Aucun modèle exécuté ; ce n’est pas votre diagnostic.','示例使用已保存或合成数据。未运行模型,也不是对您模型的诊断。'],help:['Solve my problem connects all 31 modes: nine direct checks and a tool selector with required inputs, limits, demos and guide explanations. Direct checks cover memory, templates, architecture, JSON, PEFT code, prompt prefixes, evaluation drift, attention reports and adapters. Everything is automatic after providing the required inputs; no person receives the question. No HF discussion monitoring or posting is enabled.','Resolver mi problema conecta los 31 modos: nueve comprobaciones directas y un selector con datos necesarios, límites, demos y explicaciones de la guía. Comprueba memoria, plantillas, arquitectura, JSON, código PEFT, prefijos, diferencias de evaluación, informes de atención y adaptadores. Todo es automático tras aportar los datos necesarios; nadie recibe la consulta. No hay vigilancia ni publicación en discusiones HF.','Résoudre mon problème relie les 31 modes : neuf vérifications directes et un sélecteur avec données requises, limites, démos et guide. Mémoire, modèles de chat, architecture, JSON, code PEFT, préfixes, écarts d’évaluation, rapports d’attention et adaptateurs sont pris en charge. Tout est automatique après saisie ; personne ne reçoit la question. Aucune surveillance ni publication sur HF.','解决我的问题连接全部 31 个模式:九项直接检查及带输入要求、限制、演示和指南解释的工具选择器。涵盖内存、模板、架构、JSON、PEFT 代码、前缀、评估差异、注意力报告和适配器。提供输入后自动处理;没有人工接收问题。未启用 HF 讨论监控或发帖。'],
87 unmodified lines8889909192939487 unmodified linesconst cfg=parseObject(inputs.text);if(typeof cfg.peft_type!=='string'||!cfg.peft_type.trim()||(cfg.r!=null&&(!Number.isInteger(cfg.r)||cfg.r<=0))||(cfg.lora_alpha!=null&&(!Number.isFinite(cfg.lora_alpha)||cfg.lora_alpha<0)))throw new Error('inputs');const parsed=parseAdapterConfig(cfg),checks=compatChecks(parsed,inputs.base||'');const warnings=checks.filter(c=>['warn','bad'].includes(c.level));out.summaryKey=checks.some(c=>c.code==='base_mismatch')?'adapter_mismatch':warnings.length?'adapter_review':'adapter_metadata';out.summaryParams={count:warnings.length};fact('finding_count',warnings.length);out.notices.push(...warnings.map(c=>({key:'adapter_'+c.code})));87 unmodified lines8889909192939495969787 unmodified linesconst cfg=parseObject(inputs.text);if(typeof cfg.peft_type!=='string'||!cfg.peft_type.trim()||(cfg.r!=null&&(!Number.isInteger(cfg.r)||cfg.r<=0))||(cfg.lora_alpha!=null&&(!Number.isFinite(cfg.lora_alpha)||cfg.lora_alpha<0)))throw new Error('inputs');const parsed=parseAdapterConfig(cfg),checks=compatChecks(parsed,inputs.base||'');// Soft-prompt methods do not require LoRA-style target modules.const usesTargets=!['prompt_tuning','p_tuning','prefix_tuning','multitask_prompt_tuning'].includes(parsed.peftType);const warnings=checks.filter(c=>['warn','bad'].includes(c.level)&&(usesTargets||c.code!=='targets_empty'));out.adapterEvidence={base:checks.find(c=>c.code.startsWith('base_'))?.code||'base_unknown',targets:checks.find(c=>c.code.startsWith('targets_'))?.code||'targets_empty',usesTargets};out.summaryKey=checks.some(c=>c.code==='base_mismatch')?'adapter_mismatch':warnings.length?'adapter_review':'adapter_metadata';out.summaryParams={count:warnings.length};fact('finding_count',warnings.length);out.notices.push(...warnings.map(c=>({key:'adapter_'+c.code})));
21 unmodified lines22232425262721 unmodified linesmissing_protocol_fields:route==='pvr'?result.facts.find(f=>f.key==='missing_fields')?.value??null:null,next_check:summary.next,guide:summary.guide,protocol:result.protocolReview??null,independently_verified:false,};}21 unmodified lines2223242526272821 unmodified linesmissing_protocol_fields:route==='pvr'?result.facts.find(f=>f.key==='missing_fields')?.value??null:null,next_check:summary.next,guide:summary.guide,protocol:result.protocolReview??null,checks:summary.checks,independently_verified:false,};}
1 unmodified line23456729 unmodified lines3738394041421 unmodified lineimport { guideLink, guideLanguage, topics, local } from './guide_bridge.js';import { chapterTitles } from './guide_chapters.js';import { CASES } from './resolver.js';// Summarize recorded inputs and estimates only; never infer a cause from pasted text.export function buildResolverSummary({route,bundle,initial,inputs,result,app='github'},language='en') {29 unmodified lines};section=route==='pvr'?'tbl-gamma-protocolo':anchors[why]?.[guideLang]||'';const url=new URL(guideLink(topic,index,{lang,model:bundle.origin==='demo'?'':bundle.model,mode:CASES[route].mode,resolve:route,app}));url.hash=section;const next=tr(result.protocolReview?'protocol_first_'+result.protocolReview.priority:result.nextKey || (route==='template'?(result.status==='present'?'template_next':'template_missing_next'):route==='compatibility'||result.status==='limited'?'compatibility_next':'memory_next'));return {problem,finding,change,next,guide:{url:url.href,title:chapterTitles[topics[topic].chapters[index]][guideLang],why:tr('summary_why_'+why),language:guideLang,note:lang==='fr'||lang==='zh'?local('fallback',lang):null},demo:bundle.origin==='demo'};}1 unmodified line234567829 unmodified lines383940414243441 unmodified lineimport { guideLink, guideLanguage, topics, local } from './guide_bridge.js';import { chapterTitles } from './guide_chapters.js';import { CASES } from './resolver.js';import { selectResolverChecks } from './resolver_checks.js';// Summarize recorded inputs and estimates only; never infer a cause from pasted text.export function buildResolverSummary({route,bundle,initial,inputs,result,app='github'},language='en') {29 unmodified lines};section=route==='pvr'?'tbl-gamma-protocolo':anchors[why]?.[guideLang]||'';const url=new URL(guideLink(topic,index,{lang,model:bundle.origin==='demo'?'':bundle.model,mode:CASES[route].mode,resolve:route,app}));url.hash=section;const checks=selectResolverChecks({route,result,inputs});const next=tr(checks?checks.steps[0]:result.protocolReview?'protocol_first_'+result.protocolReview.priority:result.nextKey || (route==='template'?(result.status==='present'?'template_next':'template_missing_next'):route==='compatibility'||result.status==='limited'?'compatibility_next':'memory_next'));return {problem,finding,change,next,checks:checks?{...checks,title:tr(checks.title_key),instructions:checks.steps.map(tr)}:null,guide:{url:url.href,title:chapterTitles[topics[topic].chapters[index]][guideLang],why:tr('summary_why_'+why),language:guideLang,note:lang==='fr'||lang==='zh'?local('fallback',lang):null},demo:bundle.origin==='demo'};}
3 unmodified lines45678949 unmodified lines59606162636465666768697016 unmodified lines87888990919255 unmodified lines1481491501511521531547 unmodified lines16216316416516616716817 unmodified lines1861871881891901913 unmodified linesimport { buildResolverSummary } from './resolver_summary.js';import { buildResolverReview } from './resolver_review.js';import { PROTOCOL_GROUPS, PROTOCOL_PATHS } from './resolver_protocol.js';import { attachHfAutocomplete } from './hf_autocomplete.js';import { LOCAL_CASES,LOCAL_DEMOS,publicLocalInputs } from './resolver_local.js';import { TOOL_CATALOG } from './resolver_catalog.js';49 unmodified linesif(feedback)$('followup').append(node('p',tr(feedback==='worked'?'solved':'followup')));if(feedback==='failed') {$('followup').append(node('p',summaryData().next));$('followup').append(button(tr('suggest'),()=>{$('description').focus();$('description').scrollIntoView({block:'nearest'});}));}}function resultState() {return {route,bundle,initial,inputs:lastInputs,result,app:location.origin===new URL(HF_BASE).origin?'hf':'github'};}function summaryData() {return buildResolverSummary(resultState(),getLang());}function reviewData() {return buildResolverReview(resultState(),getLang());}function createResolverReview() {const review=reviewData(),box=node('details');box.id='resolver-review';box.append(node('summary',tr('review_title')),node('p',review.provenance));16 unmodified lines}box.append(details);}const a=node('a',review.guide.title);a.href=review.guide.url;a.target='_blank';a.rel='noopener';box.append(a);if(review.guide.note)box.append(node('p',review.guide.note));return box;55 unmodified lines}if(result.family)out.append(node('p',`Chat-template: ${result.family} · ${result.length}`));if(result.names?.length)out.append(node('p',result.names.join(', ')));out.append(createResolverSummary(),createResolverReview());const links=node('p');for(const [label,url] of [[tr('module'),tafLink({mode:CASES[route].mode,model:bundle.origin==='demo'?'':bundle.model,lang:getLang()},location.href)]]) {const a=node('a',label);a.href=url;a.target='_blank';a.rel='noopener';links.append(a,node('br'));7 unmodified linesfunction download() {if(!result)return;const {suggestion,...publicResult}=result;const report={schema_version:3,review:reviewData(),route,origin:bundle.origin,model:bundle.model,revision:bundle.revision||null,checked_at:bundle.checkedAt||null,sources:bundle.sources,inputs:isLocal()?publicLocalInputs(route,lastInputs):lastInputs,initial_inputs:isLocal()?publicLocalInputs(route,initial.inputs):initial.inputs,summary:summaryData(),result:publicResult,user_feedback:feedback||null,scope:'Static inspection / estimate / imported measurements, not an executed model or independently verified fix'};const url=URL.createObjectURL(new Blob([JSON.stringify(report,null,2)],{type:'application/json'}));const a=node('a');a.href=url;a.download='taf-case-'+route+'.json';a.click();setTimeout(()=>URL.revokeObjectURL(url),1000);17 unmodified linessources:route==='template'?[]:[{url:entry.source,status:200}]};} else if(!next || next.model!==id || next.origin!=='hf')next=await fetchResolverBundle(id,route,{signal:controller.signal});if(ticket!==request)return;if(demo&&!isLocal()){$('model').value=route==='template'?'':next.model;$('vram').value='24';$('context').value='131072';$('precision').value='BF16';$('stage').value='generate';}lastInputs=route==='memory'||isLocal()?inputs():{};const answer=solveCase(route,next,lastInputs);3 unmodified lines4567891049 unmodified lines60616263646566676869707172737475767778798016 unmodified lines97989910010110210310410510610710855 unmodified lines1641651661671681691701711721731741751761777 unmodified lines18518618718818919019117 unmodified lines2092102112122132142153 unmodified linesimport { buildResolverSummary } from './resolver_summary.js';import { buildResolverReview } from './resolver_review.js';import { PROTOCOL_GROUPS, PROTOCOL_PATHS } from './resolver_protocol.js';import { CHECK_DEMOS,checkDemo } from './resolver_checks.js';import { attachHfAutocomplete } from './hf_autocomplete.js';import { LOCAL_CASES,LOCAL_DEMOS,publicLocalInputs } from './resolver_local.js';import { TOOL_CATALOG } from './resolver_catalog.js';49 unmodified linesif(feedback)$('followup').append(node('p',tr(feedback==='worked'?'solved':'followup')));if(feedback==='failed') {$('followup').append(node('p',summaryData().next));if(summaryData().checks)$('followup').append(node('p',summaryData().checks.instructions[2]),button(tr('checks_open'),openChecks));$('followup').append(button(tr('suggest'),()=>{$('description').focus();$('description').scrollIntoView({block:'nearest'});}));}}function resultState() {return {route,bundle,initial,inputs:lastInputs,result,app:location.origin===new URL(HF_BASE).origin?'hf':'github'};}function summaryData() {return buildResolverSummary(resultState(),getLang());}function reviewData() {return buildResolverReview(resultState(),getLang());}function openChecks(){ $('review').open=true;$('checks').focus({preventScroll:true});$('checks').scrollIntoView({block:'start'}); }function changeExample(scenario){const example=checkDemo(route,scenario,bundle);bundle={...example.bundle,demoScenario:scenario};if(isLocal())renderLocalFields(example.inputs);else if(route==='memory')for(const [key,value] of Object.entries(example.inputs))$(key).value=value;lastInputs=example.inputs;result=solveCase(route,bundle,lastInputs);initial={inputs:{...lastInputs},result};feedback='';renderResult();openChecks();}function createResolverReview() {const review=reviewData(),box=node('details');box.id='resolver-review';box.append(node('summary',tr('review_title')),node('p',review.provenance));16 unmodified lines}box.append(details);}if(review.checks){const section=node('section');section.id='resolver-checks';section.tabIndex=-1;section.append(node('h4',tr('checks_title')+' · '+review.checks.title),node('p',tr('checks_note')));const ol=node('ol');for(const instruction of review.checks.instructions)ol.append(node('li',instruction));section.append(ol,node('p',tr('checks_tools')));const tools=node('div');tools.className='resolver-actions';for(const mode of review.checks.tools){const b=button(t('modes.'+mode),()=>catalogUI.show(mode));b.dataset.checkTool=mode;tools.append(b);}section.append(tools);box.append(section);}const a=node('a',review.guide.title);a.href=review.guide.url;a.target='_blank';a.rel='noopener';box.append(a);if(review.guide.note)box.append(node('p',review.guide.note));return box;55 unmodified lines}if(result.family)out.append(node('p',`Chat-template: ${result.family} · ${result.length}`));if(result.names?.length)out.append(node('p',result.names.join(', ')));out.append(createResolverSummary());if(summaryData().checks)out.append(button(tr('checks_open'),openChecks,'show-checks'));out.append(createResolverReview());if(bundle.origin==='demo'&&CHECK_DEMOS[route]){const examples=node('details');examples.id='resolver-check-examples';examples.append(node('summary',tr('checks_examples')));const actions=node('div');actions.className='resolver-actions';for(const key of CHECK_DEMOS[route]){const b=button(tr('checks_'+route+'_'+key),()=>changeExample(key));b.dataset.checkExample=key;actions.append(b);}examples.append(actions);out.append(examples);}const links=node('p');for(const [label,url] of [[tr('module'),tafLink({mode:CASES[route].mode,model:bundle.origin==='demo'?'':bundle.model,lang:getLang()},location.href)]]) {const a=node('a',label);a.href=url;a.target='_blank';a.rel='noopener';links.append(a,node('br'));7 unmodified linesfunction download() {if(!result)return;const {suggestion,...publicResult}=result;const report={schema_version:3,review:reviewData(),demo_scenario:bundle.demoScenario||null,route,origin:bundle.origin,model:bundle.model,revision:bundle.revision||null,checked_at:bundle.checkedAt||null,sources:bundle.sources,inputs:isLocal()?publicLocalInputs(route,lastInputs):lastInputs,initial_inputs:isLocal()?publicLocalInputs(route,initial.inputs):initial.inputs,summary:summaryData(),result:publicResult,user_feedback:feedback||null,scope:'Static inspection / estimate / imported measurements, not an executed model or independently verified fix'};const url=URL.createObjectURL(new Blob([JSON.stringify(report,null,2)],{type:'application/json'}));const a=node('a');a.href=url;a.download='taf-case-'+route+'.json';a.click();setTimeout(()=>URL.revokeObjectURL(url),1000);17 unmodified linessources:route==='template'?[]:[{url:entry.source,status:200}]};} else if(!next || next.model!==id || next.origin!=='hf')next=await fetchResolverBundle(id,route,{signal:controller.signal});if(ticket!==request)return;if(demo&&CHECK_DEMOS[route])next.demoScenario=CHECK_DEMOS[route][0];if(demo&&!isLocal()){$('model').value=route==='template'?'':next.model;$('vram').value='24';$('context').value='131072';$('precision').value='BF16';$('stage').value='generate';}lastInputs=route==='memory'||isLocal()?inputs():{};const answer=solveCase(route,next,lastInputs);
69 unmodified lines7071727369 unmodified linesawait import('./resolver_local.test.mjs');await import('./resolver_review.test.mjs');await import('./resolver_protocol.test.mjs');console.log('Resolver PASS: nine routes, load/generation distinction, estimate boundaries, template variants, revision provenance, translations and private-data-free links.');69 unmodified lines707172737469 unmodified linesawait import('./resolver_local.test.mjs');await import('./resolver_review.test.mjs');await import('./resolver_protocol.test.mjs');await import('./resolver_checks.test.mjs');console.log('Resolver PASS: nine routes, load/generation distinction, estimate boundaries, template variants, revision provenance, translations and private-data-free links.');
133 unmodified lines134135136133 unmodified linesawait import('./resolver_local_browser.mjs');await import('./resolver_return_browser.mjs');await import('./resolver_protocol_browser.mjs');133 unmodified lines134135136137133 unmodified linesawait import('./resolver_local_browser.mjs');await import('./resolver_return_browser.mjs');await import('./resolver_protocol_browser.mjs');await import('./resolver_checks_browser.mjs');
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051import assert from 'node:assert/strict';import {readFileSync} from 'node:fs';import {selectResolverChecks,CHECK_DEMOS,checkDemo} from '../js/resolver_checks.js';import {checksRows} from '../js/resolver_checks_i18n.js';import {solveCase} from '../js/resolver.js';import {buildResolverSummary} from '../js/resolver_summary.js';import {modeTopics} from '../js/guide_bridge.js';const catalog=JSON.parse(readFileSync(new URL('../data/model_catalog.json',import.meta.url)));const q={...catalog.models.find(m=>m.id==='Qwen/Qwen3-8B'),origin:'demo',model:'Qwen/Qwen3-8B'};const memory={vram:24,context:4096,precision:'BF16',stage:'generate'};const full={peft_type:'LORA',base_model_name_or_path:'PRIVATE/Base',r:8,lora_alpha:16,target_modules:['q_proj']};const cases=[];function record(route,bundle,inputs,expected){ const result=solveCase(route,bundle,inputs),state={route,bundle,inputs,result}; assert.equal(selectResolverChecks(state).priority,expected);cases.push(state);return result;}record('memory',q,{...memory,context:131072},'memory_kv');record('memory',q,{...memory,vram:4},'memory_weights');record('memory',q,{...memory,stage:'load'},'memory_load');record('memory',{origin:'demo',config:{}},memory,'memory_architecture');const fit=record('memory',q,memory,'memory_fit');record('memory',q,{...memory,vram:fit.fit.totalGB+.1},'memory_tight');for(const [tokenizer,priority] of [[{},'missing'],[{chat_template:{a:'a',b:'b'}},'multiple'],[{chat_template:'x'},'present']])record('template',{tokenizer,origin:'demo'},{},'template_'+priority);const adapter=(cfg,base,priority)=>record('adapter',{origin:'local'},{text:JSON.stringify(cfg),base},'adapter_'+priority);adapter(full,'','base');adapter(full,'Other/Base','mismatch');adapter({...full,base_model_name_or_path:'meta-llama/Llama-3-8B'},'meta-llama/Llama-3-70B','family');adapter({...full,target_modules:undefined},'PRIVATE/Base','targets');adapter({...full,modules_to_save:['embed_tokens']},'PRIVATE/Base','embeddings');adapter({...full,alpha_pattern:{q_proj:64}},'PRIVATE/Base','patterns');adapter({...full,lora_alpha:128},'PRIVATE/Base','scale');adapter(full,'PRIVATE/Base','activation');for(const peft_type of ['PROMPT_TUNING','P_TUNING','PREFIX_TUNING','MULTITASK_PROMPT_TUNING']){ const r=adapter({peft_type,base_model_name_or_path:'PRIVATE/Base'},'PRIVATE/Base','activation'); assert.ok(!r.notices.some(n=>n.key==='adapter_targets_empty'));}adapter({peft_type:'IA3',base_model_name_or_path:'PRIVATE/Base'},'PRIVATE/Base','targets');for(const state of cases)for(const lang of ['en','es','fr','zh']){ const summary=buildResolverSummary(state,lang),c=summary.checks; assert.equal(c.executed,false);assert.equal(c.instructions.length,3);assert.equal(summary.next,c.instructions[0]); for(const mode of c.tools)assert.ok(Object.hasOwn(modeTopics,mode)); for(const text of [c.title,...c.instructions])assert.ok(text&&!text.includes('undefined')&&!text.includes('PRIVATE'));}for(const values of Object.values(checksRows))assert.ok(values.length===4&&values.every(Boolean));for(const [route,scenarios] of Object.entries(CHECK_DEMOS))for(const scenario of scenarios){ const example=checkDemo(route,scenario,q),result=solveCase(route,example.bundle,example.inputs); assert.equal(selectResolverChecks({route,result,inputs:example.inputs}).priority,route+'_'+scenario);}assert.throws(()=>checkDemo('memory','kv',{origin:'hf'}));assert.throws(()=>checkDemo('memory','__proto__',q));assert.equal(selectResolverChecks({route:'memory',result:{status:'unknown'}}),null);assert.equal(selectResolverChecks({route:'template',result:{status:'unknown'}}),null);assert.equal(selectResolverChecks({route:'pvr',result:{}}),null);console.log('Resolver checks PASS: 17 priorities, soft-prompt boundaries, ten optional examples, four languages and unexecuted/private-data-free plans.');12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061import {chromium} from 'playwright';import assert from 'node:assert/strict';import {fileURLToPath} from 'node:url';import {resolve,sep} from 'node:path';import {existsSync,readFileSync,mkdirSync} from 'node:fs';import {CHECK_DEMOS} from '../js/resolver_checks.js';import {RESOLVER_TRANSLATIONS} from '../js/resolver_i18n.js';const root=fileURLToPath(new URL('../',import.meta.url)),base=process.env.TAF_URL||'http://127.0.0.1:8877/';const browser=await chromium.launch({headless:true,timeout:20000});try{ const context=await browser.newContext(),page=await context.newPage(),errors=[];let hf=0; page.on('pageerror',e=>errors.push(e.message)); await context.route(base+'**',async r=>{ const suffix=new URL(r.request().url()).pathname.slice(new URL(base).pathname.length),path=resolve(root,decodeURIComponent(suffix)||'index.html'); if(!path.startsWith(root.endsWith(sep)?root:root+sep)||!existsSync(path))return r.fulfill({status:404,body:''}); await r.fulfill({path}); }); await context.route('**/pyodide.js',r=>r.fulfill({contentType:'text/javascript',body:'window.loadPyodide=()=>new Promise(()=>{});'})); await context.route('https://huggingface.co/**',r=>{hf++;return r.abort();}); for(const lang of ['en','es','fr','zh'])for(const [route,scenarios] of Object.entries(CHECK_DEMOS)){ const tr=k=>RESOLVER_TRANSLATIONS[lang]['resolver.'+k]; await page.goto(base+'?resolve='+route+'&lang='+lang);await page.locator('#resolver-dialog[open]').waitFor(); await page.locator('#resolver-demo').click();await page.locator('#resolver-show-checks').waitFor(); await page.locator('#resolver-show-checks').click();assert.equal(await page.locator('#resolver-checks li').count(),3); for(const scenario of scenarios){ await page.locator('#resolver-check-examples > summary').click(); await page.locator(`[data-check-example="${scenario}"]`).click(); const code=route+'_'+scenario; assert.ok((await page.locator('#resolver-checks').innerText()).includes(tr('checks_'+code))); assert.ok((await page.locator('#resolver-case-summary').innerText()).includes(tr('check_'+code))); await page.locator('#resolver-failed').click(); assert.ok((await page.locator('#resolver-followup').innerText()).includes(tr('check_'+route+'_interpret'))); const pending=page.waitForEvent('download');await page.locator('#resolver-export').click(); const report=JSON.parse(readFileSync(await (await pending).path(),'utf8')); assert.equal(report.demo_scenario,scenario);assert.equal(report.review.checks.priority,code);assert.equal(report.review.checks.executed,false); assert.equal(report.summary.checks.priority,code);assert.equal(report.review.independently_verified,false); for(const mode of report.review.checks.tools){ await page.locator(`[data-check-tool="${mode}"]`).click();assert.equal(await page.locator('#resolver-catalog-select').inputValue(),mode); assert.ok((await page.locator('#resolver-case-summary').innerText()).includes(tr('check_'+code))); } } if(route==='memory'){ await page.locator('#resolver-check-examples > summary').click();await page.locator('[data-check-example="kv"]').click(); await page.locator('#resolver-reduce').click(); assert.ok((await page.locator('#resolver-case-summary').innerText()).includes('→')); assert.ok(!(await page.locator('#resolver-checks').innerText()).includes(tr('checks_memory_kv'))); } } // A real local input drops example controls and exports no private model identifiers. await page.locator('#resolver-local-text').fill(JSON.stringify({peft_type:'PROMPT_TUNING',base_model_name_or_path:'PRIVATE/Base'})); assert.equal(await page.locator('#resolver-checks').count(),0); await page.locator('#resolver-local-base').fill('PRIVATE/Base');await page.locator('#resolver-run').click();await page.locator('#resolver-export').waitFor(); assert.equal(await page.locator('#resolver-check-examples').count(),0); const pending=page.waitForEvent('download');await page.locator('#resolver-export').click();const raw=readFileSync(await (await pending).path(),'utf8'); assert.ok(!raw.includes('PRIVATE'));assert.equal(JSON.parse(raw).review.checks.priority,'adapter_activation'); await page.setViewportSize({width:390,height:844});await page.locator('#resolver-show-checks').click(); assert.ok(await page.locator('#resolver-dialog').evaluate(e=>e.scrollWidth<=e.clientWidth+1)); mkdirSync('tmp/resolver',{recursive:true});await page.screenshot({path:'tmp/resolver/checks-mobile.png'}); assert.equal(hf,0);assert.deepEqual(errors,[]); console.log('Resolver checks browser PASS: ten examples × four languages, ordered checks, recalculation, follow-up, private exports, no HF requests and mobile.');}finally{await browser.close();}39 unmodified lines4041424344454639 unmodified linesassert.ok((await page.locator('#resolver-review').innerText()).includes(RESOLVER_TRANSLATIONS[lang]['resolver.review_demo']));const text=await page.locator('#resolver-result').innerText();assert.ok(!text.includes('undefined')&&!/resolver\.|drift\.template\./.test(text),lang+' '+id+': '+text);assert.ok(text.includes(RESOLVER_TRANSLATIONS[lang]['resolver.'+(id==='pvr'?'protocol_first_document':'next_'+id)]));if(id==='pvr'){await page.locator('#resolver-show-protocol').click();const protocol=await page.locator('#resolver-protocol').innerText();39 unmodified lines4041424344454639 unmodified linesassert.ok((await page.locator('#resolver-review').innerText()).includes(RESOLVER_TRANSLATIONS[lang]['resolver.review_demo']));const text=await page.locator('#resolver-result').innerText();assert.ok(!text.includes('undefined')&&!/resolver\.|drift\.template\./.test(text),lang+' '+id+': '+text);assert.ok(text.includes(RESOLVER_TRANSLATIONS[lang]['resolver.'+(id==='pvr'?'protocol_first_document':id==='adapter'?'check_adapter_mismatch':'next_'+id)]));if(id==='pvr'){await page.locator('#resolver-show-protocol').click();const protocol=await page.locator('#resolver-protocol').innerText();
README.md+5
css/resolver.css+2
docs/LIMITATIONS.md+5
docs/RELEASE_NOTES_2026-10.md+9
docs/guide-integration.md+6
docs/resolver-module-audit.md+7
docs/resolver.md+39-1
index.html+2
js/demo_i18n.js+1-1
js/resolver_checks.jsAdded+30
js/resolver_checks_i18n.jsAdded+48
js/resolver_demo.js+1
js/resolver_i18n.js+2-1
js/resolver_local.js+4-1
js/resolver_review.js+1
js/resolver_summary.js+4-2
js/resolver_ui.js+26-2
tests/resolver.test.mjs+1
tests/resolver_browser.mjs+1
tests/resolver_checks.test.mjsAdded+51
tests/resolver_checks_browser.mjsAdded+61
tests/resolver_local_browser.mjs+1-1