Raj Maurya commited on
Commit
17cffa2
·
verified ·
1 Parent(s): 58bf945

MiniLM-L6 Core ML (8-bit)

Browse files
README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: sentence-transformers/all-MiniLM-L6-v2
4
+ tags: [coreml, sentence-similarity, feature-extraction]
5
+ ---
6
+ # Shelf meaning models
7
+
8
+ Core ML conversions of sentence-embedding models, used for on-device "Search by Meaning" in the Shelf iOS app.
9
+
10
+ ## minilm-l6
11
+ [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) (Apache 2.0),
12
+ 8-bit weights, iOS 18+.
13
+ - Inputs: `input_ids`, `attention_mask` (Int32, shape [1, n], n = 32, 64, 128 or 256)
14
+ - Output: `embedding` (Float [1, 384], mean-pooled, L2-normalised)
15
+ - `vocab.txt`: BERT uncased WordPiece vocabulary
minilm-l6/model.mlpackage/Data/com.apple.CoreML/model.mlmodel ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43bcdeacbea716f521f71e3d8ed72d164f3ae378568ac4042c18852e6e83ffed
3
+ size 145194
minilm-l6/model.mlpackage/Data/com.apple.CoreML/weights/weight.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07fcd8cab6507dc1c0322a5c87fb9fe131cf32f61a31271ee342637cb409fb1e
3
+ size 22713600
minilm-l6/model.mlpackage/Manifest.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "fileFormatVersion": "1.0.0",
3
+ "itemInfoEntries": {
4
+ "1D8BB2C5-D869-4CD3-9790-3D06085761C5": {
5
+ "author": "com.apple.CoreML",
6
+ "description": "CoreML Model Weights",
7
+ "name": "weights",
8
+ "path": "com.apple.CoreML/weights"
9
+ },
10
+ "B068D4BE-8AB4-4AA8-910D-45F52E2184B0": {
11
+ "author": "com.apple.CoreML",
12
+ "description": "CoreML Model Specification",
13
+ "name": "model.mlmodel",
14
+ "path": "com.apple.CoreML/model.mlmodel"
15
+ }
16
+ },
17
+ "rootModelIdentifier": "B068D4BE-8AB4-4AA8-910D-45F52E2184B0"
18
+ }
minilm-l6/vocab.txt ADDED
The diff for this file is too large to render. See raw diff