From fc566cf31a54e42a9d6081166303ea6a4adf744c Mon Sep 17 00:00:00 2001 From: pewdiepie-archdaemon Date: Sat, 27 Jun 2026 21:33:13 +0000 Subject: [PATCH] Stabilize llama advanced row spacing --- static/js/cookbookServe.js | 10 +++++----- static/style.css | 13 +++++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/static/js/cookbookServe.js b/static/js/cookbookServe.js index c8090bdd3..c95110662 100644 --- a/static/js/cookbookServe.js +++ b/static/js/cookbookServe.js @@ -1450,21 +1450,21 @@ function _rerenderCachedModels() { const llamaSplitModeOpts = ['', 'layer', 'tensor', 'row', 'none'].map(d => ``).join(''); // Group 1 — GPU placement (GPU-only, hides in CPU mode) - panelHtml += `
`; + panelHtml += `
`; panelHtml += ``; panelHtml += ``; panelHtml += ``; panelHtml += `
`; // Group 2 — Memory tuning (KV cache + MoE-on-CPU + Fit policy) - panelHtml += `
`; + panelHtml += `
`; panelHtml += ``; panelHtml += ``; panelHtml += ``; panelHtml += `
`; // Group 3 — Request batching (Batch / UBatch / Parallel) - panelHtml += `
`; + panelHtml += `
`; panelHtml += ``; panelHtml += ``; panelHtml += ``; @@ -1477,7 +1477,7 @@ function _rerenderCachedModels() { // Live VRAM / RAM-spillover monitor for the serve target's GPU. Polls // /api/cookbook/gpus while the panel is open so you can SEE whether the // config fits VRAM (fast) or spills to system RAM (slow). Populated after mount. - panelHtml += `
`; + panelHtml += `
`; panelHtml += `GPU memory:`; panelHtml += `checking…`; panelHtml += `
`; @@ -1486,7 +1486,7 @@ function _rerenderCachedModels() { // automatically in CPU mode. Order: perf-critical → safety → I/O → // niche. MTP Spec sits last because it owns its own numstep widget // and is the widest item. - panelHtml += `
`; + panelHtml += `
`; panelHtml += ``; panelHtml += ``; panelHtml += ``; diff --git a/static/style.css b/static/style.css index 0d2f26217..792f0129c 100644 --- a/static/style.css +++ b/static/style.css @@ -24042,11 +24042,16 @@ details.hwfit-serve-advanced > .hwfit-serve-row.hwfit-backend-llamacpp { column-gap: 8px; row-gap: 2px; } -details.hwfit-serve-advanced > .hwfit-serve-row.hwfit-backend-llamacpp.cookbook-llama-gpu-only { - margin-top: -8px; +details.hwfit-serve-advanced > .hwfit-llama-placement-row { + margin-top: -8px !important; } -details.hwfit-serve-advanced > .hwfit-serve-row.hwfit-backend-llamacpp:not(.cookbook-llama-gpu-only):has(.hwfit-sf[data-field="cache_type"]) { - margin-top: -16px; +details.hwfit-serve-advanced > .hwfit-llama-memory-row { + margin-top: -22px !important; +} +details.hwfit-serve-advanced > .hwfit-llama-batch-row, +details.hwfit-serve-advanced > .hwfit-llama-monitor-row, +details.hwfit-serve-advanced > .hwfit-llama-checks-row { + margin-top: -20px !important; } details.hwfit-serve-advanced > .hwfit-serve-row.hwfit-vram-monitor { gap: 4px !important;