mlboydaisuke commited on
Commit
3fba5b6
·
verified ·
1 Parent(s): 5fe1ede

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +12 -4
README.md CHANGED
@@ -7,7 +7,7 @@ tags:
7
  - on-device
8
  - object-detection
9
  ---
10
- # ssdlite320_mobilenetv3 — ExecuTorch XNNPACK
11
 
12
  - **Source**: torchvision ssdlite320_mobilenet_v3_large COCO_V1
13
  - **License**: BSD-3-Clause
@@ -18,10 +18,18 @@ tags:
18
 
19
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
20
 
21
- | precision | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
22
  |-----------|------|-----------|------------------------------------|------------------|
23
  | fp32 | `ssdlite320_mobilenetv3_xnnpack_fp32.pte` | 13.8 | 1.000000 | 5.1 |
24
  | int8 | `ssdlite320_mobilenetv3_xnnpack_int8.pte` | 3.9 | 0.968820 | 7.1 |
 
 
 
 
 
 
 
 
25
 
26
  \*Mac arm64, single process, median of 10 — a reference point for relative cost
27
  only, not a device number (torch eager fp32 on the same machine: 115.3 ms).
@@ -32,7 +40,7 @@ Correlation is a first filter. These are the numbers that decide:
32
 
33
  - **int8** — measured in the units that matter for this model — fraction of firing detections agreeing: 0.999 of the fp32 build's detections are matched (26988 of 27004 across 10 images), worst single image 0.998.
34
 
35
- ### Precisions that did not earn a slot
36
 
37
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (13.8 MB vs 13.8 MB), so it buys nothing. XNNPACK serializes convolution weights as fp32 no matter what dtype the graph carries, so on a conv-heavy model fp16 saves no disk and only adds cast operations. Reach for int8 here, not fp16.
38
 
@@ -60,5 +68,5 @@ XNNPACK delegate coverage (fp32): 94.8% (289/305 ops); ops left on the portable
60
 
61
  ## Conversion
62
 
63
- torch.export -> to_edge_transform_and_lower(XnnpackPartitioner) -> .pte
64
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))
 
7
  - on-device
8
  - object-detection
9
  ---
10
+ # ssdlite320_mobilenetv3 — ExecuTorch
11
 
12
  - **Source**: torchvision ssdlite320_mobilenet_v3_large COCO_V1
13
  - **License**: BSD-3-Clause
 
18
 
19
  All variants take and return fp32 tensors — swap the `.pte` file, keep your app code.
20
 
21
+ | build | file | size (MB) | parity vs fp32 eager (worst corr) | Mac median (ms)* |
22
  |-----------|------|-----------|------------------------------------|------------------|
23
  | fp32 | `ssdlite320_mobilenetv3_xnnpack_fp32.pte` | 13.8 | 1.000000 | 5.1 |
24
  | int8 | `ssdlite320_mobilenetv3_xnnpack_int8.pte` | 3.9 | 0.968820 | 7.1 |
25
+ | Core ML (fp16, iOS) | `ssdlite320_mobilenetv3_coreml_all.pte` | 7.5 | 0.999658 | 0.9 |
26
+
27
+
28
+ The Core ML build is the same graph lowered to Apple's Neural Engine instead of
29
+ XNNPACK, which is CPU-only. On an iPhone 17 Pro, Depth-Anything-V2-Small runs
30
+ 500.8 ms through XNNPACK and 42.7 ms through Core ML, at half the file size. It
31
+ computes in fp16 and is iOS-only; the XNNPACK files stay the portable option and
32
+ are what runs on Android.
33
 
34
  \*Mac arm64, single process, median of 10 — a reference point for relative cost
35
  only, not a device number (torch eager fp32 on the same machine: 115.3 ms).
 
40
 
41
  - **int8** — measured in the units that matter for this model — fraction of firing detections agreeing: 0.999 of the fp32 build's detections are matched (26988 of 27004 across 10 images), worst single image 0.998.
42
 
43
+ ### Builds that did not earn a slot
44
 
45
  - **fp16 is not shipped**: it comes out at 100% of the fp32 file (13.8 MB vs 13.8 MB), so it buys nothing. XNNPACK serializes convolution weights as fp32 no matter what dtype the graph carries, so on a conv-heavy model fp16 saves no disk and only adds cast operations. Reach for int8 here, not fp16.
46
 
 
68
 
69
  ## Conversion
70
 
71
+ torch.export -> to_edge_transform_and_lower(partitioner) -> .pte
72
  (conversion scripts: [executorch-models](https://github.com/john-rocky/executorch-models))