Classification models
26 classification models. Each section says what the model is, whether it may be used commercially and how fast it is; licences and checks are under Details.
Input: one RGB image. Output: ImageNet-1k class logits.
Measured on RTX 5060 Ti, torch 2.14.1+cu130; fastforks bench MODEL --size HxW measures yours. The summary uses one input, 224x224: kernels time with its speed-up over the faster original run, and kernels peak reserved memory with its ratio to the smaller original one. Where measured (one variant per family), a variant's table also lists portable under torch.compile and the fp16 TensorRT engine of portable (export; memory: the engine's device memory). – = not measured.
Other devices: Apple M1 Pro 16 GB, NVIDIA L4, NVIDIA L40S, NVIDIA A10, NVIDIA A100-SXM4-40GB, NVIDIA RTX PRO 6000; across devices.
| model | commercial | kernels time (ms), speed-up vs original | kernels peak memory (MiB, reserved), ratio to original |
|---|---|---|---|
alexnet | yes | 0.604, 1.9x | 228, 0.8x |
convnextv2_base | no | 2.936, 3.7x | 380, 0.91x |
deit_base_patch16_224 | yes | 1.64, 3.3x | 370, 0.96x |
densenet121 | yes | 1.279, 8.4x | 132, 1.4x |
dinov2_vitl14_lc | yes | 4.929, 2.2x | 950, 0.78x |
efficientnet_b0 | yes | 0.769, 7.3x | 118, 1.5x |
efficientnet_b4 | yes | 1.999, 5.5x | 180, 1.0x |
efficientnet_v2_s | yes | 1.893, 6.4x | 188, 1.2x |
efficientvit_b2 | yes | 1.105, 9.7x | 212, 1.3x |
eva02_large_patch14_448 | yes | 14.06, 2.3x | 1386, 1.1x |
fastvit_sa24 | yes | 1.393, 8.6x | 190, 1.3x |
inception_v3 | yes | 1.3, 6.1x | 228, 1.3x |
mobilenet_v2 | yes | 0.439, 8.2x | 92, 1.3x |
mobilenet_v3_large | yes | 0.545, 7.9x | 114, 1.5x |
mobilenetv1_100 | yes | 0.37, 5.9x | 114, 1.6x |
mobilenetv4_conv_medium | yes | 0.641, 9.0x | 124, 1.3x |
regnety_160 | yes | 1.865, 6.5x | 316, 0.76x |
resnet152 | yes | 1.831, 7.0x | 266, 0.92x |
resnet18 | yes | 0.459, 4.2x | 150, 1.2x |
resnet50 | yes | 0.826, 5.7x | 162, 1.0x |
shufflenet_v2_x1_0 | yes | 0.787, 6.1x | 116, 2.4x |
squeezenet1_1 | yes | 0.359, 4.8x | 12, 0.43x |
swin_base_patch4_window7_224 | yes | 2.149, 7.0x | 300, 0.72x |
vgg16 | yes | 1.5, 2.4x | 388, 0.62x |
vit_base_patch16_224 | yes | 1.647, 3.3x | 370, 0.96x |
vit_so400m_patch14_siglip_378 | yes | 12.755, 2.0x | 1346, 0.77x |
All models
Modes, licences, training data and outputs per model
Commercial status per variant: yes if the code and the weights licence both allow commercial use (the training data is listed but does not change it; weights without a licence of their own are assumed to carry the code licence); no if either forbids it; unclear for custom licence terms (treat as no).
| model | modes | code licence | weights licence | training data | commercial | outputs |
|---|---|---|---|---|---|---|
alexnet | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
convnextv2_base | portable, kernels | Apache-2.0 | CC-BY-NC-4.0 | imagenet-21k, imagenet-1k | no (weights: CC-BY-NC-4.0) | logits |
deit_base_patch16_224 | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-1k | yes | logits |
densenet121 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
dinov2_vitl14_lc | portable, kernels | Apache-2.0 | Apache-2.0 | lvd-142m, imagenet-1k | yes | logits |
efficientnet_b0 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
efficientnet_b4 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
efficientnet_v2_s | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
efficientvit_b2 | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-1k | yes | logits |
eva02_large_patch14_448 | portable, kernels | Apache-2.0 | MIT | merged-38m, imagenet-21k, imagenet-1k | yes | logits |
fastvit_sa24 | portable, kernels | Apache-2.0 | LicenseRef-Apple-Sample-Code | imagenet-1k | yes | logits |
inception_v3 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
mobilenet_v2 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
mobilenet_v3_large | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
mobilenetv1_100 | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-1k | yes | logits |
mobilenetv4_conv_medium | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-1k | yes | logits |
regnety_160 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
resnet152 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
resnet18 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
resnet50 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
shufflenet_v2_x1_0 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
squeezenet1_1 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
swin_base_patch4_window7_224 | portable, kernels | Apache-2.0 | MIT | imagenet-21k, imagenet-1k | yes | logits |
vgg16 | portable, kernels | BSD-3-Clause | BSD-3-Clause (assumed from code) | imagenet-1k | yes | logits |
vit_base_patch16_224 | portable, kernels | Apache-2.0 | Apache-2.0 | imagenet-21k, imagenet-1k | yes | logits |
vit_so400m_patch14_siglip_378 | portable, kernels | Apache-2.0 | Apache-2.0 | webli, imagenet-1k | yes | logits |
Training datasets
| id | dataset | licence | commercial use |
|---|---|---|---|
imagenet-1k | ImageNet-1k (ILSVRC 2012 classification) | LicenseRef-noncommercial | no |
imagenet-21k | ImageNet-21k / ImageNet-22k (full ImageNet, fall 2011 release) | LicenseRef-noncommercial | no |
lvd-142m | LVD-142M (DINOv2's curated web-image set, not released) | not stated | unclear |
merged-38m | Merged-38M (EVA-02 pre-training mix: ImageNet-22k, CC12M, CC3M, COCO, ADE20K, Objects365, OpenImages) | not stated | unclear |
webli | WebLI (Google web image-text data, not released) | not stated | unclear |