msluszniak commited on
Commit
e152545
·
verified ·
1 Parent(s): 1a8a3e0

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +38 -27
README.md CHANGED
@@ -6,40 +6,51 @@ pipeline_tag: image-classification
6
  library_name: executorch
7
  ---
8
 
9
- # Introduction
10
 
11
- This repository hosts the
12
- [efficientnet_v2_s](https://pytorch.org/vision/0.20/models/generated/torchvision.models.efficientnet_v2_s.html#torchvision.models.efficientnet_v2_s)
13
- models for the [React Native
14
- ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It
15
- includes model exported for xnnpack, as well as coreml in `.pte` format, ready
16
- for use in the **ExecuTorch** runtime.
17
 
18
- If you'd like to run these models in your own ExecuTorch runtime, refer to the
19
- [official documentation](https://pytorch.org/executorch/stable/index.html) for
20
- setup instructions.
21
 
22
- ## Compatibility
 
 
 
 
 
 
 
 
23
 
24
- If you intend to use this models outside of React Native ExecuTorch, make sure
25
- your runtime is compatible with the **ExecuTorch** version used to export the
26
- `.pte` files. For more details, see the compatibility note in the [ExecuTorch
27
- GitHub
28
- repository](https://github.com/pytorch/executorch/blob/11d1742fdeddcf05bc30a6cfac321d2a2e3b6768/runtime/COMPATIBILITY.md?plain=1#L4).
29
- If you work with React Native ExecuTorch, the constants from the library will
30
- guarantee compatibility with runtime used behind the scenes.
31
 
32
- These models were exported using **ExecuTorch** version 1.1.0 and **no forward
33
- compatibility** is guaranteed. Older versions of the runtime may not work with
34
- these files.
35
 
36
- ### Repository Structure
37
 
38
- The repository is organized into two main directories:
 
 
 
 
 
 
 
 
 
 
39
 
40
- - `xnnpack`
41
- - `coreml`
 
42
 
43
- Each directory contains models exported for the respective backend.
 
 
44
 
45
- - The `.pte` file should be passed to the `modelSource` parameter.
 
 
 
6
  library_name: executorch
7
  ---
8
 
9
+ # efficientnet-v2-s
10
 
11
+ This repository hosts the **efficientnet-v2-s** models exported for the
12
+ [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
13
+ library as ExecuTorch `.pte` programs, ready to run on device.
 
 
 
14
 
15
+ Upstream model: [efficientnet_v2_s](https://pytorch.org/vision/0.20/models/generated/torchvision.models.efficientnet_v2_s.html#torchvision.models.efficientnet_v2_s)
 
 
16
 
17
+ ## Variants
18
+
19
+ | Path | Backend | Precision |
20
+ | --- | --- | --- |
21
+ | `coreml/efficientnet_v2_s_coreml_fp16.pte` | coreml | fp16 |
22
+ | `xnnpack/efficientnet_v2_s_xnnpack_fp32.pte` | xnnpack | fp32 |
23
+ | `xnnpack/efficientnet_v2_s_xnnpack_int8.pte` | xnnpack | int8 |
24
+
25
+ ## Unshipped backends
26
 
27
+ A backend directory carrying a `NOTES.md` and no `.pte` was exported and
28
+ not published. Its note records what went wrong.
 
 
 
 
 
29
 
30
+ - `mlx` ([why](https://huggingface.co/software-mansion/react-native-executorch-efficientnet-v2-s/blob/main/mlx/NOTES.md))
 
 
31
 
32
+ ## Repository structure
33
 
34
+ ```
35
+ config.json 39 B
36
+ coreml/config.json 840 B
37
+ coreml/efficientnet_v2_s_coreml_fp16.pte 41.8 MB
38
+ mlx/NOTES.md 2.5 kB
39
+ xnnpack/config.json 1.4 kB
40
+ xnnpack/efficientnet_v2_s_xnnpack_fp32.pte 81.7 MB
41
+ xnnpack/efficientnet_v2_s_xnnpack_int8.pte 21.9 MB
42
+ ```
43
+
44
+ ## Compatibility
45
 
46
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
47
+ gives no forward compatibility guarantee, so an older runtime may fail to load
48
+ them.
49
 
50
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
51
+ library's model registry to the corresponding task pipeline. See the
52
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
53
 
54
+ To load these files in your own ExecuTorch runtime, read the
55
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
56
+ first.