DINOv3 ConvNeXt (fastforks)
DINOv3 ConvNeXt T/S/B/L (Meta, 2025), distilled from the DINOv3 ViT-7B: stride-32 grid features + pooled token (Hugging Face format checkpoints). Gated weights: accept the DINOv3 licence on each model's Hugging Face page, download model.safetensors yourself and put it under FASTFORKS_WEIGHTS_PATH (path and SHA-256 in the load error); fastforks does not send HF_TOKEN there.
This repo is the model card only: it holds no weights. fastforks downloads the authors' weights from the links below and checks them against the SHA-256 in the model card. Code: https://github.com/kleinicke/fastforks. Kernels for the kernels backend: https://huggingface.co/fastforks/kernels. Original code: https://github.com/huggingface/transformers at v5.19.0.
Author weight repos: https://huggingface.co/facebook/dinov3-convnext-base-pretrain-lvd1689m, https://huggingface.co/facebook/dinov3-convnext-large-pretrain-lvd1689m, https://huggingface.co/facebook/dinov3-convnext-small-pretrain-lvd1689m, https://huggingface.co/facebook/dinov3-convnext-tiny-pretrain-lvd1689m.
Task: features. Tier: stable. Outputs: last_hidden_state, pooler_output. Backends: portable, kernels.
Input: one RGB image. Output: dense patch features and a pooled image feature.
Variants
Weights are the authors' files (not hosted here). SHA-256 shortened to 12 hex digits; the full hashes are in card.toml.
| variant | weights (author link) | SHA-256 | weights licence | commercial use |
|---|---|---|---|---|
dinov3-convnext-base@1 |
dinov3-convnext-base-pretrain-lvd1689m/model.safetensors | ec90bd798b5f |
LicenseRef-DINOv3-License | yes |
dinov3-convnext-large@1 |
dinov3-convnext-large-pretrain-lvd1689m/model.safetensors | 8bab82eaa133 |
LicenseRef-DINOv3-License | yes |
dinov3-convnext-small@1 |
dinov3-convnext-small-pretrain-lvd1689m/model.safetensors | 8182492b7334 |
LicenseRef-DINOv3-License | yes |
dinov3-convnext-tiny@1 |
dinov3-convnext-tiny-pretrain-lvd1689m/model.safetensors | bd30a9459d61 |
LicenseRef-DINOv3-License | yes |
Licence
Original-code strings, recorded as they are (research-use package; check them before any other use). Code: LicenseRef-DINOv3-License. Licence files: LICENSE.md.
Training data: distilled from the DINOv3 ViT-7B teacher on LVD-1689M (1.689B images curated from public Instagram images), self-supervised, per the paper; not released.
- Licence note: Code and weights use the DINOv3 License (Meta: attribution and conditions apply); read it before commercial use.
Licence evidence: https://huggingface.co/facebook/dinov3-convnext-tiny-pretrain-lvd1689m/blob/10d30274b4d445111e2d5bf75ac93bbd94db274b/LICENSE.md (DINOv3 License; gated: accept on Hugging Face to download)
Input size
any H x W >= 1, resized or padded inside the model
Tested up to (portable, fp16, RTX 5060 Ti 16 GB): dinov3-convnext-base 3000x4000 (2.5 GiB peak allocated, 3.5 reserved); dinov3-convnext-large 3000x4000 (3.7 GiB peak allocated, 5.1 reserved); dinov3-convnext-small 3000x4000 (1.9 GiB peak allocated, 2.6 reserved); dinov3-convnext-tiny 3000x4000 (1.9 GiB peak allocated, 2.6 reserved)
Speed and memory
Features, synthetic, 224x224
| model | time (ms): original fp32 | original | portable | kernels | kernels speed-up: vs original | vs portable | peak memory (MiB, allocated / reserved): original | portable | kernels |
|---|---|---|---|---|---|---|---|---|---|
dinov3-convnext-base |
7.38 | 8.24 | 5.71 | 2.19 | 3.4x | 2.6x | 535 / 552 | 208 / 232 | 174 / 214 |
dinov3-convnext-large |
10.5 | 9.59 | 5.45 | 3.61 | 2.7x | 1.5x | 1163 / 1252 | 419 / 430 | 409 / 452 |
dinov3-convnext-small |
5.97 | 8.09 | 5.42 | 1.98 | 3.0x | 2.7x | 328 / 348 | 134 / 150 | 100 / 132 |
dinov3-convnext-tiny |
2.96 | 4.47 | 3.04 | 1.22 | 2.4x | 2.5x | 198 / 206 | 93 / 108 | 59 / 110 |
Startup and first call
| model | load (s): original | portable | kernels | first call (s): original | portable | kernels |
|---|---|---|---|---|---|---|
dinov3-convnext-base |
0.42 | 0.43 | 0.19 | 0.01 | 0.27 | 0.10 |
dinov3-convnext-large |
1.64 | 0.85 | 0.38 | 0.02 | 0.24 | 0.20 |
dinov3-convnext-small |
0.27 | 0.25 | 0.11 | 0.01 | 0.33 | 0.07 |
dinov3-convnext-tiny |
0.43 | 0.48 | 0.08 | 1.03 | 0.42 | 0.12 |
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) |
|---|---|---|---|---|---|---|---|---|---|---|---|
dinov3-convnext-base |
224x224 | 5.71 ms | 3.41 ms | 1.45 ms | 2.19 ms | 11.4 s | 29.6 s | 208 / 232 | 241 / 252 | 174 / 214 | 400 / 430 |
dinov3-convnext-large |
224x224 | 5.45 ms | 4.30 ms | 2.50 ms | 3.61 ms | 11.3 s | 30.0 s | 419 / 430 | 459 / 470 | 409 / 452 | 804 / 824 |
dinov3-convnext-small |
224x224 | 5.42 ms | 3.41 ms | 1.17 ms | 1.98 ms | 10.6 s | 25.9 s | 134 / 150 | 165 / 188 | 100 / 132 | 232 / 252 |
dinov3-convnext-tiny |
224x224 | 3.04 ms | 1.96 ms | 0.681 ms | 1.22 ms | 7.76 s | 22.8 s | 93 / 108 | 123 / 148 | 59 / 110 | 126 / 158 |
Fixed-size speed and peak memory, all models
| model | mode | 480x640 | 720x1280 | 1080x1920 | 12 MP 3000x4000 |
|---|---|---|---|---|---|
dinov3-convnext-base |
portable | 8.3 ms / 253 / 290 | 22.8 ms / 357 / 410 | 55.2 ms / 565 / 650 | 323.2 ms / 2310 / 2670 |
dinov3-convnext-base |
kernels | 6.5 ms / 279 / 360 | 15.1 ms / 372 / 572 | 33.5 ms / 502 / 548 | 190.9 ms / 1914 / 2048 |
dinov3-convnext-large |
portable | 14.8 ms / 484 / 510 | 42.5 ms / 633 / 766 | 99.9 ms / 932 / 1048 | 587.2 ms / 3435 / 4008 |
dinov3-convnext-large |
kernels | 11.0 ms / 505 / 642 | 26.7 ms / 635 / 950 | 61.0 ms / 837 / 926 | 357.8 ms / 2887 / 2946 |
dinov3-convnext-small |
portable | 5.9 ms / 169 / 188 | 15.6 ms / 250 / 266 | 37.9 ms / 413 / 486 | 220.9 ms / 1778 / 2106 |
dinov3-convnext-small |
kernels | 4.5 ms / 197 / 276 | 10.6 ms / 272 / 410 | 23.3 ms / 366 / 406 | 133.7 ms / 1474 / 1526 |
dinov3-convnext-tiny |
portable | 3.6 ms / 127 / 148 | 9.8 ms / 209 / 226 | 23.9 ms / 372 / 446 | 136.6 ms / 1737 / 2066 |
dinov3-convnext-tiny |
kernels | 2.7 ms / 156 / 236 | 6.5 ms / 231 / 368 | 14.6 ms / 324 / 366 | 82.1 ms / 1433 / 1484 |
Fixed-size cells: time (ms) / peak allocated / peak reserved memory (MiB).
Hardware, protocol and caveats: benchmarks (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.
Accuracy
On public datasets
Two disjoint seeded subsets of the val folders; each image shorter side 256 (bicubic), centre crop 224, the CLS / pooled feature; cosine kNN, vote weighted by similarity. Original = the original code named under Details, same checkpoint and protocol.
| variant | dataset | original fp32 | original fp16 | portable | kernels | note |
|---|---|---|---|---|---|---|
dinov3-convnext-tiny |
ImageNet-1k val, kNN top-1 % (k = 20, 10000 labelled / 5000 test images) | 62.50 | 62.50 | 62.50 | 62.44 | |
dinov3-convnext-small |
ImageNet-1k val, kNN top-1 % (k = 20, 10000 labelled / 5000 test images) | 67.14 | 67.16 | 67.14 | 67.16 | |
dinov3-convnext-base |
ImageNet-1k val, kNN top-1 % (k = 20, 10000 labelled / 5000 test images) | 69.84 | 69.88 | 69.84 | 69.88 | |
dinov3-convnext-large |
ImageNet-1k val, kNN top-1 % (k = 20, 10000 labelled / 5000 test images) | 73.30 | 73.32 | 73.30 | 73.28 |
Measured on NVIDIA GeForce RTX 5060 Ti, torch 2.14.1+cu130, fastforks 939adfe8, 2026-11-06.
Parity with the original code
Every variant is checked against reference outputs of the original code at its pinned commit. CPU, float32: max |diff| <= 0.0001 vs the original. GPU, float16 (the default), portable and kernels: mean |diff| <= 1 % and p99 <= 4 % of the reference's median |value| (absolute error of the output last_hidden_state).
Usage
from fastforks import features
model = features.load("dinov3-convnext-base") # mode="auto": the preferred backend from recorded measurements
result = model("photo.jpg", size=518)
result.last_hidden_state # tokens [N, C], as Hugging Face's output
result.backend # what ran, e.g. Backend(mode='portable', device='cuda:0', dtype='float16')
Install with pip install fastforks (see https://github.com/kleinicke/fastforks). Other variants: dinov3-convnext-base, dinov3-convnext-large, dinov3-convnext-small, dinov3-convnext-tiny.
Kernels backend
features.load("dinov3-convnext-base", mode="kernels") runs our CUDA kernels (fvm_conv, fvm_seg). 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.
Model tree for fastforks/dinov3-convnext
Base model
facebook/dinov3-vit7b16-pretrain-lvd1689m