A unified, modular framework for building, training, and deploying all AI/ML/LLM architectures.
Project description
๐ง OmniAI
A unified, modular framework for building, training, and deploying ALL AI/ML/LLM architectures.
โก Quick Start
from omniai import Model, Config, Trainer, registry
# Config-driven model creation
config = Config.from_yaml("configs/llama_7b.yaml")
model = Model.build(config)
# Or programmatic
model = Model.build(
arch="transformer.llama",
hidden_size=4096,
num_layers=32,
)
# Unified training
trainer = Trainer(model=model, train_data=loader, optimizer="adamw")
trainer.fit(epochs=3)
# Inference & export
output = model.predict(input_data)
model.export("onnx", path="model.onnx")
๐ฆ Installation
# Core (NumPy only, classical ML)
pip install omniai
# With PyTorch (deep learning, transformers, LLMs)
pip install omniai[torch]
# Specific domains
pip install omniai[llm] # LLM tools + transformers + tokenizers
pip install omniai[diffusion] # Diffusion models
pip install omniai[rl] # Reinforcement learning
pip install omniai[quantum] # Quantum ML
pip install omniai[classical] # scikit-learn, XGBoost, LightGBM
# Everything
pip install omniai[all]
๐๏ธ Architecture
omniai/
โโโ core/ # Base classes, config, registry, callbacks
โโโ backends/ # PyTorch, JAX, TF, NumPy abstraction
โโโ classical/ # SVM, trees, clustering, Bayesian
โโโ deep/ # MLP, CNN, RNN, autoencoders
โโโ transformers/ # BERT, GPT, LLaMA, Mamba, ViT, ...
โโโ llm/ # Tokenizers, generation, serving
โโโ diffusion/ # DDPM, Stable Diffusion, DiT, ...
โโโ gan/ # StyleGAN, CycleGAN, normalizing flows
โโโ rl/ # DQN, PPO, SAC, RLHF, DPO
โโโ graph/ # GCN, GAT, GraphSAGE, equivariant GNNs
โโโ thermodynamic/ # Thermodynamic computing, equilibrium prop
โโโ quantum/ # VQE, QAOA, tensor networks
โโโ neuromorphic/ # Spiking NNs, reservoir computing
โโโ evolutionary/ # NAS, genetic algorithms, CMA-ES
โโโ memory/ # NTM, DNC, Hopfield networks
โโโ energy/ # RBM, DBN, contrastive learning
โโโ neurosymbolic/ # Neural theorem provers, concept bottleneck
โโโ metalearning/ # MAML, ProtoNet, hypernetworks
โโโ continual/ # EWC, progressive networks
โโโ selfsupervised/ # MLM, MAE, JEPA, BYOL
โโโ multimodal/ # CLIP, text-to-image/video/audio
โโโ agents/ # ReAct, CoT, tool-using agents
โโโ optimization/ # AdamW, Lion, Sophia, schedulers
โโโ distributed/ # DDP, FSDP, DeepSpeed
โโโ compression/ # Pruning, quantization, LoRA/PEFT
โโโ data/ # Multi-modal data pipelines
โโโ evaluation/ # BLEU, FID, mAP, perplexity
โโโ serving/ # REST API, ONNX, vLLM-style inference
โโโ safety/ # Guardrails, RLHF, bias detection
๐ Key Features
| Feature | Description |
|---|---|
| Unified API | Consistent .build(), .train(), .predict(), .export() across all architectures |
| Backend-agnostic | Write once, run on PyTorch, JAX, TensorFlow, or NumPy |
| Hardware-aware | Auto-detects CPU, CUDA, ROCm, Apple MPS, TPU |
| Config-driven | YAML/JSON/dataclass configs with inheritance and validation |
| Model Registry | Global registry with @register decorator, search, categories |
| Callbacks | EarlyStopping, ModelCheckpoint, LR monitoring, custom hooks |
| Production-ready | Type hints, comprehensive error messages, logging, checkpointing |
๐งช Running Tests
pip install omniai[dev]
pytest tests/ -v
๐ Examples
python examples/quickstart.py
๐ License
Apache 2.0 โ see LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
omniai_framework-0.1.0.tar.gz
(40.9 kB
view details)
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 omniai_framework-0.1.0.tar.gz.
File metadata
- Download URL: omniai_framework-0.1.0.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a97ac76feef948a98170c7fe8c1521e1d1500fda133d4e8a134c3df6efd085d2
|
|
| MD5 |
5bbe1bf81f169e3f6ce90396df4c8923
|
|
| BLAKE2b-256 |
3c8799035ec36f5aba7af9deb9e865d143ca6516d7adcb5d7799bc1b9d94b3c8
|
File details
Details for the file omniai_framework-0.1.0-py3-none-any.whl.
File metadata
- Download URL: omniai_framework-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c45edff9530f8675497e0b526b01ce7e2e98b679c676a6ffb4ee5c8e29b832e
|
|
| MD5 |
8bd978802e3f57bce2261d0b4e0555eb
|
|
| BLAKE2b-256 |
9fc4a3e835a5b8597dc870a94f8b54121c015225f413e9aa54f161fce23da73f
|