Commit Graph

8386 Commits

Author SHA1 Message Date
vladmandic ca2d49497b ltx test
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 11:16:55 +02:00
vladmandic a370bfc987 handle taesd init failures
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 10:24:26 +02:00
vladmandic 849ab8fe1e fix loader
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-30 09:58:42 +02:00
awsr 59b9ca50ee Guard against divide by zero and out-of-bounds 2026-03-29 01:25:22 -07:00
awsr eeb9b6291b Update typing + enforce variable not unbound + import sort 2026-03-28 19:27:45 -07:00
awsr 8d6ec348b2 Refactor get_grid_size
Type safe, avoids redefining parameter types, and the static type checker is able to parse it easily.
2026-03-28 19:18:55 -07:00
awsr a1b03a383c Upgrade Grid to typed NamedTuple 2026-03-28 19:17:59 -07:00
awsr ba362ad3ca Type safety 2026-03-28 17:32:23 -07:00
awsr 7f07d4cb31 Update to match actual code logic 2026-03-28 17:31:37 -07:00
awsr 715b1b0699 More typing updates 2026-03-28 17:30:06 -07:00
awsr b2b6fdf9d5 Typing updates 2026-03-28 17:15:48 -07:00
awsr 8ef8074467 Upgrade to typed NamedTuples 2026-03-28 16:57:59 -07:00
Disty0 06fe4c7f20 SDNQ cleanup triton_mm 2026-03-29 00:44:58 +03:00
Disty0 005eb789a3 SDNQ use combination config for Triton MM 2026-03-28 18:02:17 +03:00
vladmandic b86e357b8e update nunchaku code
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-28 09:49:05 +01:00
vladmandic 611dfe4301 update nunchaku installer
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-28 08:57:23 +01:00
awsr 1e9bef8d56 Type enforcement for ResGPU
Only tuples support typing a specific number of entries.
2026-03-27 14:15:44 -07:00
awsr fe7e4b40ff Update models to match actual behavior
- ResScripts
- ResEmbeddings
2026-03-27 14:12:39 -07:00
Disty0 6eadf40f33 SDNQ add ufp aliases 2026-03-27 21:31:36 +03:00
vladmandic b5e9fbc7b3 reorganize scripts/extensions
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-27 14:00:46 +01:00
Vladimir Mandic ac17526715 Merge branch 'dev' into feat/tag-dictionaries 2026-03-27 10:55:20 +01:00
vladmandic 58f9902ffc fix typo
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-27 08:02:44 +01:00
vladmandic 107e9f78a7 safe loader
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-27 07:55:12 +01:00
awsr 775ff59fdb Update typing for model data access 2026-03-26 16:42:04 -07:00
CalamitousFelicitousness 6a7a879c77 fix(autocomplete): address PR review feedback
- Remove remote manifest fetch from startup dropdown population;
  list only locally available tag files via files_cache.list_files()
- Rename CLI utilities to tags-fetch, tags-prune, tags-manifest
- Replace create/destroy mirror div with persistent offscreen mirror
  for caret position measurement
- Add ResizeObserver to reposition dropdown on textarea resize
- Add autocomplete-mirror classname to measurement div
2026-03-26 19:46:23 +00:00
vladmandic 27205c295e lint
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-26 08:11:42 +01:00
vladmandic 4a297d70f2 update diffusers/transformers
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-26 08:10:04 +01:00
vladmandic 397631fb4c update constraints, patch loader and create ext exclude list
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-26 07:21:50 +01:00
Vladimir Mandic 48e8b3a513 Merge pull request #4711 from awsr/pep484-plus
Final PEP 484 updates
2026-03-26 07:10:22 +01:00
CalamitousFelicitousness 97d3854e4b feat(autocomplete): add setting to toggle comma separator between tags 2026-03-26 01:56:57 +00:00
CalamitousFelicitousness d4d5bce3b9 feat(autocomplete): add native tag autocomplete for prompt textareas 2026-03-26 00:47:14 +00:00
CalamitousFelicitousness 5312265d27 refactor(autocomplete): rename dicts to autocomplete, relocate to models/ 2026-03-26 00:47:14 +00:00
CalamitousFelicitousness f3e0b4a86b feat(dicts): add remote dict management via HuggingFace
Add endpoints for browsing, downloading, and deleting dicts hosted on
HuggingFace. Manifest is fetched and cached from the remote repo to
show available dicts with download status and version comparison.

- /dicts/remote GET: list available dicts from HF manifest
- /dicts/{name}/download POST: download dict from HF with atomic write
- /dicts/{name} DELETE: remove local copy and evict cache
- ItemDictRemote model with downloaded/update_available flags
- Exclude manifest.json from local dict listing in all scan paths
2026-03-26 00:47:13 +00:00
CalamitousFelicitousness d26f8560c8 fix(dicts): move default dicts directory to data/dicts
Tag dictionaries are lookup data, not model weights — place them
alongside cache.json and metadata.json in the data/ folder instead
of inside the models directory.
2026-03-26 00:47:13 +00:00
CalamitousFelicitousness 9343768d78 feat(api): add tag dictionary API and settings for prompt autocomplete 2026-03-26 00:47:13 +00:00
awsr 1ac3359e20 Update sd_checkpoint.py 2026-03-25 16:56:51 -07:00
awsr 2675e68813 Revert minor change
Will re-implement in a separate PR
2026-03-25 13:55:56 -07:00
awsr 375591ecdd Revert non-critical changes
The following errors are re-introduced and will need follow-up:
- models.py, line 92
- sd_unet.py, line 41
- sd_models.py, line 1440
2026-03-25 13:47:27 -07:00
Disty0 a255e5bdcf SDNQ set sdnq_dequantize_fp32 to True by default 2026-03-25 21:46:17 +03:00
vladmandic b90558430e fix grid
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-25 09:11:31 +01:00
vladmandic 400d284711 fix metadata parser
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-25 07:32:37 +01:00
CalamitousFelicitousness 18568db41c Add native LoRA loading for Flux2/Klein models
Load Flux2/Klein LoRAs as native NetworkModuleLora objects, bypassing
diffusers PEFT. Handles kohya (lora_unet_), AI toolkit (diffusion_model.),
diffusers PEFT (transformer.), and bare BFL key formats with automatic
QKV splitting for double block fused attention weights.

Includes shape validation to reject architecture-mismatched LoRAs early.
Respects lora_force_diffusers setting to fall back to PEFT when needed.
2026-03-25 04:24:49 +00:00
Disty0 10942032a3 Add SDNQ_COMPILE_KWARGS env var 2026-03-25 02:10:58 +03:00
Disty0 11f3921832 SDNQ make dyn loss threshold auto selected by default 2026-03-25 01:47:59 +03:00
awsr ff247d8fd2 Merge branch 'dev' into RUF013 2026-03-24 07:12:51 -07:00
Disty0 d429e11d55 Update OpenVINO to 2026 and Torch to 2.11 2026-03-24 17:06:57 +03:00
vladmandic 53839e464c remove legacy quant loaders
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-24 15:01:07 +01:00
vladmandic acf475ee45 update locales
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-24 15:01:07 +01:00
Disty0 14c3cf9172 IPEX fix transformers and disable torch.tensor hijack 2026-03-24 16:58:53 +03:00
awsr fd1646cc37 Revert extra return statement 2026-03-24 06:28:39 -07:00