Commit Graph

14756 Commits

Author SHA1 Message Date
Vladimir Mandic 112d5afbfb Merge pull request #5086 from vladmandic/dev
dev merge
2026-09-17 07:53:47 +02:00
Vladimir Mandic dca0bc6924 refresh submodules
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-17 07:53:37 +02:00
Vladimir Mandic 9bb7b41f48 refresh
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-17 07:48:51 +02:00
CalamitousFelicitousness ead32daddf chore(lora): trace pdd head fusion under SD_LORA_DEBUG
One line per fused block shows which heads a generation runs on.
2026-09-16 19:26:21 +01:00
CalamitousFelicitousness 23a280d7d4 chore(lora): gate the adaln projection lines behind SD_LORA_DEBUG
One line per projected layer is trace output, not a load-time message.
2026-09-16 19:26:21 +01:00
CalamitousFelicitousness c67b4f499f fix(lora): read the pdd grid from the file header when the cache lacks it
The metadata cache keeps a failed read forever and --no-metadata returns
nothing, and in both cases the head loader returned None silently while
the backbone still applied. The grid is now read from the file's own
header when the cached metadata lacks it, and head-shaped tensors
without a grid log a warning.
2026-09-16 19:26:21 +01:00
Vladimir Mandic 909db4b797 packages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-16 20:23:53 +02:00
CalamitousFelicitousness 6b7c43cd29 fix(lora): resolve network names that carry a dot in the filename
add_network keys available_networks by the basename with dots mangled to
underscores, and create_item looked the name up in that table using the
name as loaded, so any file with a dot in its stem missed and logged
"not registered". The tag pass then dropped the network's own tags and
used the filename instead. The lookup now falls back to the alias table,
which already carries the natural basename and the subfolder path.
2026-09-16 18:26:06 +01:00
Vladimir Mandic 059ccbaf0b Merge pull request #5091 from CalamitousFelicitousness/feat/lora-pdd
feat(lora): parallel decoding heads and minimax schedule controls
2026-09-16 07:45:57 +02:00
Vladimir Mandic 6a97ab3d2b Merge pull request #5092 from CalamitousFelicitousness/fix/offload-loaded-tensors
fix(offload): hand back the loaded cpu tensors on no-stream offload
2026-09-16 07:39:45 +02:00
CalamitousFelicitousness b259a48448 fix(lora): give replaced pdd projections their own memory
The projection a parallel head replaces waits out of the module tree,
so nothing moves it, and a weight still viewing its checkpoint shard
keeps the whole shard mapped. The stash now clones the projection's
tensors.
2026-09-16 03:23:03 +01:00
CalamitousFelicitousness a7d430a8ba feat(offload): warn when streams clamp the group offload blocks
Streamed prefetch runs one block per group, so a larger blocks setting
is reduced to one at apply time. The clamp is now logged once per
component.
2026-09-16 02:18:07 +01:00
CalamitousFelicitousness c3fc8560cb docs(offload): describe the group offload blocks setting
The blocks count is clamped to one under streams and leaf level never
reads it; the hint says so, and the type hint names the setting it
refers to.
2026-09-16 02:13:28 +01:00
CalamitousFelicitousness 09e861157f fix(offload): hand back the loaded cpu tensors on no-stream offload
Group hooks on the no-stream path and the on-demand hook return a
component to cpu through a device copy, so a memory-mapped text encoder
sits in memory twice, as the mapped file its never-run vision tower
keeps alive and as the copies, and every encode pays a device-to-host
transfer of unchanged weights. The engine now records the cpu tensors
at onload and hands them back at offload; a component moved by any
other path still takes the copy.
2026-09-16 01:57:23 +01:00
CalamitousFelicitousness 726907dd5b fix(video): count minimax steps as transformer evaluations
MiniMaxH3Scheduler counts the terminal sigma in num_inference_steps, so
Steps N ran N-1 evaluations while every other model runs N. The shim
hands the scheduler p.steps + 1, the slider starts at 1, and the PDD
pin records the evaluation count while passing the scheduler its grid
argument. Metadata written before this change counted grid points.
2026-09-16 00:47:46 +01:00
CalamitousFelicitousness 29fe895c0b feat(video): absolute per-request minimax shift on every path
Shift is a property of the trained schedule, not of the step count, so
the tab sliders take absolute values, defaulting to the shipped 12 and
3. video_minimax resolves each request from the request value or the
scheduler config inside apply_overrides, which the tab, the api and
the still path all call, so a request without values lands on the
shipped schedule. The api maps sampler_shift onto the video schedule
and gains audio_shift. Applied values are recorded as Video shift and
Audio shift; the PDD pin records what it enforces.
2026-09-15 23:01:41 +01:00
Vladimir Mandic a941d101c5 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 18:01:34 +02:00
Vladimir Mandic fe6c3acd16 minimax vdn experimental
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 17:16:12 +02:00
Vladimir Mandic 07320874d3 fix font paths
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 12:40:53 +02:00
Vladimir Mandic b7aa4b895a prompt cache prevent clear on task change
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 12:29:14 +02:00
Vladimir Mandic c038e2b21c update submodules
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 11:34:01 +02:00
Vladimir Mandic af16ef567c theme handle cli
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 09:34:10 +02:00
Vladimir Mandic d86916b8eb update installer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 08:58:34 +02:00
Vladimir Mandic 9fe7170248 better handle git detached head
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 08:56:33 +02:00
Vladimir Mandic 2e3275bd40 update modernui
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 08:20:33 +02:00
Vladimir Mandic 28c20f6aa0 refactor theme loading
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-15 08:17:27 +02:00
CalamitousFelicitousness 5a2870f345 feat(cli): stream quantized repos and measure the base error in lora-quant-fidelity
QuantRepo builds the transformer as a meta skeleton through the sdnq
conversion and streams each layer from the shards while it is analyzed,
so a repo larger than host memory costs one module at a time.
Remote-code classes resolve from the modeling file beside the
checkpoint. LoRA groups go through the arch grouper with the file-level
alpha and the adapt_weights hook, and fused saves are sliced onto their
modules. --reference measures each module's quantization error against
the unquantized repo and reports the delta against it; without one a
uniform-rounding estimate stands in. The tool imports again:
group_by_suffixes takes no bare prefixes and shared initializes before
the lora modules.
2026-09-15 03:52:04 +01:00
CalamitousFelicitousness 57328dc615 fix(lora): bind minimax extraction residuals
Layer-wise extractions (FastH3) ship diff_b on every projection and
diff on the norms; final_layer.norm had no rename onto norm_out.norm,
so its residual went unmapped.
2026-09-15 03:52:04 +01:00
CalamitousFelicitousness a800fe59cf fix(lora): accept lowercase lora_a and lora_b factor names
TaoLive adapters save the factors as lora_a and lora_b without the
.weight suffix, which no suffix table knew, so the file bound nothing.
2026-09-15 03:52:04 +01:00
CalamitousFelicitousness a0f0097e52 refactor(lora): make the fused chunk slicer public
The fidelity CLI slices fused saves the way try_load_lora does.
2026-09-15 03:52:04 +01:00
CalamitousFelicitousness 5860ea9153 feat(lora): parallel decoding heads for pdd acceleration files
PDD files pair a backbone LoRA with the output projections repeated per
interval of a training grid; each step fuses the heads of its block
into one projection. network_pdd reads the grid from the metadata,
swaps a ParallelHead in for each projection, fuses from the scheduler's
step_index and pins the step count and shift while heads are
installed. The MiniMax loader declares which scheduler each head
follows.
2026-09-15 00:23:27 +01:00
CalamitousFelicitousness 3e705bc4af feat(lora): project adaln deltas onto the pruned minimax basis
The pruned transformer stores W @ P for each AdaLN projection against
the rank-8 basis in time_embedder.basis, so deltas trained at the
released width failed the shape check. try_load_lora gains an
adapt_weights hook and the MiniMax loader refits lora_down as down @ P,
which is exact.
2026-09-15 00:23:09 +01:00
CalamitousFelicitousness f001a38dd3 fix(lora): accept bare lora_down and lora_up parameter names
Wrappers holding the factors as nn.Parameter save them without the
.weight suffix (alibaba-pai PDD files), which the marker gate rejected
before grouping. The MiniMax-only normalization for that form is
removed.
2026-09-15 00:22:40 +01:00
CalamitousFelicitousness 16a20a337a fix(video): apply the minimax shift through set_shift on both schedulers
MiniMaxH3Scheduler reads its shift from the instance, not config.shift,
and the per-request video scheduler was replaced by the Default sampler
restore. Both schedulers now take set_shift, including the
default_scheduler copy the restore reads.
2026-09-15 00:22:13 +01:00
Vladimir Mandic af69cb7a88 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 20:59:55 +02:00
Vladimir Mandic e4766f99dc minimax redo video/audio shift
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 20:41:02 +02:00
Vladimir Mandic 8691654bef cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 13:57:08 +02:00
Vladimir Mandic 516b9f4a45 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 12:11:52 +02:00
Vladimir Mandic cb7bc0faca fix grid with lora, add dlss framgen logging, add 8bit minimax variants
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 11:34:37 +02:00
Vladimir Mandic 129db5b49a Merge pull request #5089 from resonantsky/tree/dev/dev
More MIOpen script clean up
2026-09-14 11:28:38 +02:00
resonantsky 1ce26bc3fd Merge branch 'vladmandic:master' into tree/dev/dev 2026-09-14 11:03:57 +02:00
resonantsky 9411660053 MIOpen script clean up 2026-09-14 10:21:43 +02:00
Vladimir Mandic bc416b759c cleanup wildcard metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-09-14 09:18:57 +02:00
Vladimir Mandic 808d7b77fe Merge pull request #5088 from CalamitousFelicitousness/refactor/json-helpers-path-lock
Refactor/json helpers path lock
2026-09-14 08:51:45 +02:00
CalamitousFelicitousness b3c78e9b56 fix(civitai): thumbnail video previews from the cdn's h.264 copy
CivitAI video covers are AV1, which OpenCV builds without dav1d cannot
decode. Previews fetch the CDN's transcode=true,width=450 H.264 copy
first, fall back to the original named by its content type, and drop a
video that yields no frame for the next media item. An unreadable frame
logs one line, and the download path is absolute before registration.
2026-09-14 04:00:38 +01:00
CalamitousFelicitousness 6d20ea0332 fix(civitai): keep civitai's reason on refused downloads
A refused download recorded only the status code and logged nothing.
The error now carries CivitAI's own message, as in "HTTP 403: Early
Access: ...", and the refusal and rename failure log like every other
branch.
2026-09-14 04:00:38 +01:00
CalamitousFelicitousness 9a6b7a1c93 fix(civitai): register a finished download with its loader list
A finished download refreshed the checkpoint list alone, so a new LoRA
or UNET stayed invisible to check-local and Networks until a manual
refresh. add_network, now module-level, registers one LoRA file; unet,
vae and checkpoint downloads run their loader's scan.
2026-09-14 04:00:38 +01:00
CalamitousFelicitousness 7554389f2e fix(civitai): stop check-local from reporting deleted model files
A hash cache hit now resolves through its loader's registry and counts
only while the file exists; entries whose file is gone are pruned, on
the request that finds them and once per process for the rest.
filename is always the local path.
2026-09-14 04:00:38 +01:00
CalamitousFelicitousness 229db02b14 feat(civitai): show search failures in the models tab
CivitSearchResponse carries the server's error text; the Gradio page
renders it, or a no-results line, in the details area instead of a
blank card list. The legacy route reads items from the response.
2026-09-14 04:00:38 +01:00
CalamitousFelicitousness ef31ce70c7 refactor(civitai): seed the base-model filter from discovery only
search_civitai.base_models was a hand-kept copy of the /enums list that
lacked every base added this year. The dropdown starts empty and takes
the discovered names minus the bases CivitAI has retired (in BaseModel
but not ActiveBaseModel). The tab handler refreshes the choice lists on
every visit, since later browser sessions used to get no update; the
initial search still runs once per process.
2026-09-13 23:19:56 +01:00