Repository: stable-diffusion-webui
Issue: [Bug]: After update GPU not working anymore
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Today (28.01.23) I updated Stable Diffusion with the last version from here.
Now I get errors "Torch is not able to use GPU" and "LayerNormKernelImpl" not implemented for 'Half'.

I have NVIDIA 1060, 6 GB. Before update I generated images and videos with GPU. Now it's not working.



### Steps to reproduce the problem

1. Have Windows (I have Windows 10)
2. Have NVIDIA GPU (I have NVIDIA 1060)
3. Launch webui-user.bat
4. Try to generate an image
5. Get error


### What should have happened?

After update it all must work well and use GPU for generation.

### Commit where the problem happens

python: 3.10.6  •  torch: 1.12.1+cpu  •  xformers: N/A  •  gradio: 3.16.2  •  commit:  •  checkpoint: 4c13cf9c00

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
tried with --skip-torch-cuda-test and without it
```


### List of extensions

![image](https://user-images.githubusercontent.com/123810154/215264969-6c9230ae-7aec-4765-a575-83ba0311e11b.png)


### Console logs

```Shell
To create a public link, set share=True in launch().
Error completing request
Arguments: ('task(5eh2bbvcg2tyuh4)', 'girl in woods', '', [], 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 0, False, 8, True, 16, 'Median cut', False, False, False, False, '', 2, 'Positive', 0, ', ', 'Generate and always save', 32, 1, '', 0, '', True, False, False, 1, '', 0, '', 0, '', True, False, False, False) {}
Traceback (most recent call last):
  File "Z:\stable-diffusion-webui-master\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "Z:\stable-diffusion-webui-master\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "Z:\stable-diffusion-webui-master\modules\txt2img.py", line 52, in txt2img
    processed = process_images(p)
  File "Z:\stable-diffusion-webui-master\modules\processing.py", line 486, in process_images
    res = process_images_inner(p)
  File "Z:\stable-diffusion-webui-master\modules\processing.py", line 617, in process_images_inner
    uc = get_conds_with_caching(prompt_parser.get_learned_conditioning, negative_prompts, p.steps, cached_uc)
  File "Z:\stable-diffusion-webui-master\modules\processing.py", line 572, in get_conds_with_caching
    cache[1] = function(shared.sd_model, required_prompts, steps)
  File "Z:\stable-diffusion-webui-master\modules\prompt_parser.py", line 140, in get_learned_conditioning
    conds = model.get_learned_conditioning(texts)
  File "Z:\stable-diffusion-webui-master\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 669, in get_learned_conditioning
    c = self.cond_stage_model(c)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\modules\sd_hijack_clip.py", line 229, in forward
    z = self.process_tokens(tokens, multipliers)
  File "Z:\stable-diffusion-webui-master\modules\sd_hijack_clip.py", line 254, in process_tokens
    z = self.encode_with_transformers(tokens)
  File "Z:\stable-diffusion-webui-master\modules\sd_hijack_clip.py", line 302, in encode_with_transformers
    outputs = self.wrapped.transformer(input_ids=tokens, output_hidden_states=-opts.CLIP_stop_at_last_layers)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 811, in forward
    return self.text_model(
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 721, in forward
    encoder_outputs = self.encoder(
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 650, in forward
    layer_outputs = encoder_layer(
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\transformers\models\clip\modeling_clip.py", line 378, in forward
    hidden_states = self.layer_norm1(hidden_states)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\normalization.py", line 189, in forward
    return F.layer_norm(
  File "Z:\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\functional.py", line 2503, in layer_norm
```


### Additional information

when I try generate image, I get error in WebUI:
return torch.layer_norm(input, normalized_shape, weight, bias, eps, torch.backends.cudnn.enabled)
RuntimeError: "LayerNormKernelImpl" not implemented for 'Half'