Skip to content

Loras from CivitAI don't work #66

Description

@10001001011010111010

2025-01-21 09:39:05.475 | DEBUG | fp8.lora_loading:apply_lora_to_model:574 - Extracting keys
2025-01-21 09:39:05.475 | DEBUG | fp8.lora_loading:apply_lora_to_model:581 - Keys extracted
Applying LoRA: 0%| | 0/304 [00:00<?, ?it/s]
Applying LoRA: 100%|██████████| 304/304 [00:00<00:00, 13104.78it/s]
2025-01-21 09:39:05.498 | SUCCESS | fp8.lora_loading:unload_loras:564 - LoRAs unloaded in 0.024s
free=29286057943040
Downloading weights
2025-01-21T09:39:05Z | INFO | [ Initiating ] chunk_size=150M dest=/src/weights-cache/1e1f6b81091979b7 url=https://civitai.com/api/download/models/1080034?type=Model&format=SafeTensor
Error: unexpected http status https://civitai.com/api/download/models/1080034?type=Model&format=SafeTensor: 404 Not Found
Traceback (most recent call last):
File "/src/weights.py", line 150, in download_safetensors
subprocess.run(["pget", url, str(path)], check=True)
File "/root/.pyenv/versions/3.11.10/lib/python3.11/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pget', 'https://civitai.com/api/download/models/1080034?type=Model&format=SafeTensor', '/src/weights-cache/1e1f6b81091979b7']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/cog/server/worker.py", line 352, in _predict
result = predict(**payload)
^^^^^^^^^^^^^^^^^^
File "/src/predict.py", line 846, in predict
self.handle_loras(go_fast, lora_weights, lora_scale)
File "/root/.pyenv/versions/3.11.10/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/predict.py", line 358, in handle_loras
lora_path = self.weights_cache.ensure(lora_weights)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/weights.py", line 47, in ensure
download_weights(url, path)
File "/src/weights.py", line 76, in download_weights
download_weights_url(download_url, path)
File "/src/weights.py", line 90, in download_weights_url
download_safetensors(url, path)
File "/src/weights.py", line 152, in download_safetensors
raise RuntimeError(f"Failed to download safetensors file: {e}")
RuntimeError: Failed to download safetensors file: Command '['pget', 'https://civitai.com/api/download/models/1080034?type=Model&format=SafeTensor', '/src/weights-cache/1e1f6b81091979b7']' returned non-zero exit status 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions