Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/minimax_h3/lora_affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _aligned_affine_map(architecture, target_table):
if int(fit.rank) != target_h.shape[1]:
raise ValueError(f"MiniMax H3 {architecture} checkpoint has a rank-deficient AdaLN table")
relative_error = torch.linalg.vector_norm(target_h @ fit.solution - canonical_h) / torch.linalg.vector_norm(canonical_h)
if relative_error > 1e-5:
if relative_error > 1e-4:
raise ValueError(f"MiniMax H3 {architecture} checkpoint AdaLN table is incompatible with the canonical LoRA map (relative error {relative_error:.3g})")
return (fit.solution @ canonical_affine.double()).float()

Expand Down
33 changes: 33 additions & 0 deletions wgp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13558,6 +13558,39 @@ def create_ui():
if isinstance(plugin_js, str) and plugin_js.strip():
js += f"\n{plugin_js}\n"
js += """
(() => {
let timer = null;
function sync() {
const el = document.querySelector('#wangp_main_output_trigger textarea, #wangp_main_output_trigger input');
if (el) {
el.value = String(Date.now());
el.dispatchEvent(new Event('input', { bubbles: true }));
}
}
function startSync() {
sync();
if (!timer) {
timer = setInterval(() => {
const abortBtn = Array.from(document.querySelectorAll('button')).find(b => b.textContent.trim() === 'Abort');
if (abortBtn && abortBtn.offsetParent !== null) {
sync();
} else {
clearInterval(timer);
timer = null;
setTimeout(sync, 500);
}
}, 2000);
}
}
window.addEventListener('unhandledrejection', (e) => {
if (String(e.reason || '').includes('Connection errored out')) {
e.preventDefault();
startSync();
}
});
window.addEventListener('offline', startSync);
window.addEventListener('online', startSync);
})();
}
"""
if server_config.get("display_stats", 0) == 1:
Expand Down