Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
1c36a123
Unverified
Commit
1c36a123
authored
Feb 27, 2023
by
Patrick von Platen
Committed by
GitHub
Feb 27, 2023
Browse files
[Docs] Improve safetensors (#2508)
* [Docs] Improve safetensors * Apply suggestions from code review
parent
48a2eb33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/source/en/using-diffusers/using_safetensors.mdx
docs/source/en/using-diffusers/using_safetensors.mdx
+3
-3
No files found.
docs/source/en/using-diffusers/using_safetensors.mdx
View file @
1c36a123
...
@@ -65,7 +65,7 @@ torch.load = lambda *args, **kwargs: _raise()
...
@@ -65,7 +65,7 @@ torch.load = lambda *args, **kwargs: _raise()
# I want to use model X but it doesn't have safetensors weights.
# I want to use model X but it doesn't have safetensors weights.
Just go to this [space](https://huggingface.co/spaces/
safetenso
rs/convert).
Just go to this [space](https://huggingface.co/spaces/
diffuse
rs/convert).
This will create a new PR with the weights, let's say `refs/pr/22`.
This will create a new PR with the weights, let's say `refs/pr/22`.
This space will download the pickled version, convert it, and upload it on the hub as a PR.
This space will download the pickled version, convert it, and upload it on the hub as a PR.
...
@@ -80,8 +80,8 @@ from diffusers import StableDiffusionPipeline
...
@@ -80,8 +80,8 @@ from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1", revision="refs/pr/22")
pipe = StableDiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-2-1", revision="refs/pr/22")
```
```
or you can test it directly online with this [space](https://huggingface.co/spaces/diffusers/check_pr).
And that's it !
And that's it !
Anything unclear, concerns, or found a bugs ? [Open an issue](https://github.com/huggingface/diffusers/issues/new/choose)
Anything unclear, concerns, or found a bugs ? [Open an issue](https://github.com/huggingface/diffusers/issues/new/choose)
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