File size: 2,201 Bytes
b193f07 b888754 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 b193f07 f6f9ca3 9d075d1 f6f9ca3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | ---
license: agpl-3.0
pipeline_tag: image-segmentation
library_name: executorch
---
# fast-sam
This repository hosts the **fast-sam** models exported for the
[React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
library as ExecuTorch `.pte` programs, ready to run on device.
Upstream model: [FastSAM](https://docs.ultralytics.com/models/fast-sam/)
## Variants
| Path | Backend | Precision |
| --- | --- | --- |
| `s/coreml/fast_sam_s_coreml_fp16.pte` | coreml | fp16 |
| `s/xnnpack/fast_sam_s_xnnpack_fp32.pte` | xnnpack | fp32 |
| `x/coreml/fast_sam_x_coreml_fp16.pte` | coreml | fp16 |
| `x/xnnpack/fast_sam_x_xnnpack_fp32.pte` | xnnpack | fp32 |
## Unshipped backends
A backend directory carrying a `NOTES.md` and no `.pte` was exported and
not published. Its note records what went wrong.
- `s/mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-fast-sam/blob/main/s/mlx/NOTES.md))
- `x/mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-fast-sam/blob/main/x/mlx/NOTES.md))
## Repository structure
```
config.json 30 B
s/coreml/config.json 1.2 kB
s/coreml/fast_sam_s_coreml_fp16.pte 23.1 MB
s/mlx/NOTES.md 2.0 kB
s/xnnpack/config.json 1.2 kB
s/xnnpack/fast_sam_s_xnnpack_fp32.pte 45.2 MB
x/coreml/config.json 1.2 kB
x/coreml/fast_sam_x_coreml_fp16.pte 139 MB
x/mlx/NOTES.md 2.0 kB
x/xnnpack/config.json 1.2 kB
x/xnnpack/fast_sam_x_xnnpack_fp32.pte 276 MB
```
## Compatibility
These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
gives no forward compatibility guarantee, so an older runtime may fail to load
them.
To use them in React Native ExecuTorch, pass the model constant shipped in the
library's model registry to the corresponding task pipeline. See the
[documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/downloading-models).
To load these files in your own ExecuTorch runtime, read the
[compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
first.
|