Compute Operator
Complete guide for running a Compute node on NCN Network.
Overview
Compute nodes execute AI models for inference requests. They:
Execute models in secure sandboxes
Sign computation results
Receive payment for completed tasks
Earnings: ~80% of each inference fee
Requirements
Hardware
CPU
4 cores
8+ cores
RAM
8 GB
32 GB
GPU
Optional
NVIDIA RTX 3080+
Storage
100 GB SSD
500 GB NVMe
Network
100 Mbps
1 Gbps
Software
Linux (Ubuntu 22.04 required for sandbox)
Rust 1.70+
Python 3.8+
PyTorch / Transformers
GPU Setup (Optional but Recommended)
Setup
1. Install Dependencies
2. Build Compute Node
3. Set Up Python Environment
4. Generate Wallet
5. Configure Compute Node
Create /etc/ncn/compute.env:
6. Create Systemd Service
Create /etc/systemd/system/ncn-compute.service:
7. Start Compute Node
Download Models
Manual Download
Using sync-models (Automatic)
Model Directory Structure
Operations
Monitor Compute Node
View Task Execution
Check Resource Usage
Sandbox Configuration
Sandbox Modes
strict
Full isolation
Production
permissive
Relaxed rules
Testing
disabled
No sandbox
Development only
Strict Mode Features
seccomp: Syscall filtering
Namespaces: PID, network, mount isolation
Landlock: Filesystem access control
Resource limits: CPU, memory, time
Troubleshooting Sandbox
Earnings
Fee Distribution
For each completed inference:
80% goes to Compute Node (you)
10% goes to Gateway
5% goes to Validators
5% goes to Treasury
Track Earnings
Performance Optimization
GPU Optimization
CPU Optimization
Memory Management
Maintenance
Update Compute Node
Update Python Dependencies
Update Models
Troubleshooting
"Sandbox execution failed"
"Model not found"
Verify model path exists
Check file permissions
Ensure model is downloaded
"Gateway connection failed"
Check gateway address
Verify network connectivity
Check firewall rules
"Out of memory"
Increase MAX_MEMORY_MB
Reduce model batch size
Add more RAM/swap
Security Best Practices
Keep Sandbox Enabled
Always use
strictmode in production
Secure Private Key
Store in secure location
Use different key than personal wallet
Monitor for Anomalies
Watch for unusual resource usage
Alert on failed executions
Regular Updates
Keep system packages updated
Update models regularly
Next Steps
Monitoring - Set up monitoring
Troubleshooting - Common issues
Security - Security documentation
Last updated
