Flor commited on
Commit
5d8d41e
·
verified ·
1 Parent(s): 3c1284d

card: update from fastforks 24802779

Browse files
Files changed (1) hide show
  1. README.md +8 -13
README.md CHANGED
@@ -64,9 +64,10 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `foundationstereo-vit-l` 1988x
64
 
65
  ### torch.compile and TensorRT
66
 
67
- | model | input | portable ms | compile ms | compile s (cold) | TensorRT fp16 ms | ONNX + build s | kernels ms | peak MiB (alloc / reserved): portable | compile | TensorRT (device) |
68
- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
69
- | `foundationstereo-vit-s` | 994x1482 | 2514 | 2044.1 | 211.9 | 1195.8 | 545 | 1120 | 2493 / 2606 | 2822 / 3646 | 2570 |
 
70
 
71
  ### Fixed-size speed and peak memory, all models
72
 
@@ -77,21 +78,15 @@ Tested up to (portable, fp16, RTX 5060 Ti 16 GB): `foundationstereo-vit-l` 1988x
77
  | `foundationstereo-vit-s` | portable | 481.4 ms / 1042 / 1352 | 1508.2 ms / 2047 / 2678 | 3424.1 ms (n=3) / 2900 / 4592 | OOM |
78
  | `foundationstereo-vit-s` | kernels | 245.6 ms / 685 / 862 | 687.1 ms / 1604 / 2008 | 1499.8 ms / 2585 / 3440 | 8960.9 ms (n=3) / 12058 / 13800 |
79
 
80
- ### Apple silicon (MPS)
81
-
82
- | model | `portable` | `kernels` | speed-up |
83
- | --- | --- | --- | --- |
84
- | `foundationstereo-vit-s` | 7825 ms / 4304 MiB (float16) | 7383 ms / 4284 MiB | 1.06x |
85
-
86
  Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
87
 
88
- Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the authors' code at the precision of portable (fp16, or `(fp32)` where fp16 is unsupported or not finite); original fp32 = its default fp32 run. Peak memory is the torch allocator's.
89
 
90
  ## Accuracy
91
 
92
  ### On public datasets
93
 
94
- Original = the authors' code, same checkpoint and protocol.
95
 
96
  | variant | dataset | original fp32 | original fp16 | portable | kernels | note |
97
  |---|---|---|---|---|---|---|
@@ -100,7 +95,7 @@ Original = the authors' code, same checkpoint and protocol.
100
  | `foundationstereo-vit-s` | ETH3D two-view train, bad > 1 px % / EPE | 1.10 / 0.202 | 1.10 / 0.202 | 1.10 / 0.202 | 1.10 / 0.202 | possibly in the training data |
101
  | `foundationstereo-vit-s` | Middlebury 2014 trainingH, bad > 2 px % / EPE | 3.32 / 0.679 | 3.32 / 0.681 | 3.32 / 0.680 | 3.30 / 0.680 | possibly in the training data |
102
 
103
- Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, 2026-11-05.
104
 
105
  ### Parity with the original code
106
 
@@ -128,4 +123,4 @@ Install with `pip install fastforks` (see <https://github.com/kleinicke/fastfork
128
 
129
  `stereo.load("foundationstereo-vit-l", mode="kernels")` runs our CUDA kernels (`fs`, `fs_cutlass`, `cudnn_hacc`, `fastbb`). It needs a prebuilt kernel for your GPU architecture (downloaded from <https://huggingface.co/fastforks/kernels> on first use) and a recent NVIDIA driver; if there is none it raises `BackendUnavailableError` with the reason and never falls back silently. `mode="auto"` picks `kernels` when it can run and logs the choice.
130
 
131
- <!-- staged from fastforks feccac41 (2026-11-06) -->
 
64
 
65
  ### torch.compile and TensorRT
66
 
67
+ | model | input | time: portable | compile | TensorRT fp16 | kernels | preparation: compile (cold first call) | ONNX + engine build | peak MiB (alloc / reserved): portable | compile | kernels | TensorRT (engine + torch) |
68
+ | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
69
+ | `foundationstereo-vit-l` | 994x1482 | 2990 ms | deferred (build >5 min) | deferred (build >5 min) | 1513 ms | – | – | 3141 / 3436 | – | 2818 / 3300 | – |
70
+ | `foundationstereo-vit-s` | 994x1482 | 2514 ms | 2044 ms | 1196 ms | 1120 ms | 212 s | 545 s | 2493 / 2606 | 2822 / 3646 | 2169 / 2470 | 2794 / 2872 |
71
 
72
  ### Fixed-size speed and peak memory, all models
73
 
 
78
  | `foundationstereo-vit-s` | portable | 481.4 ms / 1042 / 1352 | 1508.2 ms / 2047 / 2678 | 3424.1 ms (n=3) / 2900 / 4592 | OOM |
79
  | `foundationstereo-vit-s` | kernels | 245.6 ms / 685 / 862 | 687.1 ms / 1604 / 2008 | 1499.8 ms / 2585 / 3440 | 8960.9 ms (n=3) / 12058 / 13800 |
80
 
 
 
 
 
 
 
81
  Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
82
 
83
+ Hardware, protocol and caveats: [benchmarks](https://github.com/kleinicke/fastforks/blob/main/docs/benchmarks.md) (RTX 5060 Ti 16 GB, sm_120). Original = the original code named above at the precision of portable (fp16, or `(fp32)` where fp16 is unsupported or not finite); original fp32 = its default fp32 run. Peak memory is the torch allocator's.
84
 
85
  ## Accuracy
86
 
87
  ### On public datasets
88
 
89
+ Original = the original code named under Details, same checkpoint and protocol.
90
 
91
  | variant | dataset | original fp32 | original fp16 | portable | kernels | note |
92
  |---|---|---|---|---|---|---|
 
95
  | `foundationstereo-vit-s` | ETH3D two-view train, bad > 1 px % / EPE | 1.10 / 0.202 | 1.10 / 0.202 | 1.10 / 0.202 | 1.10 / 0.202 | possibly in the training data |
96
  | `foundationstereo-vit-s` | Middlebury 2014 trainingH, bad > 2 px % / EPE | 3.32 / 0.679 | 3.32 / 0.681 | 3.32 / 0.680 | 3.30 / 0.680 | possibly in the training data |
97
 
98
+ Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 468fba10, 2026-11-05.
99
 
100
  ### Parity with the original code
101
 
 
123
 
124
  `stereo.load("foundationstereo-vit-l", mode="kernels")` runs our CUDA kernels (`fs`, `fs_cutlass`, `cudnn_hacc`, `fastbb`). It needs a prebuilt kernel for your GPU architecture (downloaded from <https://huggingface.co/fastforks/kernels> on first use) and a recent NVIDIA driver; if there is none it raises `BackendUnavailableError` with the reason and never falls back silently. `mode="auto"` picks `kernels` when it can run and logs the choice.
125
 
126
+ <!-- staged from fastforks 24802779 (2026-11-15) -->