Alethic Labs
Research note · Depth Pro 2 · Apple Silicon

How shallow can Depth Pro 2 go?

Apple's Depth Pro 2 predicts metric depth that is sharp at edges and steady across video frames. This note measures how far it can be compressed and sped up on a Mac (PyTorch, Core ML on CPU, GPU and Neural Engine, and MLX) before it loses accuracy, edges, focal length or stability. The noise floor comes first.

0 Noise floor · done1 Backends · running2 MLX · running3 Compression · running4 Video · running

TL;DR so far

  1. There is no run-to-run noise. Every repeat in a new process was bitwise identical (24 checks across PyTorch CPU, MPS and Core ML). The same weights on CPU and GPU at FP32 differ by at most 1.4e-6 in inverse depth. So any larger difference below is real.
  2. Apple's own full-precision paths already differ by up to 0.64%. bf16 on the GPU, Core ML FP16 on the GPU and on the Neural Engine each move depth a little from FP32. That spread is the bar a compressed model has to meet to count as lossless.
  3. Core ML on the CPU alone loses accuracy, up to 2.2%. The same FP16 package stays within 0.13% on the GPU. Exported with FP32 compute, the model matches the reference on CPU too, so the cause is FP16 arithmetic in Core ML's CPU path.
  4. Our Core ML exports are bitwise identical to Apple's released packages (3 sizes), so the Core ML results here apply to Apple's own files.

The compression, backend and video results are still running; this list grows as each phase finishes.

1The model

Depth Pro 2 (Apple ML Research, November 2026) is a DINOv3 vision transformer encoder, a DPT decoder and a separate focal-length estimator, run at the input's native resolution. For video, some encoder blocks attend across frames, so each frame's depth can draw on its neighbours. Four sizes: S (24M parameters), B (97M), L (334M) and H+ (872M), sharing a 23.5M focal estimator. Apple's CDN checkpoints and its Hugging Face files are tensor-for-tensor identical for every size.

2The noise floor

Before ranking anything, the same weights went through every path that should agree, on the same 50 iBims-1 (indoor) and 50 KITTI (outdoor) images, compared with PyTorch on the CPU at FP32. Differences smaller than these are not differences.

