Commit Graph

8270 Commits

Author SHA1 Message Date
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
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
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
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
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
awsr 876e3b9897 RUF013 updates 2026-03-24 06:15:26 -07:00
awsr 1003926646 RUF013 updates and import updates 2026-03-24 06:08:15 -07:00
awsr 09ab19c438 RUF013 updates and formatting 2026-03-24 06:07:34 -07:00
awsr c4ebef29a9 RUF013 updates 2026-03-24 05:48:19 -07:00
awsr 3f830589d1 RUF013 updates and typing update 2026-03-24 05:19:51 -07:00
awsr f0bb0a921a RUF013 updates and value handling fix 2026-03-24 05:13:11 -07:00
awsr 62d2229520 RUIF013 updates and formatting 2026-03-24 05:12:18 -07:00
awsr 4f0fb7cc29 More RUF013 updates for processing_class 2026-03-24 05:00:41 -07:00
awsr fb853af4b0 RUF013 updates 2026-03-24 04:58:19 -07:00
Disty0 cff7f8d4a9 IPEX remove the use of lambdas 2026-03-24 14:36:58 +03:00
awsr 641321d7d2 RUF013 updates 2026-03-24 04:34:38 -07:00
awsr 92960de8d6 RUF013 updates 2026-03-24 04:27:30 -07:00
awsr 6ab9b7bc62 RUF013 updates 2026-03-24 04:19:53 -07:00
Disty0 4f8260e670 Update IPEX to Torch 2.11 2026-03-24 14:17:24 +03:00
awsr 2d81bcdc69 RUF013 updates + type fixes 2026-03-24 04:12:14 -07:00
awsr abe25e7b07 RUF013 update 2026-03-24 03:46:44 -07:00