No project description provided
Project description
Neurion Sanctum
Overview
Neurion Sanctum provides a secure, decentralized infrastructure for AI model training and dataset usage requests. It allows users to securely train AI models while ensuring data privacy using Trusted Execution Environments (TEE).
This library enables users to create and manage tasks, handling dataset usage requests seamlessly while abstracting the complexities of enclave execution and secure computing.
Features
- Task Management: Users can start AI model training tasks with ease.
- Secure Processing: The processor securely handles dataset usage requests using TEE-enabled AWS Nitro Enclaves.
- Automatic Model Upload: Trained models are uploaded to storage solutions like Hugging Face.
- Seamless Blockchain Integration: Automates blockchain-based dataset access requests.
Installation
Ensure you have Python 3.8+ installed. Then, install the required dependencies:
pip install -r requirements.txt
Usage
Running a Training Task
Users can start a training task with the following:
from neurion_sanctum.task.task import Task
def train_model(key: str):
"""
Function to train a model using a secure dataset.
"""
pass # Implement your training logic here
def upload(data: dict):
"""
Function to handle model uploads.
"""
pass # Implement your upload logic here
if __name__ == "__main__":
Task.create_training_task(train_model, upload).start()
Running the Processor
The processor handles dataset usage requests and manages enclave execution:
from neurion_sanctum.processor.processor import Processor
if __name__ == "__main__":
Processor.new().start()
The processor continuously checks for pending dataset usage requests and securely executes them within an enclave.
Environment Variables
Ensure the following environment variables are set before running:
NEURION_PRIVATE_KEY=<private_key>
NEURION_MNEMONIC=<mnemonic>
NEURION_NETWORK=alphanet
AWS_ACCESS_KEY=<your_aws_access_key>
AWS_SECRET_KEY=<your_aws_secret_key>
AWS_REGION=us-east-1
AWS_INSTANCE_TYPE=c6a.2xlarge
AWS_AMI=<your_aws_ami>
AWS_SECURITY_GROUP_NAME=<your_security_group>
AWS_INSTANCE_EBS_SIZE_IN_GB=100
AWS_ENCLAVE_IMAGE_SIZE_IN_MB=10000
AWS_ENCLAVE_ALLOWED_EGRESS=huggingface.co,cdn-lfs-us-1.hf.co,hf-hub-lfs-us-east-1.*.amazonaws.com
DOCKER_USERNAME=<your_docker_username>
DOCKER_TOKEN=<your_docker_token>
License
This project is licensed under the MIT License. See the LICENSE file for details.
For further information, refer to the documentation or open an issue in the repository.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neurion_sanctum-0.4.0.tar.gz.
File metadata
- Download URL: neurion_sanctum-0.4.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf1c26318acf17e8395d12493ad28bcf5b15f0991dd088d9cdc0e04835bb329
|
|
| MD5 |
57d1aac3073f517de76cb3bba6f10b0d
|
|
| BLAKE2b-256 |
2479fe01f65c5a12047f4666e81de574fc1e8e5f3ca7b403547f1f51836017f2
|
File details
Details for the file neurion_sanctum-0.4.0-py3-none-any.whl.
File metadata
- Download URL: neurion_sanctum-0.4.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.9.21 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecb89630ccee3e5f7757c1eac65a0306827367a64947b57d17ecd69e6fdc2db0
|
|
| MD5 |
619069f3d0006b0624128b7b1968ec7a
|
|
| BLAKE2b-256 |
f37a6c3a55b9ef659c3833264ce5bdd399823deb85bf7fcad8ef7414a9555db6
|