Commit Graph

13042 Commits

Author SHA1 Message Date
Vladimir Mandic bb07443995 Merge pull request #4771 from liutyi/dev
Nucleus cover image
2026-04-15 22:33:18 +02:00
Disty0 8a1743712a SDNQ disable FP8 MM on dynamic quant with unsupported GPUs 2026-04-15 23:28:20 +03:00
Disty0 202f12ea6c SDNQ disable fp8 mm with pre-quants on unsupported gpus 2026-04-15 23:12:46 +03:00
Oleksandr Liutyi f719539982 Nucleus cover image 2026-04-15 19:47:03 +00:00
Vladimir Mandic 94d378651e Merge pull request #4770 from liutyi/dev
ERNIE cover images
2026-04-15 20:40:07 +02:00
vladmandic 3e094d394a cleanup changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 19:58:49 +02:00
Oleksandr Liutyi c491e65829 ERNIE cover images 2026-04-15 14:41:18 +00:00
vladmandic e6f7017b0d update changelog/todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 15:22:31 +02:00
Vladimir Mandic eab583ad4b cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-04-15 12:32:21 +00:00
Vladimir Mandic 69d370d8da update reference data and enable preview for ernie and nucleus
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-04-15 12:22:53 +00:00
Vladimir Mandic c86ba31214 add nucleus-image
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-04-15 11:49:10 +00:00
Vladimir Mandic db8c6e9243 add ernie-image
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-04-15 11:06:32 +00:00
vladmandic d29c133891 validate reference, lint and update diffusers
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 10:10:05 +02:00
vladmandic 1a2d255bba update changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 09:46:17 +02:00
vladmandic c2dd402f17 update samplers hijack
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-15 09:44:32 +02:00
Vladimir Mandic f1304b3ba0 Merge pull request #4762 from awsr/hashcache
Update hash cache
2026-04-15 09:42:35 +02:00
Vladimir Mandic a26cdca849 Merge pull request #4767 from vladmandic/feat/zimage-native-adapters
Feat/zimage native adapters
2026-04-15 09:36:57 +02:00
Vladimir Mandic c7521f4da4 Merge pull request #4756 from vladmandic/feat/civitai-base-models
feat(civitai): enrich base-model discovery with github constants
2026-04-15 09:34:04 +02:00
Vladimir Mandic 3739456639 Merge pull request #4766 from awsr/patch-1
Support upcoming Civit AI frontend split
2026-04-15 09:32:50 +02:00
Vladimir Mandic 4da4fb94ae Merge pull request #4763 from resonantsky/dev
sd_samplers_diffuse.py patch in response to issue #4761
2026-04-15 09:13:16 +02:00
CalamitousFelicitousness ac78d904b3 refactor(civitai): split base-model helpers into basemodels_civitai
Addresses #4756 review: keeps client_civitai focused on the HTTP client
surface. Behavior unchanged.
2026-04-14 23:26:01 +01:00
CalamitousFelicitousness 5d9b8d2e34 feat(civitai): enrich base-model discovery with github constants
CivitAI removed enum validation from /api/v1/models?baseModels=X (now
returns 200 with empty items on unknown values), which left the
base-model filter dropdown empty. Fix in two parts.

1. Point the base_models discovery probe at /images instead of /models.
   /images still returns a ZodError with the full enum list (82 names
   at time of writing). The existing parser handles the shape unchanged.

2. Also fetch civitai/civitai's base-model.constants.ts from GitHub and
   merge per-name metadata (group, ecosystem, engine, family, hidden)
   into a new base_models_info field on the response. The live probe
   remains authoritative for which names exist; GitHub provides the
   metadata and doubles as a fallback name list if the probe comes back
   empty.

Backward compatible: the existing base_models list keeps the same
shape. Clients that want grouped dropdowns, hidden-flag filtering, or
image/video separation can consume base_models_info instead.

The GitHub fetch has a separate 6h cache since these constants change
much less often than the probes it sits alongside.
2026-04-14 23:26:01 +01:00
CalamitousFelicitousness 65e59e7224 feat(lora): z-image native lokr, loha and oft loaders
Add three adapter families to the z-image native loader and chain them
with the existing lora path through load_safetensors. Mixed-family
files (for example gta6_amateur_photography_zimagebase_v2.safetensors,
which carries lora and lokr groups in the same file) now load
completely instead of having one family silently dropped.

Shared helpers in pipelines/z_image/zimage_lora.py parse keys by
suffix list, rename legacy attention.out and attention.wo to
attention.to_out.0, and split fused attention.qkv into to_q/k/v. For
lora the split chunks the up weight along dim 0. For lokr the split
emits three NetworkModuleLokrChunk entries that share the tensors and
slice the kronecker product at apply time.

Fused attention.qkv for loha and oft is skipped with a warning. No
NetworkModuleHadaChunk exists, oft rotations are tied to out_features
and cannot be cleanly split across q/k/v, and no real z-image adapter
in that layout exists today.

