Sovereign AI Stack

The Sovereign AI Stack is a collection of Rust crates for building ML and GenAI systems from first principles.

Architecture

┌──────────────────────────────────────────────────────────────────┐
│                   batuta (Orchestration)                         │
│              Privacy Tiers · CLI · Stack Coordination            │
├───────────────────┬──────────────────┬───────────────────────────┤
│  realizar         │  entrenar        │      pacha                │
│  (Inference)      │  (Training)      │   (Model Registry)        │
│  GGUF/SafeTensors │  autograd/LoRA   │  Sign/Encrypt/Lineage     │
├───────────────────┴──────────────────┴───────────────────────────┤
│                    aprender                                       │
│         ML Algorithms: regression, trees, clustering              │
├──────────────────────────────────────────────────────────────────┤
│                     trueno                                        │
│         SIMD/GPU Compute (AVX2/AVX-512/NEON, wgpu)               │
├──────────────────────────────────────────────────────────────────┤
│  trueno-rag      │ trueno-db       │ alimentar     │ pmat        │
│  BM25 + Vector   │ GPU Analytics   │ Arrow/Parquet │ Quality     │
└──────────────────┴─────────────────┴───────────────┴─────────────┘

Component Reference

ComponentPurposeCourse Usage
truenoSIMD tensor operationsFeature computation, embeddings
aprenderML algorithmsModel training
realizarInference servingModel deployment
entrenarLoRA/QLoRA trainingFine-tuning
pachaModel registrySigning, encryption
batutaOrchestrationPipeline coordination
trueno-ragRAG pipelineRetrieval + generation
alimentarData loadingParquet, chunking
pmatQuality gatesTDG scoring

Installation

# Install from crates.io
cargo install batuta realizar pmat

# Or add to Cargo.toml
[dependencies]
trueno = "0.11"
aprender = "0.24"
realizar = "0.5"
pacha = "0.2"
batuta = "0.4"
alimentar = "0.2"
pmat = "2.213"

Privacy Tiers

The Sovereign AI Stack supports three privacy tiers:

TierDescriptionData Location
SovereignAir-gapped, on-premisesNever leaves local infrastructure
PrivateCloud but encryptedYour cloud account, E2E encrypted
StandardManaged servicesThird-party APIs allowed

Configure in batuta.toml:

[privacy]
tier = "sovereign"  # or "private", "standard"
allowed_endpoints = ["localhost", "*.internal.corp"]