Every full-precision path against the CPU FP32 reference. Inverse-depth AbsRel per path, size and dataset, log scale. Repeats are left out because they were bitwise identical.
Show the data as a table (88 rows)
SizeDataPairComparisonBitwiseAbsRel_invδ<1.01Edge F1Δ δ1 (GT f)
Sibimsatorch CPU FP32 vs torch MPS FP320.009.8e-71.00001.0000-4.2e-7
Sibimsbtorch CPU FP32 vs torch MPS bf16 autocast0.000.0034930.97090.9795-0.0031
Sibimsb2torch CPU FP32 vs torch MPS fp16 autocast0.000.0005601.00000.9973-6.2e-5
Sibimsctorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Sibimsc2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Sibimsd2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Sibimsd_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0015050.99590.99240.0001
Sibimsd_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0015700.99610.99227.3e-5
Sibimsd_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0060480.80090.9716-0.0061
Sibimsd_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0008050.99910.99550.0002
Sibimsetorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0035700.95970.97870.0034
Bibimsatorch CPU FP32 vs torch MPS FP320.009.1e-71.00001.0000-8.6e-7
Bibimsbtorch CPU FP32 vs torch MPS bf16 autocast0.000.0018490.99120.9805-5.6e-5
Bibimsb2torch CPU FP32 vs torch MPS fp16 autocast0.000.0002970.99930.9977-0.0001
Bibimsctorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Bibimsc2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Bibimsd2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Bibimsd_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0009720.99690.99390.0004
Bibimsd_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0009940.99830.99410.0006
Bibimsd_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0060900.78120.9697-0.0022
Bibimsd_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0004261.00000.9966-0.0002
Bibimsetorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0019470.99140.9801-0.0001
Libimsatorch CPU FP32 vs torch MPS FP320.000.0000011.00001.0000-1.3e-6
Libimsbtorch CPU FP32 vs torch MPS bf16 autocast0.000.0025730.99360.9883-0.0013
Libimsb2torch CPU FP32 vs torch MPS fp16 autocast0.000.0001830.99940.99839.0e-5
Libimsctorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Libimsc2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Libimsd2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Libimsd_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0040320.99780.9939-0.0036
Libimsd_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0040990.99760.9939-0.0039
Libimsd_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0041450.91730.9754-0.0033
Libimsd_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0004330.99950.9970-0.0003
Libimsetorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0025690.99500.98770.0011
Hibimsatorch CPU FP32 vs torch MPS FP320.004.8e-71.00001.00002.0e-7
Hibimsbtorch CPU FP32 vs torch MPS bf16 autocast0.000.0011290.99830.98851.3e-5
Hibimsb2torch CPU FP32 vs torch MPS fp16 autocast0.000.0001661.00000.9984-2.2e-5
Hibimsctorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Hibimsc2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Hibimsd2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Hibimsd_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0013580.99780.99190.0002
Hibimsd_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0013740.99760.99190.0002
Hibimsd_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0040080.93660.9749-0.0027
Hibimsd_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0004280.99990.99726.7e-5
Hibimsetorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0012280.99850.98815.4e-5
Skittiatorch CPU FP32 vs torch MPS FP320.000.0000011.00001.00000.0000
Skittibtorch CPU FP32 vs torch MPS bf16 autocast0.000.0055270.80230.9696-0.0017
Skittib2torch CPU FP32 vs torch MPS fp16 autocast0.000.0006660.99800.99610.0001
Skittictorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Skittic2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Skittid2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Skittid_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0028900.97050.9762-0.0007
Skittid_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0028900.97050.9762-0.0007
Skittid_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0224590.14880.9283-0.0086
Skittid_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0009020.99630.9939-0.0002
Skittietorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0056780.79350.96960.0015
Bkittiatorch CPU FP32 vs torch MPS FP320.007.9e-71.00001.0000-3.9e-7
Bkittibtorch CPU FP32 vs torch MPS bf16 autocast0.000.0024430.94280.97260.0002
Bkittib2torch CPU FP32 vs torch MPS fp16 autocast0.000.0003000.99870.99663.3e-5
Bkittictorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Bkittic2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Bkittid2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Bkittid_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0017190.98690.9692-0.0006
Bkittid_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0016930.98790.9692-0.0005
Bkittid_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0168320.25840.9203-0.0114
Bkittid_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0004970.99800.9941-4.7e-5
Bkittietorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0024560.94180.9719-0.0002
Lkittiatorch CPU FP32 vs torch MPS FP320.008.3e-71.00001.00002.8e-7
Lkittibtorch CPU FP32 vs torch MPS bf16 autocast0.000.0033180.94180.97160.0006
Lkittib2torch CPU FP32 vs torch MPS fp16 autocast0.000.0002550.99730.9962-1.1e-5
Lkittictorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Lkittic2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Lkittid2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Lkittid_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0045690.75530.9322-0.0023
Lkittid_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0045210.75830.9325-0.0022
Lkittid_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0196040.14160.8844-0.0100
Lkittid_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0013170.99440.99170.0002
Lkittietorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0025340.95570.9705-0.0004
Hkittiatorch CPU FP32 vs torch MPS FP320.005.1e-71.00001.00000.0000
Hkittibtorch CPU FP32 vs torch MPS bf16 autocast0.000.0013600.97990.97740.0001
Hkittib2torch CPU FP32 vs torch MPS fp16 autocast0.000.0001760.99880.99714.2e-6
Hkittictorch CPU FP32 repeat (new process)1.000.0000001.00001.00000.0000
Hkittic2torch MPS bf16 repeat (new process)1.000.0000001.00001.00000.0000
Hkittid2Core ML CPU_AND_GPU repeat (new process)1.000.0000001.00001.00000.0000
Hkittid_alltorch CPU FP32 vs Core ML FP16 ALL0.000.0015310.96750.9561-4.0e-5
Hkittid_anetorch CPU FP32 vs Core ML FP16 CPU_AND_NE0.000.0024700.96290.9562-3.7e-5
Hkittid_cputorch CPU FP32 vs Core ML FP16 CPU_ONLY0.000.0208090.06240.9171-0.0021
Hkittid_gputorch CPU FP32 vs Core ML FP16 CPU_AND_GPU0.000.0005120.99790.99403.1e-5
Hkittietorch MPS bf16 vs Core ML FP16 CPU_AND_GPU (two deployment paths)0.000.0013420.97950.9768-7.5e-5

Why Core ML on the CPU drifts. Exported with FP32 compute, the same model matches the reference on the CPU (B kitti 5.6e-7, S ibims 9.0e-7, S kitti 7.3e-7), while Apple's FP16 package on the CPU does not (B kitti 1.37%, S ibims 0.60%, S kitti 2.33%). Core ML's GPU path keeps more precision for the same FP16 program. Anywhere Core ML falls back to the CPU, outdoor depth moves by 1 to 2%.

3Backends at full precision

Accuracy against ground truth, latency and peak memory for every size on PyTorch, Core ML (each compute unit) and MLX. Running.

4How far compression goes

Compression against fidelity. Each point is one recipe on iBims-1: Core ML palettization or linear quantization, MLX affine quantization. The shaded band is the spread between Apple's own full-precision paths; inside it, a compressed model is as faithful as an uncompressed one.

5Which parts are sensitive

One component at a time compressed hard (within-frame encoder blocks, cross-frame blocks, decoder, head, focal estimator) with the rest at full precision. Running.

6Video stability

Jitter along ground-truth motion on Sintel and flicker on real public clips, for every video mode and the best compressed variants. Running.

7What to use

The practical answer (which size, backend and precision for which use) comes last, from the measured frontier.

8Limitations

9Reproduce it

git clone https://github.com/shubhambaid/shallow-end && cd shallow-end
uv sync --frozen --extra mac            # Apple Silicon Mac
python scripts/download_models.py       # pinned weights, sha256 recorded
python -I scripts/download_data.py kitti_val_selection ibims1 sintel_depth sintel_complete
python -m shallowend.datasets && python -m shallowend.floor S --dataset ibims

Every number on this page is read from results/ at build time (commit 008052f, 2026-11-30). Summary tables are in results/summary.