DepthPro2-MXFP8-Blackwell (H+ / L / B + focal)
Pre-quantized Blackwell (sm_120a) MXFP8 Safetensors checkpoints of Apple's Depth Pro 2 (H+, L, B) plus a lossless BF16 focal (FoV estimator) checkpoint, built for zero-PyTorch native inference with mc070309/depthpro2-cuda.
Attribution & License Notice (Apple AMLR — Non-Commercial Research Only)
Apple Machine Learning Research Model is licensed under the Apple Machine Learning Research Model License Agreement.
This repository contains Model Derivatives ofapple/DepthPro2-H,apple/DepthPro2-L,apple/DepthPro2-B, andapple/DepthPro2-focal, distributed strictly for non-commercial Research Purposes under the attachedLICENSE. Apple Inc. does not endorse or sponsor these derivative checkpoints.
Modifications & Quantization Specification
Compared to the upstream FP32 checkpoints:
- DINOv3 ViT Linear Projections (
attn.qkv,attn.proj, fused SwiGLU/GELUmlp.fc1,mlp.fc2): post-training quantized to OCP MXFP8 —F8_E4M3weights ([N, K]) paired with pre-swizzled cuBLASLt128×4U8E8M0 block-32 scale factors (*_scale_swizzled) for zero-overhead DMA loading into Blackwellsm_120aTensor Cores. - Sensitivity-Preserving Layers (
patch_embed,LayerNorm,LayerScale, Reassemble pyramid,DPTDecoder3×3 ResBlocks, andfocalFoV estimator): converted cleanly to BF16. InverseDepthHead(head.0 / 1 / 2 / 4): preserved in exact FP32.- Fidelity:
CosSim = 0.999531vs BF16 onDepthPro2-H+, andCosSim = 1.000000(MaxAbsDiff = 0.00e+00) bit-exact against live MXFP8 quantization.
Checkpoint Sizes
| Subfolder | Base Model | Precision | Upstream FP32 | Pre-Quantized | Reduction |
|---|---|---|---|---|---|
H/ |
apple/DepthPro2-H (872M) |
ViT MXFP8 + Decoder BF16 + Head FP32 | 3,488.5 MB |
932.4 MB |
3.74× |
L/ |
apple/DepthPro2-L (326M) |
ViT MXFP8 + Decoder BF16 + Head FP32 | 1,335.9 MB |
376.2 MB |
3.55× |
B/ |
apple/DepthPro2-B (108M) |
ViT MXFP8 + Decoder BF16 + Head FP32 | 386.1 MB |
111.0 MB |
3.48× |
focal/ |
apple/DepthPro2-focal (23.5M) |
Lossless BF16 | 93.8 MB |
46.9 MB |
2.00× |
| Total | — | Standard .safetensors |
5,304.3 MB |
1466.6 MB |
3.62× |
Performance (RTX 5060 Laptop GPU · 26 SMs · 8 GB GDDR7)
Measured with depthpro2-cuda (Blackwell sm_120a MXFP8 GEMMs + FP8 m16n8k32 s_vt FlashAttention + FP8 Ring FIFO KV Cache):
| Tier | Weights VRAM | VGA (640×480) |
720p (1280×720) |
1080p (1920×1080) |
2.5K (2560×1440) |
Native 4K (3840×2160) |
Ring KV Stream (VGA, w=8) |
|---|---|---|---|---|---|---|---|
B |
150.6 MB |
19.7 ms (50.7 FPS) |
68.1 ms |
181.0 ms |
399.2 ms |
1.44 s |
24.6 ms (40.6 FPS) · 60 MB KV |
L |
403.5 MB |
52.7 ms (19.0 FPS) |
164.0 ms |
471.2 ms |
1.04 s |
3.84 s |
58.8 ms (17.0 FPS) · 160 MB KV |
H+ |
933.9 MB |
72.9 ms (13.7 FPS) |
246.4 ms |
722.2 ms |
1.64 s |
6.11 s |
85.4 ms (11.7 FPS) · 275 MB KV |
Quickstart (depthpro2-cuda)
pip install huggingface_hub
huggingface-cli download Friday937/DepthPro2-MXFP8-Blackwell --local-dir ./DepthPro2-MXFP8
import depthpro2_cuda as dp2
# Instant direct MXFP8 DMA load (1.31s for H+, 7.1x faster than FP32, zero PyTorch!)
eng = dp2.DepthPro2Engine("./DepthPro2-MXFP8/H", fov_dir="./DepthPro2-MXFP8/focal", use_mxfp8=True)
res = eng.infer_image("photo.jpg")
dp2.colorize_inverse_depth(res.inverse_depth).save("depth.png")
dp2.save_point_cloud_ply("photo.jpg", res.depth, res.f_px, "scene_3d.ply")
To reproduce these checkpoints yourself from upstream Apple weights:
import depthpro2_cuda as dp2
dp2.export_mxfp8("./DepthPro2/H", "./DepthPro2-MXFP8/H")
Model tree for Friday937/DepthPro2-MXFP8-Blackwell
Base model
apple/DepthPro2-B