Depth Anything V2 Small for Furiosa RNGD
This model takes one 518×518 RGB image that is already normalised (x, [1,3,518,518], BF16). It returns a relative depth map, predicted_depth [1,518,518].
Attention, convolutions and bilinear resizes run as BF16 matrix multiplies on the NPU. There are no CPU fallbacks.
Run
Use an SDK Python environment with Furiosa Torch/TCC 2026.4.0 and PyTorch 2.10.0+cpu.
This repository does not contain the weights, the same way furiosa-llm .fxb packages work. The execution plan inside depth-anything-v2-small-bf16.fxbx binds each weight to its tensor name in the original checkpoint. It also records that checkpoint's location: depth-anything/Depth-Anything-V2-Small-hf@5426e4f0, model.safetensors, SHA-256 3152477c….
When the package loads, fxbx:
- Downloads that file into the normal Hugging Face cache.
- Checks its SHA-256.
- Casts each FP32 tensor to the plan's BF16 while uploading it to the NPU.
Nothing is renamed or rewritten on disk. This needs fxbx 0.9.3 or later (pip install --upgrade "fxbx[weights]").
fxbx run depth-anything/Depth-Anything-V2-Small-hf --sample -o result.safetensors
Or run from a download of this repository:
hf download softandsweet/depth-anything-depth-anything-v2-small-hf-rngd-fxbx --local-dir .
python -m zipfile -e depth-anything-v2-small-bf16.fxbx.merged.zip depth-anything-v2-small-bf16.fxbx.merged
python run.py
run.py compares the output with the CPU PyTorch reference, expected-0000-000.safetensors. The pass criterion is relative L2 error ≤ 1e-2; this package measures 0.0043.
Speed (one image, one RNGD)
| Execution | Time per request | NPU launches |
|---|---|---|
| Earlier per-step package (FP32 vector-unit path) | 55.9 s | 246,669 |
| This package, per-step | 63 ms | 1,404 |
This package plus the merged file (.fxbx.merged) | 32 ms | 268 |
- Accuracy: relative L2 error 0.0041–0.0043 against the CPU reference, at every stage.
- Runnables come from
depth-anything-v2-small-bf16.fxbx.merged.zip.- The zip holds 108 merged groups plus 26 single steps.
- The merge width for each block was chosen by measuring on the NPU.
- No group overwrites its inputs; this was checked on the NPU (0 cases).
- fxbX 0.9.2 and later use the merged file. It is used only when the plan hash, Furiosa Torch version, TCC version and dataflow all match. Otherwise fxbX falls back to per-step execution.
- The public fxbx 0.9.2
fxbx run ... --samplepassed on an RNGD server (rel_l2 0.0043).
Source
The original checkpoint is depth-anything/Depth-Anything-V2-Small-hf, licensed Apache-2.0.