Skip to content

[Bug]: Using cpu instead of gpu #561

Open
@TheDarkPharoh

Description

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

While generating the cpu is being used instead of the gpu

Steps to reproduce the problem

Install webui using zluda following instructions
run webui
check hardware utilization

What should have happened?

It should be using the gpu not the cpu

What browsers do you use to access the UI ?

No response

Sysinfo

I couldnt find the file to download

Console logs

Using VENV: E:\automatic\venv
23:35:40-306823 INFO     Starting SD.Next
23:35:40-309366 INFO     Logger: file="E:\automatic\sdnext.log" level=INFO size=134545 mode=append
23:35:40-310390 INFO     Python: version=3.10.6 platform=Windows bin="E:\automatic\venv\Scripts\python.exe"
                         venv="E:\automatic\venv"
23:35:40-565151 INFO     Version: app=sd.next updated=2024-11-02 hash=65ddc611 branch=master
                         url=https://github.com/vladmandic/automatic/tree/master ui=main
23:35:41-077076 INFO     Platform: arch=AMD64 cpu=AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD system=Windows
                         release=Windows-10-10.0.22631-SP0 python=3.10.6
23:35:41-078612 INFO     Args: []
23:35:41-092843 INFO     CUDA: nVidia toolkit detected
23:35:41-292796 INFO     Verifying requirements
23:35:41-295894 INFO     Verifying packages
23:35:41-352193 INFO     Extensions: disabled=['sdnext-modernui']
23:35:41-353714 INFO     Extensions: enabled=['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'stable-diffusion-webui-rembg'] extensions-builtin
23:35:41-357808 INFO     Extensions: enabled=['ultimate-upscale-for-automatic1111'] extensions
23:35:41-359332 INFO     Startup: standard
23:35:41-360348 INFO     Verifying submodules
23:35:52-346761 INFO     Extensions enabled: ['Lora', 'sd-extension-chainner', 'sd-extension-system-info',
                         'sd-webui-agent-scheduler', 'stable-diffusion-webui-rembg',
                         'ultimate-upscale-for-automatic1111']
23:35:52-347777 INFO     Verifying requirements
23:35:52-354940 INFO     Command line args: []
23:36:01-245992 INFO     System packages: {'torch': '2.5.1+cu124', 'diffusers': '0.32.0.dev0', 'gradio': '3.43.2',
                         'transformers': '4.46.1', 'accelerate': '1.0.1'}
23:36:02-032136 INFO     Engine: backend=Backend.DIFFUSERS compute=cpu device=cpu attention="Dynamic Attention BMM"
                         mode=no_grad
23:36:02-038767 INFO     Torch parameters: backend=cpu device=cpu config=Auto dtype=torch.bfloat16 vae=torch.bfloat16
                         unet=torch.bfloat16 context=no_grad nohalf=False nohalfvae=False upscast=False
                         deterministic=False test-fp16=True test-bf16=True optimization="Dynamic Attention BMM"
23:36:02-778022 INFO     Device:
23:36:02-998310 INFO     Available VAEs: path="models\VAE" items=0
23:36:02-999847 INFO     Available UNets: path="models\UNET" items=0
23:36:03-000865 INFO     Available TEs: path="models\Text-encoder" items=0
23:36:03-002398 INFO     Disabled extensions: ['sdnext-modernui']
23:36:03-010078 INFO     Available Models: path="models\Stable-diffusion" items=3 time=0.01
23:36:03-190779 INFO     Available Yolo: path="models\yolo" items=6 downloaded=0
23:36:03-277796 INFO     Available LoRAs: path="models\Lora" items=0 folders=2 time=0.00
23:36:04-172628 INFO     Extension: script='extensions-builtin\sd-webui-agent-scheduler\scripts\task_scheduler.py' Using
                         sqlite file: extensions-builtin\sd-webui-agent-scheduler\task_scheduler.sqlite3
23:36:04-215622 INFO     Available Upscalers: items=53 downloaded=2 user=0 time=0.03 types=['None', 'Lanczos',
                         'Nearest', 'ChaiNNer', 'AuraSR', 'ESRGAN', 'LDSR', 'RealESRGAN', 'SCUNet', 'SD', 'SwinIR']
23:36:04-234536 INFO     Available Styles: folder="models\styles" items=288 time=0.02
23:36:04-238083 INFO     UI theme: type=Standard name="black-teal"
23:36:05-057374 INFO     Extension list is empty: refresh required
23:36:06-160112 INFO     Local URL: http://127.0.0.1:7860/
23:36:06-282853 INFO     [AgentScheduler] Task queue is empty
23:36:06-283868 INFO     [AgentScheduler] Registering APIs
23:36:06-367420 INFO     Model metadata saved: file="metadata.json" items=1 time=0.00
23:36:06-369471 INFO     Load model: select="dreamshaper_8 [879db523c3]"
23:36:06-371001 INFO     Autodetect model: detect="Stable Diffusion" class=StableDiffusionPipeline
                         file="E:\automatic\models\Stable-diffusion\dreamshaper_8.safetensors" size=2034MB
Diffusers  4.52it/s ████████ 100% 6/6 00:01 00:00 Loading pipeline components...
23:36:07-868692 INFO     Load network: type=embeddings loaded=0 skipped=0 time=0.00
23:36:08-057594 INFO     Load model: time=1.51 load=1.50 native=512 memory={'ram': {'used': 2.85, 'total': 31.09}}
23:36:08-060134 INFO     Startup time: 15.70 torch=6.94 gradio=1.41 diffusers=0.21 libraries=1.97 samplers=0.07
                         extensions=0.99 detailer=0.18 ui-networks=0.13 ui-txt2img=0.19 ui-img2img=0.07 ui-control=0.11
                         ui-settings=0.23 ui-extensions=0.79 ui-defaults=0.20 launch=0.13 api=0.06 app-started=0.13
                         checkpoint=1.70
23:36:56-396759 INFO     Browser session: user=None client=127.0.0.1 agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64;
                         rv:132.0) Gecko/20100101 Firefox/132.0
23:36:56-420332 INFO     MOTD: N/A
23:37:05-259157 INFO     Base: class=StableDiffusionPipeline
Progress 18.05s/it █████████████████████████████████ 100% 20/20 06:01 00:00 Base
23:43:14-978249 INFO     Save: image="outputs\text\00010-dreamshaper_8-cat.jpg" type=JPEG width=1024 height=1024
                         size=241085
23:43:14-983350 INFO     Processed: images=1 its=0.05 time=369.73 timers={'encode': 0.1, 'args': 0.1, 'pipeline':
                         361.01, 'decode': 8.56, 'post': 0.04} memory={'ram': {'used': 3.48, 'total': 31.09}}

Additional information

Using a ryzen 7800x3d and a radeon 7800xt

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions