Skip to content

Commit 91eff23

Browse files
stevhliusayakpaul
andauthored
Update docs/source/en/optimization/fp16.md
Co-authored-by: Sayak Paul <[email protected]>
1 parent 42aed0a commit 91eff23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/en/optimization/fp16.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Compilation is slow the first time, but once compiled, it is significantly faste
157157
[Accelerate](https://huggingface.co/docs/accelerate/index) provides the [compile_regions](https://github.com/huggingface/accelerate/blob/273799c85d849a1954a4f2e65767216eb37fa089/src/accelerate/utils/other.py#L78) method for automatically compiling the repeated blocks of a `nn.Module` sequentially. The rest of the model is compiled separately.
158158

159159
```py
160-
!#pip install -U accelerate
160+
# pip install -U accelerate
161161
import torch
162162
from diffusers import StableDiffusionXLPipeline
163163
from accelerate.utils import compile regions

0 commit comments

Comments
 (0)