AIVM: secure infrastructure for running MLaaS.
Project description
Nillion AIVM
AIVM is a framework designed for private inference using cryptographic protocols. This project allows you to run a development network (devnet) and perform private inference tasks using examples provided in the repository.
Table of Contents
Installing AIVM
Recommended Instalation
-
Install on your existing OS python installation. Requires Python >=3.12:
git clone https://github.com/NillionNetwork/aivm.git cd aivm
-
Install dependencies:
pip install .
If you are going to run the examples, do:
pip install ".[examples]"
Using Poetry
-
Install Poetry (if not already installed):
pip install poetry
-
Clone the repository:
git clone https://github.com/NillionNetwork/aivm.git cd aivm
-
Install dependencies:
poetry install
-
Activate the virtual environment:
poetry shell
-
Install AIVM:
poetry install
Using venv
-
Clone the repository:
git clone https://github.com/NillionNetwork/aivm.git cd aivm
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
On Linux/macOS:
source .venv/bin/activate
On Windows:
.\venv\Scripts\activate
-
Install the package:
pip install .
Running AIVM
-
Start the AIVM devnet:
aivm-devnet
-
Open the provided Jupyter notebook
examples/getting-started.ipynb
to run private inference examples on AIVM. -
After completing your tasks, terminate the devnet process by pressing
CTRL+C
.
Usage
For additional usage, refer to the examples provided in the examples
folder, which demonstrates how to set up private inference workflows using AIVM.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nillion_aivm-0.1.1.tar.gz
.
File metadata
- Download URL: nillion_aivm-0.1.1.tar.gz
- Upload date:
- Size: 18.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310c86149f05c72f8d23a2419b380e0cbd2e65846d4eecce22bf632d7bf9ae6c |
|
MD5 | f9a8bb9f0c8b1320555762ddc6af9d7e |
|
BLAKE2b-256 | 7200fcdcea91db997c485edeb205bb64dac627a515b44747aa7e7323545905e8 |
File details
Details for the file nillion_aivm-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: nillion_aivm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c32d7dab8acae4093ad8e5f64d9107b33b84589e810301ffa4b8a3c1629f9b13 |
|
MD5 | d074e084592f8001b420eb283c9d8bd5 |
|
BLAKE2b-256 | 7e8d0ce71411f846fe82ab6806bed51079c0bfd400b55ddb6e7c820c0169f07d |