load_safetensors for zimage chains try_load_lora, try_load_lokr,
try_load_loha and try_load_oft and merges their module dicts into a
single Network so mixed files load every module.
2026-04-14 21:48:19 +01:00
CalamitousFelicitousness c35adc4d0d feat(lora): native z-image lora loader
Add zimage to allow_native so lora_force_diffusers picks between
native and diffusers. Before this, zimage always took the diffusers
path regardless of the setting.

pipelines/z_image/zimage_lora.py reads the safetensors and writes
directly into network_layer_mapping, so Z-Image LoRAs no longer go
through the diffusers PEFT converter that raised KeyError on
state dicts with partial alpha keys.

Key formats handled: ai-toolkit, kohya lora_unet_, bare transformer.
and no-prefix. Pre-refactor fused attention.qkv is split into
to_q/k/v; attention.out and attention.wo are renamed to
attention.to_out.0. Alpha and dora_scale are preserved.
2026-04-14 21:13:23 +01:00
awsr 03486deca6 Support upcoming site frontend split
API endpoints are supposed to remain the same, so those don't need updating.
2026-04-14 12:46:12 -07:00
resonantsky 512051bafa samplers: fix UniPCMultistepScheduler sigmas device mismatch at step >= 2
upstream UniPCMultistepScheduler.set_timesteps unconditionally moves self.sigmas to CPU after building them. multistep_uni_p_bh_update / multistep_uni_c_bh_update then constructs a torch.ones(..., device=sample.device) tensor and calls torch.stack([..., self.sigmas[...]]) — crashing at inference step >= 2 whenever the model runs on a non-CPU device (CUDA, ROCm, MPS).

Monkey-patch set_timesteps so that, after the upstream call, self.sigmas is moved back to the requested device. Applied once at import time inside the existing sampler-load try/except block so failures are silent-logged and never break the rest of the sampler registry.
2026-04-14 14:35:29 +02:00
awsr c8e3473e93 Minor cleanup 2026-04-14 05:22:07 -07:00
vladmandic 101bd64b8c update todo/changelog
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 14:05:32 +02:00
vladmandic 58649a7935 trivial prompt-to-json
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:59:56 +02:00
vladmandic 0a15030067 error checks for fibo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:45:33 +02:00
vladmandic afd246d062 fix vibe installer
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:24:09 +02:00
vladmandic 6f471f9050 install vibe on-demand
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:20:12 +02:00
vladmandic 0a2462154c step1x
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 13:03:26 +02:00
vladmandic 020bc7a569 cleanup hijacks
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 12:52:51 +02:00
awsr 6aff795985 Improve extensibility 2026-04-14 02:59:19 -07:00
vladmandic f033eaf58a add explicit vae method=none and allow images in history
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-14 11:51:27 +02:00
awsr 5c30c993b5 Don't include empty hash stores 2026-04-14 00:11:33 -07:00
awsr e94d715e7d Fix data serialization 2026-04-13 23:44:05 -07:00
awsr 1647be96de Minor function renaming
Cache no longer requires initialization.
2026-04-13 23:44:05 -07:00
awsr e4aaed9eee Improve init & data handling. Improve typing.
Minor usage change. Instead of setting the hash info directly, call `add_hash` to ensure proper data structure.
2026-04-13 23:44:05 -07:00
CalamitousFelicitousness d04915a83f fix(grading): skip None kwargs so dataclass defaults apply 2026-04-14 00:10:43 +01:00
CalamitousFelicitousness a9a33b2bfa fix(civitai): probe /images for baseModels enum discovery
Civitai stopped validating baseModels on /api/v1/models (returns 200 with
empty items on unknown values), which left API clients without a way to
discover the values. Right now /images still does, I will get a separate
PR to put something more robust in place.
2026-04-13 22:46:52 +01:00
vladmandic a42fc62ede well-known api logging
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 16:40:03 +02:00
vladmandic 0b4deb80a4 cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 16:22:56 +02:00
vladmandic defe85df6d update todo
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 15:40:25 +02:00
vladmandic 7a6b0bdcc9 bria-fibo prompt-to-json
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 12:41:57 +02:00
vladmandic 84c2ddc5ca linting
Signed-off-by: vladmandic <mandic00@live.com>
2026-04-13 12:18:05 +02:00
Vladimir Mandic 522352bac2 Merge pull request #4753 from resonantsky/dev
FP16 Clamp fix for Z-Image-Turbo, enable FP16 on ZiT.
2026-04-13 12:06:55 +02:00
Vladimir Mandic 58354cff07 Merge pull request #4754 from liutyi/dev
BRIA FIBO cover images
2026-04-13 12:02:38 +02:00
Vladimir Mandic b3f09aa417 Merge pull request #4707 from vladmandic/feat/tag-dictionaries
Feat/tag dictionaries
2026-04-13 11:57:48 +02:00