Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
f740d357
Commit
f740d357
authored
May 11, 2023
by
Patrick von Platen
Browse files
make style
parent
5e746753
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/en/using-diffusers/using_safetensors.mdx
docs/source/en/using-diffusers/using_safetensors.mdx
+4
-4
No files found.
docs/source/en/using-diffusers/using_safetensors.mdx
View file @
f740d357
...
@@ -57,11 +57,11 @@ There are several reasons for using safetensors:
...
@@ -57,11 +57,11 @@ There are several reasons for using safetensors:
The time it takes to load the entire pipeline:
The time it takes to load the entire pipeline:
```py
```py
from diffusers import StableDiffusionPipeline
from diffusers import StableDiffusionPipeline
pipeline = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1")
pipeline = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1")
"Loaded in safetensors 0:00:02.033658"
"Loaded in safetensors 0:00:02.033658"
"Loaded in PyTorch 0:00:02.663379"
"Loaded in PyTorch 0:00:02.663379"
```
```
But the actual time it takes to load 500MB of the model weights is only:
But the actual time it takes to load 500MB of the model weights is only:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment