msluszniak commited on
Commit
0f61b1f
·
verified ·
1 Parent(s): 513dbbf

Apply the model card standard

Browse files
Files changed (1) hide show
  1. README.md +35 -10
README.md CHANGED
@@ -4,21 +4,46 @@ pipeline_tag: sentence-similarity
4
  library_name: executorch
5
  ---
6
 
7
- # Introduction
8
 
9
- This repository hosts the [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/tree/main) models for the [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch) library. It includes the model exported for xnnpack in `.pte` format, ready for use in the **ExecuTorch** runtime.
 
 
10
 
11
- If you'd like to run these models in your own ExecuTorch runtime, refer to the [official documentation](https://pytorch.org/executorch/stable/index.html) for setup instructions.
12
 
13
- ## Compatibility
 
 
 
 
 
 
14
 
15
- If you intend to use this model outside of React Native ExecuTorch, make sure your runtime is compatible with the **ExecuTorch** version used to export the `.pte` files. For more details, see the compatibility note in the [ExecuTorch GitHub repository](https://github.com/pytorch/executorch/blob/11d1742fdeddcf05bc30a6cfac321d2a2e3b6768/runtime/COMPATIBILITY.md?plain=1#L4). If you work with React Native ExecuTorch, the constants from the library will guarantee compatibility with runtime used behind the scenes.
16
 
17
- These models were exported using `v0.6.0` version and **no forward compatibility** is guaranteed. Older versions of the runtime may not work with these files.
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- ### Repository Structure
 
 
20
 
21
- All files are located in the root directory.
 
 
22
 
23
- - The `.pte` file should be as the `modelSource` argument.
24
- - The tokenizer is provided as `tokenizer.json` in the root directory.
 
 
4
  library_name: executorch
5
  ---
6
 
7
+ # all-MiniLM-L6-v2
8
 
9
+ This repository hosts the **all-MiniLM-L6-v2** models exported for the
10
+ [React Native ExecuTorch](https://www.npmjs.com/package/react-native-executorch)
11
+ library as ExecuTorch `.pte` programs, ready to run on device.
12
 
13
+ Upstream model: [all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/tree/main)
14
 
15
+ ## Variants
16
+
17
+ | Path | Backend | Precision |
18
+ | --- | --- | --- |
19
+ | `coreml/all_minilm_l6_v2_coreml_fp16.pte` | coreml | fp16 |
20
+ | `vulkan/all_minilm_l6_v2_vulkan_fp16.pte` | vulkan | fp16 |
21
+ | `xnnpack/all_minilm_l6_v2_xnnpack_fp32.pte` | xnnpack | fp32 |
22
 
23
+ ## Repository structure
24
 
25
+ ```
26
+ config.json 38 B
27
+ coreml/all_minilm_l6_v2_coreml_fp16.pte 43.4 MB
28
+ coreml/config.json 929 B
29
+ tokenizer.json 695 kB
30
+ tokenizer_config.json 350 B
31
+ vulkan/all_minilm_l6_v2_vulkan_fp16.pte 43.1 MB
32
+ vulkan/config.json 929 B
33
+ xnnpack/all_minilm_l6_v2_xnnpack_fp32.pte 86.2 MB
34
+ xnnpack/config.json 931 B
35
+ ```
36
+
37
+ ## Compatibility
38
 
39
+ These files are published for the **ExecuTorch v1.4.1** runtime. ExecuTorch
40
+ gives no forward compatibility guarantee, so an older runtime may fail to load
41
+ them.
42
 
43
+ To use them in React Native ExecuTorch, pass the model constant shipped in the
44
+ library's model registry to the corresponding task pipeline. See the
45
+ [documentation](https://docs.swmansion.com/react-native-executorch/docs/fundamentals/loading-models).
46
 
47
+ To load these files in your own ExecuTorch runtime, read the
48
+ [compatibility note](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md)
49
+ first.