Run AI models smashed by Pruna AI
Project description
Pruna Engine
Pruna Engine is a Python package providing the capability of running deep learning models optimized through Pruna AI.
Installation
You can install Pruna Engine via pip from PyPI:
CPU
pip install pruna-engine
GPU
pip install pruna-engine[gpu] --extra-index-url https://pypi.nvidia.com --extra-index-url https://pypi.ngc.nvidia.com
Requirements
- You need CUDA 12 to be installed on your machine for the GPU version
- You need to have CUDA toolkit installed on your machine. If you are using a conda environment you can do this by running:
conda install nvidia/label/cuda-12.1.0::cuda
- We support python 3.8, 3.9, or 3.10
Usage
Here is a simple example of how to use Pruna Engine with a ResNet50 optimized model:
from pruna_engine.PrunaModel import PrunaModel
# And 'your_api_key' is your actual API key
your_api_key = 'test'
smashed_model = PrunaModel.load_model('resnet50_model', your_api_key)
# Run prediction
y = smashed_model(x)
License
All Rights Reserved
Copyright 2023 Pruna AI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
pruna_engine-0.5.2-py310-none-any.whl
(109.3 kB
view hashes)
pruna_engine-0.5.2-py39-none-any.whl
(108.4 kB
view hashes)
pruna_engine-0.5.2-py38-none-any.whl
(108.2 kB
view hashes)
Close
Hashes for pruna_engine-0.5.2-py310-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9664349aa98e7aaa9beb72b6a8d44643bf32107a6139428ada52f81f898f9125 |
|
MD5 | 073877f225e5b76d6d3b9bbacee32f86 |
|
BLAKE2b-256 | 63ff4c230b7e7286b5749313a26a66b83fbcc51352baeb0688142a289263e8f8 |
Close
Hashes for pruna_engine-0.5.2-py39-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e16cb98da8e9cc5bafb2ca7884e81d84d76f5ad8a1b0881c6adf7bcab44274 |
|
MD5 | 1bac7ad03ab58aa5e778904c1bc5c8ba |
|
BLAKE2b-256 | f711fe23e772286f7ed25fdd51f3dd0eb049521e02833280c9564d5323bf993d |
Close
Hashes for pruna_engine-0.5.2-py38-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 455b673d4f7b4fd287255c8e7a1b45b0888b3998d032f274c4d930767cb16cdd |
|
MD5 | df0dc97ac1a421a5aacfda3172232f7c |
|
BLAKE2b-256 | 89e311b35d0817aff9a39adccfe2114c82c3df50673b104b1b090c397c1c9a46 |