add fp16 vision (default), ANE-layout fp16 vision, fp16 heads for all buckets; manifest variants + compute-unit guidance
Browse files- Head_L1024_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- Head_L1024_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- Head_L1024_Q16_O64/Head_fp16.mlpackage/Manifest.json +18 -0
- Head_L2048_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- Head_L2048_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- Head_L2048_Q16_O64/Head_fp16.mlpackage/Manifest.json +18 -0
- Head_L512_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- Head_L512_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- Head_L512_Q16_O64/Head_fp16.mlpackage/Manifest.json +18 -0
- Vision_P784/VisionTowerANE_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- Vision_P784/VisionTowerANE_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- Vision_P784/VisionTowerANE_fp16.mlpackage/Manifest.json +18 -0
- Vision_P784/VisionTower_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel +3 -0
- Vision_P784/VisionTower_fp16.mlpackage/Data/com.apple.CoreML/weights/weight.bin +3 -0
- Vision_P784/VisionTower_fp16.mlpackage/Manifest.json +18 -0
- config.json +73 -6
Head_L1024_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f5322ed7b3bfad3f213eb12fd3394a685fb473cdda98e0b1d047b443aea96c6
|
| 3 |
+
size 82541
|
Head_L1024_Q16_O64/Head_fp16.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:339ac60b2149796001e0e5ddcc3471a4b5b3de3a9470e2b00142239a100917d7
|
| 3 |
+
size 138555200
|
Head_L1024_Q16_O64/Head_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"02AEC9E4-6470-497F-AF07-0D54FC1AA60E": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"AF55B9C7-76BA-4C67-97C9-B061335074A1": {
|
| 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": "AF55B9C7-76BA-4C67-97C9-B061335074A1"
|
| 18 |
+
}
|
Head_L2048_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74058c9b90e86966ec8a9325305f139814059d473bc9e63df7b4391b5b12b01b
|
| 3 |
+
size 82541
|
Head_L2048_Q16_O64/Head_fp16.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:339ac60b2149796001e0e5ddcc3471a4b5b3de3a9470e2b00142239a100917d7
|
| 3 |
+
size 138555200
|
Head_L2048_Q16_O64/Head_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"A8B6B205-31F6-439A-B251-4B4ABE8D1F53": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"F6806926-4398-481C-80C7-B0C5E8F5CE2B": {
|
| 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": "F6806926-4398-481C-80C7-B0C5E8F5CE2B"
|
| 18 |
+
}
|
Head_L512_Q16_O64/Head_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:703e6d59990bf6b85e503028c5c1064fd8e3e5ee3e18e1542dea2801938291de
|
| 3 |
+
size 82541
|
Head_L512_Q16_O64/Head_fp16.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:339ac60b2149796001e0e5ddcc3471a4b5b3de3a9470e2b00142239a100917d7
|
| 3 |
+
size 138555200
|
Head_L512_Q16_O64/Head_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"1E6313AC-5A89-4894-9887-94AA9323DB2A": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Specification",
|
| 7 |
+
"name": "model.mlmodel",
|
| 8 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 9 |
+
},
|
| 10 |
+
"E868BD6A-B409-4414-B2DA-41DCC3E8A364": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Weights",
|
| 13 |
+
"name": "weights",
|
| 14 |
+
"path": "com.apple.CoreML/weights"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "1E6313AC-5A89-4894-9887-94AA9323DB2A"
|
| 18 |
+
}
|
Vision_P784/VisionTowerANE_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20e5667712238bc8655e31bad5b1deb9509f51c527f0a6ad5468644819862e93
|
| 3 |
+
size 1677612
|
Vision_P784/VisionTowerANE_fp16.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:1c5c43f7df597a1fff4e79e2b6884a7cca6343adac9f73541d1e74e91123ed2a
|
| 3 |
+
size 197662912
|
Vision_P784/VisionTowerANE_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"90E1D81E-176A-4D0E-81DE-DFBB6E3FEFDA": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Weights",
|
| 7 |
+
"name": "weights",
|
| 8 |
+
"path": "com.apple.CoreML/weights"
|
| 9 |
+
},
|
| 10 |
+
"E7401541-DA8D-4F26-BF95-99761CFEEB87": {
|
| 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": "E7401541-DA8D-4F26-BF95-99761CFEEB87"
|
| 18 |
+
}
|
Vision_P784/VisionTower_fp16.mlpackage/Data/com.apple.CoreML/model.mlmodel
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13baf6d47bb4ff5d8398502a5740f75bdda41bf56f4490a0f9b1b99858eb7aa5
|
| 3 |
+
size 175723
|
Vision_P784/VisionTower_fp16.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:ad74a1d26a0bf6500c5cb9b9e11281ccd9b85a46ed4cb0c51b75e6cc19ff77dd
|
| 3 |
+
size 197656640
|
Vision_P784/VisionTower_fp16.mlpackage/Manifest.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"fileFormatVersion": "1.0.0",
|
| 3 |
+
"itemInfoEntries": {
|
| 4 |
+
"4BBEDCAC-5231-4649-98AA-FF48ADA0E8B9": {
|
| 5 |
+
"author": "com.apple.CoreML",
|
| 6 |
+
"description": "CoreML Model Specification",
|
| 7 |
+
"name": "model.mlmodel",
|
| 8 |
+
"path": "com.apple.CoreML/model.mlmodel"
|
| 9 |
+
},
|
| 10 |
+
"EC7D7FA2-2516-4933-AF0E-4753CFE2F56E": {
|
| 11 |
+
"author": "com.apple.CoreML",
|
| 12 |
+
"description": "CoreML Model Weights",
|
| 13 |
+
"name": "weights",
|
| 14 |
+
"path": "com.apple.CoreML/weights"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"rootModelIdentifier": "4BBEDCAC-5231-4649-98AA-FF48ADA0E8B9"
|
| 18 |
+
}
|
config.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
"packages": {
|
| 7 |
"vision": {
|
| 8 |
"dir": "Vision_P784",
|
| 9 |
-
"file": "
|
| 10 |
"patches": 784,
|
| 11 |
"tokens": 196,
|
| 12 |
"inputs": [
|
|
@@ -17,7 +17,7 @@
|
|
| 17 |
"mask [1,1,784,784]"
|
| 18 |
],
|
| 19 |
"output": "tokens [196,1024]",
|
| 20 |
-
"precision": "
|
| 21 |
"pos_embed": {
|
| 22 |
"file": "Vision_P784/pos_embed.f32",
|
| 23 |
"shape": [
|
|
@@ -25,7 +25,36 @@
|
|
| 25 |
768
|
| 26 |
],
|
| 27 |
"dtype": "float32"
|
| 28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
},
|
| 30 |
"lm": [
|
| 31 |
{
|
|
@@ -68,21 +97,54 @@
|
|
| 68 |
"file": "Head_fp32.mlpackage",
|
| 69 |
"length": 512,
|
| 70 |
"max_questions": 16,
|
| 71 |
-
"max_options": 64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
},
|
| 73 |
{
|
| 74 |
"dir": "Head_L1024_Q16_O64",
|
| 75 |
"file": "Head_fp32.mlpackage",
|
| 76 |
"length": 1024,
|
| 77 |
"max_questions": 16,
|
| 78 |
-
"max_options": 64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
},
|
| 80 |
{
|
| 81 |
"dir": "Head_L2048_Q16_O64",
|
| 82 |
"file": "Head_fp32.mlpackage",
|
| 83 |
"length": 2048,
|
| 84 |
"max_questions": 16,
|
| 85 |
-
"max_options": 64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
}
|
| 87 |
]
|
| 88 |
},
|
|
@@ -179,5 +241,10 @@
|
|
| 179 |
"num_hidden_layers": 24,
|
| 180 |
"vocab_size": 248320,
|
| 181 |
"rms_norm_eps": 1e-06
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 182 |
}
|
| 183 |
}
|
|
|
|
| 6 |
"packages": {
|
| 7 |
"vision": {
|
| 8 |
"dir": "Vision_P784",
|
| 9 |
+
"file": "VisionTower_fp16.mlpackage",
|
| 10 |
"patches": 784,
|
| 11 |
"tokens": 196,
|
| 12 |
"inputs": [
|
|
|
|
| 17 |
"mask [1,1,784,784]"
|
| 18 |
],
|
| 19 |
"output": "tokens [196,1024]",
|
| 20 |
+
"precision": "fp16 (default); see variants",
|
| 21 |
"pos_embed": {
|
| 22 |
"file": "Vision_P784/pos_embed.f32",
|
| 23 |
"shape": [
|
|
|
|
| 25 |
768
|
| 26 |
],
|
| 27 |
"dtype": "float32"
|
| 28 |
+
},
|
| 29 |
+
"variants": {
|
| 30 |
+
"fp16": {
|
| 31 |
+
"file": "VisionTower_fp16.mlpackage",
|
| 32 |
+
"layout": "rows",
|
| 33 |
+
"precision": "fp16",
|
| 34 |
+
"note": "default: GPU, ~11 ms/image on M5 Pro; e2e prob drift 3.4e-3, argmax 100%"
|
| 35 |
+
},
|
| 36 |
+
"fp32": {
|
| 37 |
+
"file": "VisionTower_fp32.mlpackage",
|
| 38 |
+
"layout": "rows",
|
| 39 |
+
"precision": "fp32",
|
| 40 |
+
"note": "exact (7e-4 vs torch), GPU ~35 ms/image"
|
| 41 |
+
},
|
| 42 |
+
"ane_fp16": {
|
| 43 |
+
"file": "VisionTowerANE_fp16.mlpackage",
|
| 44 |
+
"layout": "channels_first",
|
| 45 |
+
"precision": "fp16",
|
| 46 |
+
"inputs": [
|
| 47 |
+
"patches [1,1536,1,784]",
|
| 48 |
+
"pos_embeds [1,768,1,784]",
|
| 49 |
+
"cos [1,64,1,784]",
|
| 50 |
+
"sin [1,64,1,784]",
|
| 51 |
+
"mask [1,784(k),1,784(q)]"
|
| 52 |
+
],
|
| 53 |
+
"output": "tokens [1,1024,1,196]",
|
| 54 |
+
"note": "runs on the Neural Engine only with computeUnits=cpuAndNeuralEngine (ALL picks the GPU); ~24 ms/image, e2e prob drift 1.6e-2, argmax 100%"
|
| 55 |
+
}
|
| 56 |
+
},
|
| 57 |
+
"default_variant": "fp16"
|
| 58 |
},
|
| 59 |
"lm": [
|
| 60 |
{
|
|
|
|
| 97 |
"file": "Head_fp32.mlpackage",
|
| 98 |
"length": 512,
|
| 99 |
"max_questions": 16,
|
| 100 |
+
"max_options": 64,
|
| 101 |
+
"variants": {
|
| 102 |
+
"fp32": {
|
| 103 |
+
"file": "Head_fp32.mlpackage",
|
| 104 |
+
"note": "GPU ~14 ms"
|
| 105 |
+
},
|
| 106 |
+
"fp16": {
|
| 107 |
+
"file": "Head_fp16.mlpackage",
|
| 108 |
+
"note": "ANE-eligible under ALL (~3.6 ms, 6 W ANE); e2e prob drift 3.6e-3, argmax 100%"
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
"default_variant": "fp16"
|
| 112 |
},
|
| 113 |
{
|
| 114 |
"dir": "Head_L1024_Q16_O64",
|
| 115 |
"file": "Head_fp32.mlpackage",
|
| 116 |
"length": 1024,
|
| 117 |
"max_questions": 16,
|
| 118 |
+
"max_options": 64,
|
| 119 |
+
"variants": {
|
| 120 |
+
"fp32": {
|
| 121 |
+
"file": "Head_fp32.mlpackage",
|
| 122 |
+
"note": "GPU ~14 ms"
|
| 123 |
+
},
|
| 124 |
+
"fp16": {
|
| 125 |
+
"file": "Head_fp16.mlpackage",
|
| 126 |
+
"note": "ANE-eligible under ALL (~3.6 ms, 6 W ANE); e2e prob drift 3.6e-3, argmax 100%"
|
| 127 |
+
}
|
| 128 |
+
},
|
| 129 |
+
"default_variant": "fp16"
|
| 130 |
},
|
| 131 |
{
|
| 132 |
"dir": "Head_L2048_Q16_O64",
|
| 133 |
"file": "Head_fp32.mlpackage",
|
| 134 |
"length": 2048,
|
| 135 |
"max_questions": 16,
|
| 136 |
+
"max_options": 64,
|
| 137 |
+
"variants": {
|
| 138 |
+
"fp32": {
|
| 139 |
+
"file": "Head_fp32.mlpackage",
|
| 140 |
+
"note": "GPU ~14 ms"
|
| 141 |
+
},
|
| 142 |
+
"fp16": {
|
| 143 |
+
"file": "Head_fp16.mlpackage",
|
| 144 |
+
"note": "ANE-eligible under ALL (~3.6 ms, 6 W ANE); e2e prob drift 3.6e-3, argmax 100%"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"default_variant": "fp16"
|
| 148 |
}
|
| 149 |
]
|
| 150 |
},
|
|
|
|
| 241 |
"num_hidden_layers": 24,
|
| 242 |
"vocab_size": 248320,
|
| 243 |
"rms_norm_eps": 1e-06
|
| 244 |
+
},
|
| 245 |
+
"compute_units_guidance": {
|
| 246 |
+
"vision": "cpuAndGPU (fp16 rows) or cpuAndNeuralEngine (ane_fp16)",
|
| 247 |
+
"lm": "cpuAndGPU (Qwen3.5 does not run on the ANE)",
|
| 248 |
+
"head": "all (fp16 head lands on the ANE)"
|
| 249 |
}
|
| 250 |
}
|