OrcaAI is a production-oriented AI platform scaffold for model training, inference, retrieval-augmented generation, multi-tenant API delivery, and internal system intelligence. This repository is structured to support a practical path from experimentation to deployment while keeping model, service, and infrastructure concerns separated.
- Training pipeline modules for LoRA and full fine-tuning
- Inference routing for vLLM and llama.cpp style backends
- FastAPI application entrypoints for chat, analysis, and code generation
- Internal intelligence orchestration for cloud operations, security, GITORC, drones, surveillance, and storage
- Retrieval components for document search and prompt augmentation
- Service modules for HPC, cloud, research, and operations workflows
- Config-driven layout for model, inference, training, and tenant settings
orcaai/
├── config/ Runtime and deployment configuration
├── data/ Raw, processed, and instruction datasets
├── docs/ Architecture, API, training, and deployment docs
├── models/ Base models, adapters, and checkpoints
├── src/ Python package source and CLI scripts
├── storage/ Vector store and document storage for RAG
└── tests/ API, training, and inference tests
- Create a virtual environment.
- Install dependencies from
requirements.txt. - Copy
.env.exampleto.envand adjust settings. - Review the YAML files in
config/. - Launch the API with
uvicorn src.orcaai.api.main:app --reloadfrom the project root, or run the scripts insrc/scripts/.
For the full local training and transformers-based inference toolchain, also install requirements-ml.txt.
The scaffold now uses real Hugging Face integrations for local model loading, tokenization, text generation, and fine-tuning:
transformerspowers model loading, tokenization, and text generation fallback.peftpowers LoRA adapter attachment and saving.datasetsprovides in-memory training datasets from JSONL instruction data.vllmandllama-cpp-pythonare supported as optional inference extras.
The default config points to sshleifer/tiny-gpt2 so the project can be exercised with a small model before moving to larger checkpoints.
Use Docker for API packaging and local deployment:
docker compose up --buildThe container image installs the base runtime dependencies and starts the FastAPI application on port 8000.
To build an image with the optional ML stack, set INSTALL_ML=true in docker-compose.yml or build with --build-arg INSTALL_ML=true.
- Put raw assets in
data/raw/. - Build normalized datasets with
src/scripts/prepare_data.py. - Train adapters with
src/scripts/train_lora.py. - Run local inference with
src/scripts/run_inference.py. - Deploy the API using
src/scripts/deploy_api.py.
OrcaAI can now act as an internal system intelligence layer for OrcaStack. The current implementation includes:
- cross-domain signal detection for cloud, security, GITORC, drone, and storage telemetry
- automation action planning for remediation, scaling, incident response, and drone operations
- predictive risk generation for outages, breaches, deployment instability, mission failure, and data integrity events
- API endpoints for internal evaluation and capability discovery
Use POST /system/intelligence to submit operational snapshots and receive a structured response with signals, recommended actions, and predictions.
Live operational collection and workflow dispatch are also supported:
config/connectors.yamldefines OpenStack, Ceph, Kubernetes, Prometheus, Loki, GITORC, and drone control connectors.config/system_models.yamldefines trainable anomaly and predictive model profiles.src/scripts/train_system_models.pycan build anomaly baselines from historical telemetry.POST /system/intelligenceacceptscollect_live,execute_actions, anddry_runflags.
OrcaAI now exposes a control-room style operations dashboard at /ops.
It provides:
- auto-scanned platform availability for OpenStack, Slurm, Warewulf, Ceph, OpenHPC, database services, and automation workflows
- a live operational summary built from discovered platforms and collected telemetry
- active signals, action recommendations, predictive risks, and automation execution logs
Supporting APIs:
GET /system/intelligence/platformsGET /system/intelligence/dashboard-stateGET /ops
- Architecture overview:
docs/architecture/overview.md - API guide:
docs/api/overview.md - Training workflow:
docs/training/overview.md - Deployment guide:
docs/deployment/overview.md
This scaffold is intentionally lightweight. It provides clear module boundaries, baseline implementations, sample configuration, and tests so the repository can be extended into a full production system.