Skip to content

Commit 78990dd

Browse files
committed
add: space within docs to calculate mememory usage.
1 parent 405a1fa commit 78990dd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/source/en/using-diffusers/loading.md

+17
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ repo_id = "runwayml/stable-diffusion-v1-5"
6060
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(repo_id)
6161
```
6262

63+
You can estimate the memory requirements of a pipeline you want to load beforehand with [this Space](https://huggingface.co/spaces/diffusers/compute-pipeline-size/).
64+
65+
<div class="block dark:hidden">
66+
<iframe
67+
src="https://diffusers-compute-pipeline-size.hf.space?__theme=light"
68+
width="850"
69+
height="1600"
70+
></iframe>
71+
</div>
72+
<div class="hidden dark:block">
73+
<iframe
74+
src="https://diffusers-compute-pipeline-size.hf.space?__theme=dark"
75+
width="850"
76+
height="1600"
77+
></iframe>
78+
</div>
79+
6380
### Local pipeline
6481

6582
To load a diffusion pipeline locally, use [`git-lfs`](https://git-lfs.github.com/) to manually download the checkpoint (in this case, [`runwayml/stable-diffusion-v1-5`](https://huggingface.co/runwayml/stable-diffusion-v1-5)) to your local disk. This creates a local folder, `./stable-diffusion-v1-5`, on your disk:

0 commit comments

Comments
 (0)