Instructions to use epfl-neuroai/NEvo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use epfl-neuroai/NEvo with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("epfl-neuroai/NEvo", 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
Add MPS-compatible component dtypes
#1
by mzx - opened
Add minimal MPS dtype handling while preserving the existing CUDA, CPU, and default-device behavior.
- Load SDXL-Turbo in float32 by default on MPS.
- Load LTX-Video in bfloat16 by default on MPS.
- Allow the encoder to be cast before device transfer, and use float32 for the pipeline-created encoder on MPS. This converts the released V-JEPA2 checkpoint's float64 buffers before moving them to MPS.
- Continue to honor explicitly supplied generator dtypes.
Local validation:
- Existing test suite: 21 passed.
- End-to-end NevoPipeline run on a 96 GB M3 Ultra with all components automatically loaded and resident together.
- 512x512 SDXL image generation and 25-frame, 8-step LTX-Video generation completed successfully.
- Runtime dtypes: SDXL float32, LTX bfloat16, V-JEPA2 float32.
- Observed MPS driver memory after generation: 52.4 GiB.
Environment: macOS 26.5.1 arm64, PyTorch 2.13.0, Diffusers 0.39.0, Transformers 5.13.0. The integration run used PYTORCH_ENABLE_MPS_FALLBACK=1.