lllyasviel / lllyasviel/stable-diffusion-webui-forge

Patching LoRAs for KModel slow with Automatic (fp16 LoRA).

Open
#1,569 9 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

![Screenshot_2](https://github.com/user-attachments/assets/0dafa3ce-16fe-4cd4-8a12-ee2ba10b3fde)

```
Patching LoRA by precomputing model weights.
Patching LoRAs for KModel: 94%|█████████████████████████████████████████████████▊ | 286/304 [01:16<00:02, 6.48it/s]ERROR lora diffusion_model.single_blocks.32.linear1.weight Allocation on device
Patching LoRA weights failed. Retrying by offloading models.
Patching LoRAs for KModel: 100%|█████████████████████████████████████████████████████| 304/304 [01:58<00:00, 2.56it/s]
LoRA patching has taken 118.75 seconds
Moving model(s) has taken 130.87 seconds
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing Automatic's fp16 LoRA path using the reported KModel patching output. Investigate the allocation failure and the fallback to offloading, then compare the patching and model-moving timings against the reported 118.75 and 130.87 seconds. Done means the reported slow path is addressed and the relevant timings no longer show the excessive delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.