Models

Promptable segmentation models

8 promptable segmentation 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 image plus a point, box or text prompt. Output: masks with quality scores.

Measured on RTX 5060 Ti, torch 2.14.1+cu130; fastforks bench MODEL --size HxW measures yours. The summary uses one input, 1024x1024: 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.

modelcommercialkernels time (ms),
speed-up vs original
kernels peak memory (MiB, reserved),
ratio to original
sam-vit-byes36.95, 2.7x420, 0.23x
sam-vit-hyes143.13, 2.1x1524, 0.28x
sam-vit-lyes81.53, 2.4x862, 0.25x
sam2.1-hiera-base-plusyes25.09, 1.9x524, 0.6x
sam2.1-hiera-largeyes48.81, 1.8x828, 0.55x
sam2.1-hiera-smallyes15.56, 2.7x386, 0.58x
sam2.1-hiera-tinyyes13.91, 2.7x362, 0.57x
sam3yes116.47, 2.4x2264, 0.58x

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).

modelmodescode licenceweights licencetraining datacommercialoutputs
sam-vit-bportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam-vit-hportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam-vit-lportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam2.1-hiera-base-plusportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam2.1-hiera-largeportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam2.1-hiera-smallportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam2.1-hiera-tinyportable, kernelsApache-2.0Apache-2.0unstatedyespred_masks, iou_scores
sam3portable, kernelsLicenseRef-SAM-License AND Apache-2.0LicenseRef-SAM-Licenseunstatedyesboxes, scores, masks

Training datasets

iddatasetlicencecommercial use