Text-to-Image
Diffusers
Safetensors
prism-dit
diffusion
dit
flow-matching
rectified-flow
artistic
custom-architecture
Instructions to use WZRD-AI/PRISM-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WZRD-AI/PRISM-1 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WZRD-AI/PRISM-1", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download inspect_checkpoint.py from WZRD-AI/PRISM-1: direct link, hf CLI and curl.
- Browser
- Download file 1.37 kB
-
https://huggingface.co/WZRD-AI/PRISM-1/resolve/main/inspect_checkpoint.py
- Command line
-
hf download hf://WZRD-AI/PRISM-1/inspect_checkpoint.py
-
curl -L -o inspect_checkpoint.py https://huggingface.co/WZRD-AI/PRISM-1/resolve/main/inspect_checkpoint.py
1.37 kB
| """ | |
| Utility to safely inspect .safetensors checkpoints without opening binary files in text editors. | |
| """ | |
| import sys | |
| import os | |
| from safetensors import safe_open | |
| def inspect_safetensors(filepath: str): | |
| if not os.path.exists(filepath): | |
| print(f"Error: File not found: {filepath}") | |
| return | |
| file_size_mb = os.path.getsize(filepath) / (1024 * 1024) | |
| print(f"==================================================") | |
| print(f" File: {os.path.basename(filepath)}") | |
| print(f" Path: {filepath}") | |
| print(f" Size: {file_size_mb:.2f} MB") | |
| print(f"==================================================") | |
| with safe_open(filepath, framework="pt") as f: | |
| meta = f.metadata() or {} | |
| print("\n--- Header Metadata ---") | |
| if meta: | |
| for k, v in meta.items(): | |
| print(f" {k}: {v}") | |
| else: | |
| print(" (No custom metadata embedded)") | |
| keys = list(f.keys()) | |
| print(f"\n--- Tensors ({len(keys)} total) ---") | |
| for k in keys[:8]: | |
| t = f.get_tensor(k) | |
| print(f" {k:45s} | shape: {str(list(t.shape)):20s} | dtype: {t.dtype}") | |
| if len(keys) > 8: | |
| print(f" ... and {len(keys) - 8} more tensors.") | |
| if __name__ == "__main__": | |
| target = sys.argv[1] if len(sys.argv) > 1 else "PRISM-1.safetensors" | |
| inspect_safetensors(target) | |