Skip to main content

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.

Python 3.10+ License: Apache 2.0


โšก 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omniai_framework-0.1.0-py3-none-any.whl (47.3 kB view details)

Uploaded Python 3

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

Hashes for omniai_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a97ac76feef948a98170c7fe8c1521e1d1500fda133d4e8a134c3df6efd085d2
MD5 5bbe1bf81f169e3f6ce90396df4c8923
BLAKE2b-256 3c8799035ec36f5aba7af9deb9e865d143ca6516d7adcb5d7799bc1b9d94b3c8

See more details on using hashes here.

File details

Details for the file omniai_framework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for omniai_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c45edff9530f8675497e0b526b01ce7e2e98b679c676a6ffb4ee5c8e29b832e
MD5 8bd978802e3f57bce2261d0b4e0555eb
BLAKE2b-256 9fc4a3e835a5b8597dc870a94f8b54121c015225f413e9aa54f161fce23da73f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page