Instructions to use openai/shap-e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use openai/shap-e with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("openai/shap-e", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Download shap_e_renderer/diffusion_pytorch_model.bin from openai/shap-e: direct link, hf CLI and curl.
- Browser
- Download file 905 MB
-
https://huggingface.co/openai/shap-e/resolve/refs%2Fpr%2F13/shap_e_renderer/diffusion_pytorch_model.bin
- Command line
-
hf download hf://openai/shap-e@refs/pr/13/shap_e_renderer/diffusion_pytorch_model.bin
-
curl -L -o diffusion_pytorch_model.bin https://huggingface.co/openai/shap-e/resolve/refs%2Fpr%2F13/shap_e_renderer/diffusion_pytorch_model.bin
905 MB
- Xet hash:
- a7f5387d17ad2ce7cf54ba777b011b0f5be0703c3632160b911e340cee499031
- Size of remote file:
- 905 MB
- SHA256:
- 2b63c2b52fbff7cc2c0b88b196f169e8adbcc2c298cadab30afe63c8a7241a05
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.