Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 43 additions & 53 deletions docs/docs/04-benchmarks/inference-time.md

Large diffs are not rendered by default.

56 changes: 30 additions & 26 deletions docs/docs/04-benchmarks/memory-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,80 @@
title: Memory Usage
---

:::info
All the below benchmarks were performed on iPhone 17 Pro (iOS) and OnePlus 12 (Android).
:::

## Classification

| Model | Android (XNNPACK) [MB] | iOS (Core ML) [MB] |
| ----------------- | :--------------------: | :----------------: |
| EFFICIENTNET_V2_S | 130 | 85 |
| EFFICIENTNET_V2_S | 230 | 87 |

## Object Detection

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| ------------------------------ | :--------------------: | :----------------: |
| SSDLITE_320_MOBILENET_V3_LARGE | 90 | 90 |
| SSDLITE_320_MOBILENET_V3_LARGE | 164 | 132 |

## Style Transfer

| Model | Android (XNNPACK) [MB] | iOS (Core ML) [MB] |
| ---------------------------- | :--------------------: | :----------------: |
| STYLE_TRANSFER_CANDY | 950 | 350 |
| STYLE_TRANSFER_MOSAIC | 950 | 350 |
| STYLE_TRANSFER_UDNIE | 950 | 350 |
| STYLE_TRANSFER_RAIN_PRINCESS | 950 | 350 |
| STYLE_TRANSFER_CANDY | 1200 | 380 |
| STYLE_TRANSFER_MOSAIC | 1200 | 380 |
| STYLE_TRANSFER_UDNIE | 1200 | 380 |
| STYLE_TRANSFER_RAIN_PRINCESS | 1200 | 380 |

## OCR

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| -------------------------------------------------------------------------------------------- | :--------------------: | :----------------: |
| Detector (CRAFT_800) + Recognizer (CRNN_512) + Recognizer (CRNN_256) + Recognizer (CRNN_128) | 2100 | 1782 |
| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| ------------------------------------------------------------------------------------------------------ | :--------------------: | :----------------: |
| Detector (CRAFT_800_QUANTIZED) + Recognizer (CRNN_512) + Recognizer (CRNN_256) + Recognizer (CRNN_128) | 1400 | 1320 |

## Vertical OCR

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| -------------------------------------------------------------------- | :--------------------: | :----------------: |
| Detector (CRAFT_1280) + Detector (CRAFT_320) + Recognizer (CRNN_512) | 2770 | 3720 |
| Detector(CRAFT_1280) + Detector(CRAFT_320) + Recognizer (CRNN_64) | 1770 | 2740 |
| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| ---------------------------------------------------------------------------------------- | :--------------------: | :----------------: |
| Detector (CRAFT_1280_QUANTIZED) + Detector (CRAFT_320_QUANTIZED) + Recognizer (CRNN_512) | 1540 | 1470 |
| Detector(CRAFT_1280_QUANTIZED) + Detector(CRAFT_320_QUANTIZED) + Recognizer (CRNN_64) | 1070 | 1000 |

## LLMs

| Model | Android (XNNPACK) [GB] | iOS (XNNPACK) [GB] |
| --------------------- | :--------------------: | :----------------: |
| LLAMA3_2_1B | 3.2 | 3.1 |
| LLAMA3_2_1B_SPINQUANT | 1.9 | 2 |
| LLAMA3_2_1B_QLORA | 2.2 | 2.5 |
| LLAMA3_2_1B | 3.3 | 3.1 |
| LLAMA3_2_1B_SPINQUANT | 1.9 | 2.4 |
| LLAMA3_2_1B_QLORA | 2.7 | 2.8 |
| LLAMA3_2_3B | 7.1 | 7.3 |
| LLAMA3_2_3B_SPINQUANT | 3.7 | 3.8 |
| LLAMA3_2_3B_QLORA | 4 | 4.1 |
| LLAMA3_2_3B_QLORA | 3.9 | 4.0 |

## Speech to text

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| ------------ | :--------------------: | :----------------: |
| WHISPER_TINY | 900 | 600 |
| WHISPER_TINY | 410 | 375 |

## Text Embeddings

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| -------------------------- | :--------------------: | :----------------: |
| ALL_MINILM_L6_V2 | 85 | 100 |
| ALL_MPNET_BASE_V2 | 390 | 465 |
| MULTI_QA_MINILM_L6_COS_V1 | 115 | 130 |
| MULTI_QA_MPNET_BASE_DOT_V1 | 415 | 490 |
| CLIP_VIT_BASE_PATCH32_TEXT | 195 | 250 |
| ALL_MINILM_L6_V2 | 95 | 110 |
| ALL_MPNET_BASE_V2 | 405 | 455 |
| MULTI_QA_MINILM_L6_COS_V1 | 120 | 140 |
| MULTI_QA_MPNET_BASE_DOT_V1 | 435 | 455 |
| CLIP_VIT_BASE_PATCH32_TEXT | 200 | 280 |

## Image Embeddings

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| --------------------------- | :--------------------: | :----------------: |
| CLIP_VIT_BASE_PATCH32_IMAGE | 350 | 340 |
| CLIP_VIT_BASE_PATCH32_IMAGE | 345 | 340 |

## Text to Image

| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] |
| --------------------- | ---------------------- | ------------------ |
| BK_SDM_TINY_VPRED_256 | 2900 | 2800 |
| BK_SDM_TINY_VPRED | 6700 | 6560 |
| BK_SDM_TINY_VPRED_256 | 2400 | 2400 |
| BK_SDM_TINY_VPRED | 6210 | 6050 |
24 changes: 12 additions & 12 deletions docs/docs/04-benchmarks/model-size.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ title: Model Size

## OCR

| Model | XNNPACK [MB] |
| --------------------- | :----------: |
| Detector (CRAFT_800) | 83.1 |
| Recognizer (CRNN_512) | 15 - 18\* |
| Recognizer (CRNN_256) | 16 - 18\* |
| Recognizer (CRNN_128) | 17 - 19\* |
| Model | XNNPACK [MB] |
| ------------------------------ | :----------: |
| Detector (CRAFT_800_QUANTIZED) | 19.8 |
| Recognizer (CRNN_512) | 15 - 18\* |
| Recognizer (CRNN_256) | 16 - 18\* |
| Recognizer (CRNN_128) | 17 - 19\* |

\* - The model weights vary depending on the language.

## Vertical OCR

| Model | XNNPACK [MB] |
| ------------------------ | :----------: |
| Detector (CRAFT_1280) | 83.1 |
| Detector (CRAFT_320) | 83.1 |
| Recognizer (CRNN_EN_512) | 15 - 18\* |
| Recognizer (CRNN_EN_64) | 15 - 16\* |
| Model | XNNPACK [MB] |
| ------------------------------- | :----------: |
| Detector (CRAFT_1280_QUANTIZED) | 19.8 |
| Detector (CRAFT_320_QUANTIZED) | 19.8 |
| Recognizer (CRNN_EN_512) | 15 - 18\* |
| Recognizer (CRNN_EN_64) | 15 - 16\* |

\* - The model weights vary depending on the language.

Expand Down
Loading