Instructions to use signalNotNoise/shap-e-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use signalNotNoise/shap-e-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download signalNotNoise/shap-e-mlx --local-dir shap-e-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Shap-E MLX runtime bundle
Converted OpenAI Shap-E and CLIP ViT-L/14 weights for the custom apple-mlx-foundations Python MLX and Swift ShapERuntime implementations. This is an independent port; it is not affiliated with or endorsed by OpenAI or Apple.
Release status
Public v0.1.0 release candidate. Text-path upstream checks, L1 golden and L2
Python/Swift parity passed. A fresh Hub download passed all file checksums and
L1/L2 checks. Swift image preprocessing, CLIP-grid, and Image300M parity
against upstream Torch also passed on synthetic and real-image cases,
including a 64-step CPU/Metal mesh-topology smoke; see
validation/image-parity.json. This repository starts with a clean public
history; checksum/provenance files identify the exact bundle payload.
Format and requirements
manifest.json describes artifact format version 1. Each named tensor has a raw
binary file, dtype and shape. The files are not PyTorch checkpoint files despite
the .bin extension, and cannot be loaded through Transformers from_pretrained.
Use Apple Silicon with MLX. Swift builds require Xcode and the package's supported
Apple OS versions. The Python runtime supports text conditioning; the bundle also
contains the image-conditioning families used by Swift.
Families: clip_text, clip_vision, text300m, image300m, diffusion,
decoder_params, renderer. The CLIP BPE vocabulary is included at the root.
Bundle layout
The repository contains 1,104 files (about 5.143 GB). Tensor names are
flattened with __; every .bin is the tensor's raw,
contiguous C-order bytes with no header, and manifest.json supplies its
shape and dtype. The current bundle contains 1,088 tensors, all float32.
.
βββ manifest.json Format v1: families, metadata, tensors
βββ bpe_simple_vocab_16e6.txt.gz Separate CLIP tokenizer vocabulary
βββ provenance.json Source checkpoints and code revision
βββ checksums.sha256 1,102 delivery-file entries
βββ LICENSE
βββ reproduce_export.py
βββ requirements-validation.txt
βββ clip_text/ 149 .bin 494,601,216 bytes
βββ clip_vision/ 296 .bin 1,215,864,832 bytes
βββ text300m/ 303 .bin 1,262,768,128 bytes
βββ image300m/ 305 .bin 1,263,824,896 bytes
βββ decoder_params/ 16 .bin 903,712,488 bytes
βββ diffusion/ 7 .bin 28,672 bytes
βββ renderer/ 12 .bin 595,016 bytes
βββ licenses/
β βββ CLIP.txt
β βββ Shap-E.txt
βββ validation/
βββ download-verification.json
βββ image-parity.json
βββ l0-results.json
βββ l2.log
βββ mesh-report.json
| Family | Runtime use |
|---|---|
clip_text |
CLIP ViT-L/14 text conditioning |
text300m |
Text-conditioned diffusion transformer |
clip_vision |
CLIP ViT-L/14 image conditioning, Swift only |
image300m |
Image-conditioned diffusion transformer, Swift only |
diffusion |
Noise schedule and posterior coefficients |
decoder_params |
Latent projection to NeRSTF parameters |
renderer |
Static NeRSTF weights, bounding box, and field settings |
Text-family tensors total 2,661,705,520 bytes; the two Swift image families add 2,479,689,728 bytes. Full-bundle download is the release-tested path.
The canonical repository map and manifest contract are documented in
docs/FILE-STRUCTURE.md,
and pinned revisions plus validation scope are in
docs/RELEASE-STATUS.md.
Download
Use huggingface_hub.snapshot_download with this model repository and the
revision pinned by the matching source release. Pass the downloaded directory
as --bundle to ShapECLI and its bpe_simple_vocab_16e6.txt.gz as --bpe.
Example from the code repo:
cd shap_e/swift
xcodebuild -scheme ShapECLI -destination "platform=macOS" -derivedDataPath /tmp/shap-e-build build
# Generate a mesh:
/tmp/shap-e-build/Build/Products/Debug/ShapECLI --ab-mesh \
--bundle /path/to/download --bpe /path/to/download/bpe_simple_vocab_16e6.txt.gz \
--prompt "a red chair" --seed 7 --steps 64 --grid 64 --out-dir /tmp/shap-e-mesh
Download the entire bundle for both text and image generation. A tested
text-only snapshot can omit clip_vision and image300m with the code
repository's cli.run.download_shap_e_bundle --text-only; use an empty output
directory for that mode. No hosted inference service is supplied.
Provenance and licenses
The source code revision and checkpoint SHA-256 hashes are in provenance.json.
Upstream Shap-E: https://github.com/openai/shap-e
Upstream CLIP: https://github.com/openai/CLIP
See the included upstream MIT licenses. Conversion does not constitute training
or fine-tuning. Upstream model limitations apply; generated geometry may contain
artifacts and should be inspected before use.
Verified download example
from huggingface_hub import snapshot_download
bundle = snapshot_download(
"signalNotNoise/shap-e-mlx",
revision="v0.1.0",
)
print(bundle)
For reproducible installs, prefer the source repository's
cli.run.download_shap_e_bundle, which pins an exact commit revision and
verifies checksums.sha256 after download.
Re-export
Use the export snapshot identifier in provenance.json, Python 3.14.3, and the included pinned
requirements. Install those with pip install --no-deps -r requirements-validation.txt,
then run pip check. The no-deps flag avoids the upstream unpinned CLIP URL
conflicting with the pinned CLIP commit in the snapshot.
python reproduce_export.py --code /path/to/apple-mlx-foundations \
--cache /path/to/shap_e_model_cache --output /path/to/new-bundle
The 64-step red-chair test at grid 64 produced closed CPU and Metal meshes, each
with 9,882 vertices and 19,684 faces. See validation/mesh-report.json.
Image-conditioning component and mesh results for synthetic and real-image
cases are in validation/image-parity.json. Image validation found and fixed
a Swift preprocessing orientation bug after the weight export; the weights
themselves are unchanged.