diff --git a/CHANGELOG.md b/CHANGELOG.md index 87ccbf2ee..b029616ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,12 +68,15 @@ Plus... load using *settings -> text encoder* *tip*: add *sd_text_encoder* to your *settings -> user interface -> quicksettings* list to have it appear at the top of the ui - **Prompt Enhance** + - see [Prompt Enhance Wiki](https://github.com/vladmandic/sdnext/wiki/Prompt-Enhance) for details! - new built-in extension available in text/image/control tabs - can be used to manually or automatically enhance prompts using LLM - built-in presets for **Gemma-3, Qwen-2.5, Phi-4, Llama-3.2, SmolLM2, Dolphin-3** - support for custom models load any models hosted on huggingface load either model in huggingface format or `gguf` format + *note*: any hf model in `transformers.AutoModelForCausalLM` standard should work + *note*: not all model architecture are supported for `gguf` format - models are auto-downloaded on first use - support quantization and offloading - **Acceleration** diff --git a/modules/lora/extra_networks_lora.py b/modules/lora/extra_networks_lora.py index 526926c9a..a775ac91f 100644 --- a/modules/lora/extra_networks_lora.py +++ b/modules/lora/extra_networks_lora.py @@ -6,7 +6,7 @@ from modules.lora import networks, network_overrides from modules import extra_networks, shared, sd_models -debug = os.environ.get('SD_SCRIPT_DEBUG', None) is not None +debug = os.environ.get('SD_LORA_DEBUG', None) is not None debug_log = shared.log.trace if debug else lambda *args, **kwargs: None @@ -26,6 +26,7 @@ def get_stepwise(param, step, steps): # from https://github.com/cheald/sd-webui- if m[1][-1] <= 1.0: step = step / (max_steps - step_offset) if max_steps > 0 else 1.0 v = np.interp(step, m[1], m[0]) + debug_log(f"Network load: type=LoRA step={step} steps={max_steps} v={v}") return v else: return m diff --git a/scripts/prompt_enhance.py b/scripts/prompt_enhance.py index aa719e978..76c53bc6f 100644 --- a/scripts/prompt_enhance.py +++ b/scripts/prompt_enhance.py @@ -22,6 +22,7 @@ class Options: 'meta-llama/Llama-3.2-3B-Instruct': {}, 'cognitivecomputations/Dolphin3.0-Llama3.2-1B': {}, 'cognitivecomputations/Dolphin3.0-Llama3.2-3B': {}, + 'nidum/Nidum-Gemma-3-4B-it-Uncensored': {}, 'mradermacher/Llama-3.2-1B-Instruct-Uncensored-i1-GGUF': { 'repo': 'meta-llama/Llama-3.2-1B-Instruct', # original repo so we can load missing components 'type': 'llama', # required so gguf loader knows what to do diff --git a/wiki b/wiki index b654db617..15afa8e1d 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit b654db61752a4d1925397fd08bb9f576943015a2 +Subproject commit 15afa8e1d865450fa123b5dcdb3a2af2317b65af