Skip to content

vixcpp/ai

Repository files navigation

Vix.AI

Vix.AI is a modern C++ AI framework for machine learning, deep learning, NLP, and computer vision — designed for native performance, modularity, and production-grade reliability.

Part of the Vix.cpp ecosystem, bringing Python-like AI workflows to high-performance C++.

📘 Documentation
🌍 vixcpp.com

Vix.AI Logo

AI at Native Speed

Most AI tools rely on Python layers and runtime overhead.

Vix.AI is designed to bring AI workloads directly into modern C++, with predictable performance and full control over memory and execution.

Key goals:

  • ⚡ Native performance
  • 🧩 Modular architecture
  • 🧠 Production-grade ML & Deep Learning
  • 🌐 Distributed AI systems
  • 🛠 Seamless integration with Vix.cpp

Modular Architecture

Vix.AI is composed of independent modules.

Module Description
core Tensor primitives, device abstraction, memory
ml Classical ML algorithms
nn Neural network layers and optimizers
nlp Natural language processing
vision Computer vision utilities
distributed Distributed AI training

All modules are developed as independent repositories and linked using Git submodules.

Installation

Clone the repository with all modules:

git clone --recurse-submodules https://github.com/vixcpp/ai.git
cd ai

Build the framework:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j

Run tests:

cd build
ctest --output-on-failure

Your First Vix.AI Program

Example: Linear Regression

#include <vix/ai/ml/Regression.hpp>
#include <iostream>

using namespace vix::ai::ml;

int main() {
    Mat X = { {1},{2},{3},{4},{5} };
    Vec y = {3,5,7,9,11};

    LinearRegression lr;
    lr.fit(X, y);

    Vec pred = lr.predict({{6}});
    std::cout << "Prediction for 6: " << pred[0] << "\n";
}

Example: Clustering

#include <vix/ai/ml/Clustering.hpp>
#include <iostream>

using namespace vix::ai::ml;

int main() {
    Mat data = { {1,1},{1.2,1.1},{5,5},{5.2,4.9} };

    KMeans km(2);
    km.fit(data);

    std::cout << "Centers:\n";
    for (auto &c : km.centers())
        std::cout << "  [" << c[0] << ", " << c[1] << "]\n";
}

Roadmap

Phase Focus
✅ Phase 1 Core ML algorithms
🚧 Phase 2 Neural networks
🔜 Phase 3 NLP & Vision
🌍 Phase 4 Distributed AI
💫 Phase 5 Unified AI Runtime

Part of the Vix Ecosystem

Project Description
Vix.cpp High-performance backend runtime
Vix.AI Artificial intelligence framework
Vix.ORM Modern C++ ORM
Vix.CLI Developer CLI tools

Contributing

Contributions are welcome.

If you're interested in high-performance AI systems in C++, you’ll feel at home here.

Please read the contributing guide before opening a PR.

⭐ If this project resonates with you, consider starring the repository.

License

MIT License

About

Vix.AI is the umbrella superbuild that unifies all Vix modules—core, ML, NN, NLP, vision, distributed, and CLI into one cohesive C++ AI ecosystem with shared examples and documentation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors