Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: surface baseQuant/lowRam LoRA overrides in the training form (#1407)
Adam Eivy95220ac448ca
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 9542a33648..7906a57f72 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -2,6 +2,8 @@## Added+- **[issue-1407] The LoRA-training form now exposes the per-run base-quant and low-RAM overrides.** The `baseQuant` (bf16 / 8-bit / 4-bit) and `lowRam` request params landed server-side under #1321 — schema, route threading, and the `LORA_TRAIN_MAX_QUANT_BITS` cap — but the training form had no controls for them, so opting a single run into a heavier or lighter frozen base than its memory-derived tier still meant a code change. The Train-LoRA panel now has two **Base quant** and **Low RAM spill** selects (both defaulting to **Auto**); "Auto" leaves the param absent so the server keeps its memory-derived default (no behavior change for anyone who doesn't touch them), while an explicit pick overrides the tier — still clamped by the install's `LORA_TRAIN_MAX_QUANT_BITS` ceiling. mflux runtime only. (`client/src/components/loraTraining/TrainingPanel.jsx`, #1407)+- **CyberCity buildings now have real lit-room windows you can look into.** Online towers in the 3D city (CyberCity) render parallax interior-mapped window panes via the [three-fenestra](https://github.com/codedgar/three-fenestra) shader — a `MeshStandardMaterial` that fakes furnished 3D rooms behind flat glass, so as the camera moves you see *into* lit (and unlit) rooms rather than a flat emissive texture. Each building is a single instanced draw call: a deterministic per-pane seed drives the room-cell pick and per-window lit/unlit + warm/cool lighting entirely on the GPU, with the cool tone pulled toward the building's neon accent so windows stay in-family with the scene. The effect is night-only (by day a tower reads as a sunlit solid) and gated to the **high** quality preset and above, so medium/low machines keep the lighter flat-texture facade. (`client/src/components/city/BuildingWindows.jsx`, `client/src/utils/cityInteriorWindows.js`, `client/src/components/city/{Building,Borough}.jsx`)- **[issue-904] Generate N alternative image-gen prompts from one script fragment.** Comic panels and storyboard scenes already had an *"AI: refine"* button that rewrites a description in place into a single richer image-gen prompt. A new **"AI: N prompts"** action sits alongside it and instead generates several *candidate* prompts from the same fragment — non-destructively. A count picker (1–6) in each stage's toolbar controls how many; the candidates render in a list under the row where you can **Copy** any to the clipboard (to paste into Image Gen) or **Use** one to apply it to the description. Sampling variance across the independent LLM calls yields genuinely different takes on the same beat. Partial failure is tolerated — a few provider hiccups still return the survivors; only an all-failed batch errors. Reuses the existing `pipeline-comic-panel-image-prompt` / `pipeline-storyboard-image-prompt` stage templates (no prompt change, so no migration). New `POST .../panels/:i/image-prompts` and `.../scenes/:i/image-prompts` routes. (`server/services/pipeline/{visualStages,refineHelpers}.js`, `client/src/components/pipeline/{ImagePromptCandidates.jsx,stages/{ComicPagesStage,StoryboardsStage}.jsx}`, #904)diff --git a/client/src/components/loraTraining/TrainingPanel.jsx b/client/src/components/loraTraining/TrainingPanel.jsxindex d5ce730b45..b10c387d94 100644--- a/client/src/components/loraTraining/TrainingPanel.jsx+++ b/client/src/components/loraTraining/TrainingPanel.jsx@@ -309,6 +309,42 @@ export default function TrainingPanel({ dataset, readiness, triggerSaving, onRun/></div>)}+ {/* Frozen-base overrides (issue #1407 / #1321), mflux runtime only.+ "Auto" leaves the param absent so the server keeps its memory-derived+ tier; an explicit pick overrides it (still clamped by the install's+ LORA_TRAIN_MAX_QUANT_BITS cap). Numeric/boolean → undefined so the+ key drops out of the JSON payload entirely (true "absent"). */}+ {params && (+ <div>+ <label htmlFor="lt-param-baseQuant" className="block text-xs text-gray-400 mb-1">Base quant</label>+ <select+ id="lt-param-baseQuant"+ value={params.baseQuant ?? ''}+ onChange={(e) => setParam('baseQuant', e.target.value === '' ? undefined : Number(e.target.value))}+ className="w-full bg-port-bg border border-port-border rounded px-2 py-1.5 text-sm text-white"+ >+ <option value="">Auto</option>+ <option value={16}>bf16 (heaviest)</option>+ <option value={8}>8-bit</option>+ <option value={4}>4-bit (lightest)</option>+ </select>+ </div>+ )}+ {params && (+ <div>+ <label htmlFor="lt-param-lowRam" className="block text-xs text-gray-400 mb-1">Low RAM spill</label>+ <select+ id="lt-param-lowRam"+ value={params.lowRam === true ? 'on' : params.lowRam === false ? 'off' : ''}+ onChange={(e) => setParam('lowRam', e.target.value === '' ? undefined : e.target.value === 'on')}+ className="w-full bg-port-bg border border-port-border rounded px-2 py-1.5 text-sm text-white"+ >+ <option value="">Auto</option>+ <option value="on">On</option>+ <option value="off">Off</option>+ </select>+ </div>+ )}</div><div className="flex items-center justify-between gap-2"><span className={`text-xs ${!disabledReason && readiness?.quality === 'minimum' ? 'text-port-warning' : 'text-gray-500'}`}>