-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Add models Benchmarks (memory usage, inference time, model size) ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] Documentation update (improves or adds clarity to existing documentation) ### Checklist - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] My changes generate no new warnings
- Loading branch information
Showing
11 changed files
with
274 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"label": "Benchmarks", | ||
"position": 5, | ||
"link": { | ||
"type": "generated-index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: Inference Time | ||
sidebar_position: 3 | ||
--- | ||
|
||
:::warning warning | ||
Times presented in the tables are measured as consecutive runs of the model. Initial run times may be up to 2x longer due to model loading and initialization. | ||
::: | ||
|
||
## Classification | ||
|
||
| Model | iPhone 16 Pro (Core ML) [ms] | iPhone 13 Pro (Core ML) [ms] | iPhone SE 3 (Core ML) [ms] | Samsung Galaxy S24 (XNNPACK) [ms] | OnePlus 12 (XNNPACK) [ms] | | ||
| ----------------- | ---------------------------- | ---------------------------- | -------------------------- | --------------------------------- | ------------------------- | | ||
| EFFICIENTNET_V2_S | 100 | 120 | 130 | 180 | 170 | | ||
|
||
## Object Detection | ||
|
||
| Model | iPhone 16 Pro (XNNPACK) [ms] | iPhone 13 Pro (XNNPACK) [ms] | iPhone SE 3 (XNNPACK) [ms] | Samsung Galaxy S24 (XNNPACK) [ms] | OnePlus 12 (XNNPACK) [ms] | | ||
| ------------------------------ | ---------------------------- | ---------------------------- | -------------------------- | --------------------------------- | ------------------------- | | ||
| SSDLITE_320_MOBILENET_V3_LARGE | 190 | 260 | 280 | 100 | 90 | | ||
|
||
## Style Transfer | ||
|
||
| Model | iPhone 16 Pro (Core ML) [ms] | iPhone 13 Pro (Core ML) [ms] | iPhone SE 3 (Core ML) [ms] | Samsung Galaxy S24 (XNNPACK) [ms] | OnePlus 12 (XNNPACK) [ms] | | ||
| ---------------------------- | ---------------------------- | ---------------------------- | -------------------------- | --------------------------------- | ------------------------- | | ||
| STYLE_TRANSFER_CANDY | 450 | 600 | 750 | 1650 | 1800 | | ||
| STYLE_TRANSFER_MOSAIC | 450 | 600 | 750 | 1650 | 1800 | | ||
| STYLE_TRANSFER_UDNIE | 450 | 600 | 750 | 1650 | 1800 | | ||
| STYLE_TRANSFER_RAIN_PRINCESS | 450 | 600 | 750 | 1650 | 1800 | | ||
|
||
## LLMs | ||
|
||
| Model | iPhone 16 Pro (XNNPACK) [tokens/s] | iPhone 13 Pro (XNNPACK) [tokens/s] | iPhone SE 3 (XNNPACK) [tokens/s] | Samsung Galaxy S24 (XNNPACK) [tokens/s] | OnePlus 12 (XNNPACK) [tokens/s] | | ||
| --------------------- | ---------------------------------- | ---------------------------------- | -------------------------------- | --------------------------------------- | ------------------------------- | | ||
| LLAMA3_2_1B | 16.1 | 11.4 | ❌ | 15.6 | 19.3 | | ||
| LLAMA3_2_1B_SPINQUANT | 40.6 | 16.7 | 16.5 | 40.3 | 48.2 | | ||
| LLAMA3_2_1B_QLORA | 31.8 | 11.4 | 11.2 | 37.3 | 44.4 | | ||
| LLAMA3_2_3B | ❌ | ❌ | ❌ | ❌ | 7.1 | | ||
| LLAMA3_2_3B_SPINQUANT | 17.2 | 8.2 | ❌ | 16.2 | 19.4 | | ||
| LLAMA3_2_3B_QLORA | 14.5 | ❌ | ❌ | 14.8 | 18.1 | | ||
|
||
❌ - Insufficient RAM. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Memory Usage | ||
sidebar_position: 2 | ||
--- | ||
|
||
## Classification | ||
|
||
| Model | Android (XNNPACK) [MB] | iOS (Core ML) [MB] | | ||
| ----------------- | ---------------------- | ------------------ | | ||
| EFFICIENTNET_V2_S | 130 | 85 | | ||
|
||
## Object Detection | ||
|
||
| Model | Android (XNNPACK) [MB] | iOS (XNNPACK) [MB] | | ||
| ------------------------------ | ---------------------- | ------------------ | | ||
| SSDLITE_320_MOBILENET_V3_LARGE | 90 | 90 | | ||
|
||
## 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 | | ||
|
||
## 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_3B | 7.1 | 7.3 | | ||
| LLAMA3_2_3B_SPINQUANT | 3.7 | 3.8 | | ||
| LLAMA3_2_3B_QLORA | 4 | 4.1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Model Size | ||
sidebar_position: 1 | ||
--- | ||
|
||
## Classification | ||
|
||
| Model | XNNPACK [MB] | Core ML [MB] | | ||
| ----------------- | ------------ | ------------ | | ||
| EFFICIENTNET_V2_S | 85.6 | 43.9 | | ||
|
||
## Object Detection | ||
|
||
| Model | XNNPACK [MB] | | ||
| ------------------------------ | ------------ | | ||
| SSDLITE_320_MOBILENET_V3_LARGE | 13.9 | | ||
|
||
## Style Transfer | ||
|
||
| Model | XNNPACK [MB] | Core ML [MB] | | ||
| ---------------------------- | ------------ | ------------ | | ||
| STYLE_TRANSFER_CANDY | 6.78 | 5.22 | | ||
| STYLE_TRANSFER_MOSAIC | 6.78 | 5.22 | | ||
| STYLE_TRANSFER_UDNIE | 6.78 | 5.22 | | ||
| STYLE_TRANSFER_RAIN_PRINCESS | 6.78 | 5.22 | | ||
|
||
## LLMs | ||
|
||
| Model | XNNPACK [GB] | | ||
| --------------------- | ------------ | | ||
| LLAMA3_2_1B | 2.47 | | ||
| LLAMA3_2_1B_SPINQUANT | 1.14 | | ||
| LLAMA3_2_1B_QLORA | 1.18 | | ||
| LLAMA3_2_3B | 6.43 | | ||
| LLAMA3_2_3B_SPINQUANT | 2.55 | | ||
| LLAMA3_2_3B_QLORA | 2.65 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.