paitient-secure-model
v0.1.0
Published
PaiTIENT - HIPAA/SOC2 compliant secure model hosting SDK
Maintainers
Readme
Secure Model Service
A HIPAA/SOC2 compliant service for deploying private encrypted AI models to individual clients. This enterprise-grade solution allows secure deployment and management of LLMs with state-of-the-art encryption, monitoring, and subscription management.
Architecture Overview
This service provides on-demand deployment of secure, isolated AI model endpoints for clients. The system:
- Creates encrypted copies of AI models using hybrid encryption (AES-256-GCM + RSA-4096)
- Provisions isolated compute resources via Kubernetes or AWS EC2
- Establishes secure endpoints accessible only to authorized clients with valid subscriptions
- Enables inference, fine-tuning, and secure model management
- Manages the complete lifecycle of model deployment with continuous monitoring
Installation
Python Package
pip install secure-model-serviceNode.js Package
npm install secure-model-sdkQuick Start
Python
from secure_model_service import SecureModelClient
# Initialize client
client = SecureModelClient(
api_key="your-api-key",
client_id="your-client-id"
)
# Deploy a model
deployment = client.deploy(
model_name="ZimaBlueAI/HuatuoGPT-o1-8B",
tier="pro",
use_gpu=True
)
# Generate text
response = client.generate(
prompt="Explain how your encryption system ensures HIPAA compliance:",
max_tokens=100
)
print(response.text)Node.js
const { SecureModelClient } = require('secure-model-sdk');
// Initialize client
const client = new SecureModelClient({
apiKey: 'your-api-key',
clientId: 'your-client-id'
});
// Deploy a model
async function deployModel() {
const deployment = await client.deploy({
modelName: 'ZimaBlueAI/HuatuoGPT-o1-8B',
tier: 'pro',
useGpu: true
});
console.log(`Deployment ID: ${deployment.deploymentId}`);
// Generate text
const response = await client.generate({
prompt: 'Explain how your encryption system ensures HIPAA compliance:',
maxTokens: 100
});
console.log(response.text);
}
deployModel();Command Line
# Python CLI
secure-model deploy --model ZimaBlueAI/HuatuoGPT-o1-8B --tier pro --use-gpu
# Node.js CLI
secure-model deploy --model ZimaBlueAI/HuatuoGPT-o1-8B --tier pro --use-gpuKey Components
- Encryption Service: Hybrid AES-256-GCM + RSA-4096 encryption for model weights
- Kubernetes Orchestration: Dynamic scaling of compute resources with auto-scaling
- AWS Integration: S3 for secure storage, EC2 for compute, IAM for access control
- API Gateway: Client-facing interfaces with subscription validation
- Authentication & Authorization: Multi-layered security with API keys and subscription validation
- Monitoring & Logging: HIPAA/SOC2 compliant audit logging and Prometheus metrics
Security Compliance
- HIPAA compliant data handling with audit logging
- SOC2 compliant operational procedures and monitoring
- End-to-end encryption of model artifacts and inference data
- Isolated per-client compute resources with secure networking
- Continuous subscription validation and automated lockout
Documentation
For complete documentation, visit our Documentation Site.
