Feature Extraction
Diffusers
Safetensors
English
autoencoder
vision-foundation-model
dinov2
dinov3
mae
siglip2
pae
Instructions to use BiliSakura/PAE-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BiliSakura/PAE-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BiliSakura/PAE-diffusers", 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
File size: 1,550 Bytes
2395677 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | ---
license: mit
language:
- en
tags:
- diffusers
- autoencoder
- vision-foundation-model
- dinov2
- dinov3
- mae
- siglip2
- feature-extraction
- pae
library_name: diffusers
pipeline_tag: feature-extraction
---
# PAE Diffusers Checkpoints
Converted PAE (Prior-Aligned Autoencoder) tokenizer checkpoints in standard Hub custom-pipeline layout.
PAE is a **VAE-free** latent framework. Each variant splits into dedicated components:
| Variant | VFM backbone (decoder config) | Latent dim | Input size |
|---------|------------------|------------|------------|
| `pae-dinov2-large-d32` | DINOv2-L (with registers) | 32 | 224 |
| `pae-dinov3-large-d32` | DINOv3-ViT-L/16 | 32 | 256 |
| `pae-mae-large-d32` | MAE-L | 32 | 256 |
| `pae-siglip2-so400m-d32` | SigLIP2-SO400M | 32 | 256 |
Each variant directory is a self-contained Diffusers repo. Each component subfolder ships **one Python file**:
```text
model_index.json
pipeline.py
scheduler/scheduling_flow_match_pae.py
transformers/transformer_lightning_dit.py
decoder/decoder_pae.py
decoder/diffusion_pytorch_model.safetensors
```
## Usage
```python
from pathlib import Path
import torch
from diffusers import DiffusionPipeline
model_dir = Path("/home/czy/local/models/BiliSakura/PAE-diffusers/pae-dinov2-large-d32").resolve()
pipe = DiffusionPipeline.from_pretrained(
str(model_dir),
local_files_only=True,
custom_pipeline=str(model_dir / "pipeline.py"),
trust_remote_code=True,
torch_dtype=torch.bfloat16,
).to("cuda")
print(pipe.get_label_ids("golden retriever"))
```
|