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
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.
Clone the repository with all modules:
git clone --recurse-submodules https://github.com/vixcpp/ai.git
cd aicmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -jcd build
ctest --output-on-failure#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";
}#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";
}| Phase | Focus |
|---|---|
| ✅ Phase 1 | Core ML algorithms |
| 🚧 Phase 2 | Neural networks |
| 🔜 Phase 3 | NLP & Vision |
| 🌍 Phase 4 | Distributed AI |
| 💫 Phase 5 | Unified AI Runtime |
| Project | Description |
|---|---|
| Vix.cpp | High-performance backend runtime |
| Vix.AI | Artificial intelligence framework |
| Vix.ORM | Modern C++ ORM |
| Vix.CLI | Developer CLI tools |
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.
MIT License
