MLX-native implementation of
TripoSplat for Apple Silicon.
Part of
TripoFlux MLX — a full MLX / CoreML accelerated text-to-3D pipeline
(
FLUX.2-klein-9B → BiRefNet → TripoSplat → .ply / .splat / .spz) with an R3F web UI
featuring a
Looking Glass holographic WebXR preview.
The MLX port code in
mlx_models/ is released under the
MIT License, same as the main project:
https://github.com/Jup33Q/tripoflux-mlx.
1from mlx_models.dinov3_mlx import DinoV3ViT
2from mlx_models.flux2vae_mlx import Flux2VAEEncoder
3from mlx_models.flow_mlx import LatentSeqMMFlowModel
4
5# Load models
6dino = DinoV3ViT()
7dino.load_safetensors("dino_v3_vit_h.safetensors")
8
9vae = Flux2VAEEncoder()
10vae.load_safetensors("flux2-vae.safetensors")
11
12flow = LatentSeqMMFlowModel(
13 q_token_length=8192, in_channels=16, cam_channels=5, out_channels=16,
14 model_channels=1024, cond_channels=1280, cond2_channels=128,
15 num_refiner_blocks=2, num_blocks=24, num_heads=16, mlp_ratio=4,
16 qk_rms_norm=True, share_mod=True, use_shift_table=True,
17)
18flow.load_safetensors("triposplat_fp16.safetensors")
For the complete text-to-3D pipeline (FLUX.2-klein-9B → BiRefNet → TripoSplat → SPZ export), see the main project:
https://github.com/Jup33Q/tripoflux-mlx