SAM 2.1
(Segment Anything 2, Meta) Hiera-Tiny converted to
LiteRT
and running fully on the
GPU
via the
CompiledModel
API (ML Drift). Tap a
point on an image and it returns a segmentation mask — the image encoder runs once per image,
the mask decoder runs per point.
Both graphs are
fully GPU-accelerated
on the Pixel 8a (Mali / ML Drift) and on Apple
silicon (Metal), and the output is
bit-exact (corr 1.0)
vs the original PyTorch SAM 2.1.
prompt-encoder constants for the Kotlin point encoder
—
Preprocessing: resize to 1024×1024, ImageNet mean
[0.485, 0.456, 0.406]
/ std
[0.229, 0.224, 0.225]
, NCHW.
GPU compatibility
The Hiera image encoder is made GPU-clean with three numerically-identical rewrites (done at
conversion time; the SAM 2 mask decoder converts unchanged):
Bake the windowed positional embedding
(constant for a fixed 1024² input) — removes the
bicubic
interpolate
(GATHER_ND) and the tiled window embed (BROADCAST_TO).
Converted with
litert-torch
from the Hugging Face
transformers
SAM 2 model. The full
conversion script (and Android sample app) is in
LiteRT-Models
→
sam2/
.
License & credits
Apache-2.0, following the original
SAM 2
(Meta,
Apache-2.0). Conversion by
@john-rocky
.
Runs of mlboydaisuke SAM2-hiera-tiny-LiteRT on huggingface.co
135
Total runs
0
24-hour runs
16
3-day runs
37
7-day runs
42
30-day runs
More Information About SAM2-hiera-tiny-LiteRT huggingface.co Model
SAM2-hiera-tiny-LiteRT huggingface.co is an AI model on huggingface.co that provides SAM2-hiera-tiny-LiteRT's model effect (), which can be used instantly with this mlboydaisuke SAM2-hiera-tiny-LiteRT model. huggingface.co supports a free trial of the SAM2-hiera-tiny-LiteRT model, and also provides paid use of the SAM2-hiera-tiny-LiteRT. Support call SAM2-hiera-tiny-LiteRT model through api, including Node.js, Python, http.
SAM2-hiera-tiny-LiteRT huggingface.co is an online trial and call api platform, which integrates SAM2-hiera-tiny-LiteRT's modeling effects, including api services, and provides a free online trial of SAM2-hiera-tiny-LiteRT, you can try SAM2-hiera-tiny-LiteRT online for free by clicking the link below.
mlboydaisuke SAM2-hiera-tiny-LiteRT online free url in huggingface.co:
SAM2-hiera-tiny-LiteRT is an open source model from GitHub that offers a free installation service, and any user can find SAM2-hiera-tiny-LiteRT on GitHub to install. At the same time, huggingface.co provides the effect of SAM2-hiera-tiny-LiteRT install, users can directly use SAM2-hiera-tiny-LiteRT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
SAM2-hiera-tiny-LiteRT install url in huggingface.co: