mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
zero token counter when using large encoder models
This commit is contained in:
+6
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
TODO:
|
||||
- Requires `diffusers==0.30.0`
|
||||
- AlphaVLLM Lumina-Next: https://github.com/huggingface/diffusers/pull/8652
|
||||
- LavenderFlow: https://github.com/huggingface/diffusers/pull/8796
|
||||
-
|
||||
- FlowMatchHeunDiscreteScheduler
|
||||
|
||||
## Update for 2024-07-05
|
||||
@@ -12,10 +12,14 @@ TODO:
|
||||
with over 20 new pages and articles, now includes guides for nearly all major features
|
||||
thanks @GenesisArtemis!
|
||||
- support for [AlphaVLLM Lumina-Next-SFT](https://huggingface.co/Alpha-VLLM/Lumina-Next-SFT-diffusers)
|
||||
note: this is a large model at 8.6GB and uses T5 XXL variation of text encoder
|
||||
to use, simply select from *networks -> reference
|
||||
use scheduler: default or euler flowmatch or heun flowmatch
|
||||
note: this model uses T5 XXL variation of text encoder
|
||||
(previous version of Lumina used Gemma 2B as text encoder)
|
||||
- support for [HunyuanDiT 1.2](https://huggingface.co/Tencent-Hunyuan/HunyuanDiT-v1.2-Diffusers)
|
||||
to use, simply select from *networks -> reference
|
||||
- support for [CogFlorence 2 Large](https://huggingface.co/thwri/CogFlorence-2-Large-Freeze) VLM model
|
||||
to use, simply select in process -> visual query
|
||||
- support for [AuraSR](https://huggingface.co/fal/AuraSR) high-quality 4x GAN-style upscaling model
|
||||
note: this is a large upscaler at 2.5GB
|
||||
- support for [uv](https://pypi.org/project/uv/), extremely fast installer, thanks @Yoinky3000!
|
||||
|
||||
@@ -20,6 +20,5 @@ def load_lumina(_checkpoint_info, diffusers_load_config={}):
|
||||
cache_dir = shared.opts.diffusers_dir,
|
||||
**diffusers_load_config,
|
||||
)
|
||||
print('HERE2', diffusers_load_config)
|
||||
devices.torch_gc()
|
||||
return pipe
|
||||
|
||||
@@ -407,4 +407,6 @@ def update_token_counter(text, steps):
|
||||
ids = getattr(ids, 'input_ids', [])
|
||||
token_count = len(ids) - int(has_bos_token) - int(has_eos_token)
|
||||
max_length = shared.sd_model.tokenizer.model_max_length - int(has_bos_token) - int(has_eos_token)
|
||||
if max_length is None or max_length < 0 or max_length > 10000:
|
||||
max_length = 0
|
||||
return f"<span class='gr-box gr-text-input'>{token_count}/{max_length}</span>"
|
||||
|
||||
Reference in New Issue
Block a user