Skip to content

Commit fb4895b

Browse files
pcuencaJimmy
authored and
Jimmy
committed
Fix style rendering (huggingface#3433)
* Fix style rendering. * Fix typo
1 parent 2ad2491 commit fb4895b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/source/en/optimization/fp16.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ image = pipe(prompt).images[0]
6060
```
6161

6262
<Tip warning={true}>
63+
6364
It is strongly discouraged to make use of [`torch.autocast`](https://pytorch.org/docs/stable/amp.html#torch.autocast) in any of the pipelines as it can lead to black images and is always slower than using pure
6465
float16 precision.
66+
6567
</Tip>
6668

6769
## Sliced attention for additional memory savings

docs/source/en/optimization/torch2.0.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Starting from version `0.13.0`, Diffusers supports the latest optimization from
1818

1919

2020
## Installation
21+
2122
To benefit from the accelerated attention implementation and `torch.compile()`, you just need to install the latest versions of PyTorch 2.0 from pip, and make sure you are on diffusers 0.13.0 or later. As explained below, diffusers automatically uses the optimized attention processor ([`AttnProcessor2_0`](https://github.com/huggingface/diffusers/blob/1a5797c6d4491a879ea5285c4efc377664e0332d/src/diffusers/models/attention_processor.py#L798)) (but not `torch.compile()`)
2223
when PyTorch 2.0 is available.
2324

@@ -153,7 +154,7 @@ for _ in range(3):
153154
image = pipe(prompt=prompt, image=init_image).images[0]
154155
```
155156

156-
#### Stable Diffusion - inpatining
157+
#### Stable Diffusion - inpainting
157158

158159
```python
159160
from diffusers import StableDiffusionInpaintPipeline

0 commit comments

Comments
 (0)