Update model card for 0.4.0
Browse files48 unmodified lines49505152525354555657585859606162626364646566675 unmodified lines73747576777876777879808081828317 unmodified lines10110210310410448 unmodified lines
| model | input | time (ms): original fp32 | original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `convnextv2_base.fcmae_ft_in22k_in1k` | 224x224 | 10.7 | 14.6 | 10.2 | 2.94 | 3.7x | 3.5x | 542 / 566 | 299 / 376 | 318 / 380 || `convnextv2_base.fcmae_ft_in22k_in1k` | 224x224 | 10.7 | 14.6 | 10.2 | 2.96 | 3.6x | 3.4x | 542 / 566 | 220 / 234 | 206 / 238 |
### Startup and first call
| model | load (s): original | portable | kernels | first call (s): original | portable | kernels || --- | --- | --- | --- | --- | --- | --- || `convnextv2_base.fcmae_ft_in22k_in1k` | 2.70 | 1.23 | 2.12 | 0.63 | 0.03 | 0.16 || `convnextv2_base.fcmae_ft_in22k_in1k` | 2.70 | 2.09 | 2.12 | 0.63 | 0.33 | 0.16 |
### torch.compile and TensorRT
| 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) || model | input | time: portable | compile | TensorRT (fp16 unless shown) | kernels | preparation: compile (cold first call) | ONNX + engine build | peak MiB (alloc / reserved): portable | compile | kernels | TensorRT (engine + torch) || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- || `convnextv2_base.fcmae_ft_in22k_in1k` | 224x224 | 10.2 ms | 3.85 ms | 2.13 ms | 2.94 ms | 14.4 s | 35.1 s | 299 / 376 | 324 / 356 | 318 / 380 | 486 / 518 || `convnextv2_base.fcmae_ft_in22k_in1k` | 224x224 | 10.2 ms | 3.85 ms | 2.13 ms | 2.96 ms | 14.4 s | 35.1 s | 220 / 234 | 324 / 356 | 206 / 238 | 486 / 518 |
Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
5 unmodified lines
fastforks: the model's own resize / crop on the GPU; original: the library's pretrained loader and its PIL eval transform. Original = the original code named under Details, same checkpoint and protocol.
| variant | dataset | original fp32 | original fp16 | portable | kernels | note ||---|---|---|---|---|---|---|| `convnextv2_base.fcmae_ft_in22k_in1k` | ImageNet-1k val, 5000 random images, top-1 / top-5 % | 87.32 / 98.18 | 87.32 / 98.18 | 87.10 / 98.14 | 87.10 / 98.14 | || variant | dataset | original fp32 | original fp16 | portable | portable fp32 | kernels | note ||---|---|---|---|---|---|---|---|| `convnextv2_base.fcmae_ft_in22k_in1k` | ImageNet-1k val, 5000 random images, top-1 / top-5 % | 87.32 / 98.18 | 87.32 / 98.18 | 87.10 / 98.14 | 87.10 / 98.14 | 87.10 / 98.14 | |
Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 939adfe8, 2026-11-06.Measured on portable: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 939adfe8, 2026-11-06; portable32: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 7c91993, 2026-10-31; kernels: NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 939adfe8, 2026-11-06.
### Parity with the original code
17 unmodified lines
`classification.load("convnextv2_base.fcmae_ft_in22k_in1k", mode="kernels")` runs our CUDA kernels (`cudnn_hacc`, `fvm_conv`, `fvm_extra`, `fvm_mb`, `fvm_r3`). 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.
<!-- staged from fastforks 1cbf1671 (2026-11-15) --><!-- staged from fastforks 0d8c365f7 (2026-12-02) -->README.md+9-9