CoreML (Python) Profiler 🐍
Quick and easy profiling of CoreML models in Python!
Quick Start ⚡️
#convert model using guide: https://apple.github.io/coremltools/docs-guides/source/introductory-quickstart.html
#or download one from the 🤗 Hub
from coremlprofiler import CoreMLProfiler
from huggingface_hub import snapshot_download
repo_path = snapshot_download(repo_id="FL33TW00D-HF/test-st", local_dir="./")
model_path = repo_path + "/sentence_transformer_all-MiniLM-L6-v2.mlpackage"
# Create the Profiler
profiler = CoreMLProfiler(model_path)
# Print your device usage
print(profiler.device_usage_summary_chart())
# Enjoy your nice plot!
CLI
Profile a local model:
coremlprofile path/to/my/model.mlpackage
Download from Hugging Face and profile:
coremlprofile --hf_repo="FL33TW00D-HF/test-st" sentence_transformer_all-MiniLM-L6-v2.mlpackage
Metadata
Release files for coremlprofiler 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coremlprofiler-0.4.0.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coremlprofiler-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / coremlprofiler-0.4.0.tar.gz
| Download URL | coremlprofiler-0.4.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a8ee7bd30a2afbbc774114719ac435299a3eb9f5773b355c73ad0873f4ffc8e
|
|
BLAKE2b-256 checksum How to use checksums |
6edf322b34065ffc55726a3111464d4d3f384e5bb1a66103edd72b90f427df51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Darwin/24.1.0
|
Release files / coremlprofiler-0.4.0-py3-none-any.whl
| Download URL | coremlprofiler-0.4.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2792b28d810e36fe066255a1baa3ee558eba640dbb7c39615d86b3b5f3ccbe17
|
|
BLAKE2b-256 checksum How to use checksums |
9d07184f036d9d05874bc334cf7c76278e31cd341bd70078bb8538d3d147acca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Darwin/24.1.0
|