Skip to content
docs.
WORKSPACE

Your documentation

Explore the project catalog
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компоненты✓Userlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компонентыZorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Catalog

Adaptive Core Network is a modular monolith for versioned, reversible and traceable neural training workflows. The current platform is a local research system targeted at a single workstation with Python 3.12, PyTorch, FastAPI, PostgreSQL-compatible repositories, Docker Compose services and a React dashboard.

ACN currently supports:

  • PyTorch trainer core with checkpointing, mixed precision, optimizers and schedulers;
  • local artifact lifecycle with checksum-validated checkpoint save/load;
  • Git-like training versioning with commits, branches, rollback and commit graph records;
  • Citadel safety checks for critical actions;
  • rule-based adaptive controller as the stable local decision path;
  • experimental neural controller with rule-based fallback;
  • continual-learning abstractions, replay buffer and forgetting/retention metrics;
  • synchronous orchestration for Stage 1 local execution;
  • real Fashion-MNIST vertical slice with checkpoint restoration and dashboard telemetry;
  • React dashboard with REST snapshot plus SSE/WebSocket update contracts;
  • presentation-first live visual demo for airplane-vs-ship adaptive training.

Run the API and frontend:

Окно терминала
make api
make web

Open the frontend and choose Live Demo:

http://localhost:5173

Press Start.

The demo shows a small CNN learning a visually understandable airplane-vs-ship task. During the run it displays live loss/accuracy/LR charts, validation image predictions, checkpoint timeline, adaptive event feed, rollback count, current branch/checkpoint and GPU memory if CUDA is available.

Use AUTO for fully automatic rollback. Toggle to MANUAL to pause before critical rollback and approve or reject the controller action. After training, upload an image in the final inference panel to run prediction against the current model checkpoint.

The guided presentation script is in docs/28_guided_demo_script.md. The post-training inference showcase is documented in docs/29_inference_showcase.md.

For a full infrastructure-backed demo, use Docker Compose:

Окно терминала
cp .env.example .env
make compose-up

Then open:

With ACN_RUNTIME_STACK_ENABLED=true, the live demo persists commits, checkpoints, decisions and rollback events to PostgreSQL, stores checkpoint artifacts in MinIO and logs metrics/artifacts to MLflow. See docs/27_runtime_stack.md.

The current visual demo intentionally uses a fixed quick-run preset:

  • dataset: generated labeled airplane-vs-ship images;
  • model: small CNN suitable for RTX 3060 laptop demos;
  • adaptive scenario: intentional learning-rate spike, degradation detection, rollback and recovery.

For custom datasets, the expected intake model is class-folder labeling:

dataset/
train/
ship/*.png
airplane/*.png
val/
ship/*.png
airplane/*.png

The UI now shows this flow as Experiment setup. Full custom dataset upload/model selection is not wired as a production workflow yet; the demo preset exists to make the adaptive loop reliable and visually understandable for a 5-minute presentation.

  • Python 3.12
  • Node.js 20+
  • Docker Compose v2
  • Optional CUDA-capable PyTorch environment for GPU runs

On Debian or Ubuntu, install python3.12-venv if python3.12 -m venv is unavailable.

Окно терминала
cp .env.example .env
python3.12 -m venv .venv
source .venv/bin/activate
make install

Run quality gates:

Окно терминала
make lint
make type-check
make test

Run the first real end-to-end adaptive continual-learning milestone:

Окно терминала
make real-vertical-slice

This runs:

  1. Fashion-MNIST baseline training.
  2. Checkpoint artifact save.
  3. Version commit on main.
  4. Intentional degraded stage with learning-rate spike and corrupted samples.
  5. Real metric evaluation.
  6. Rule-based degradation detection.
  7. Citadel-protected rollback.
  8. Real checkpoint restoration.
  9. Continued recovery training.
  10. Dashboard telemetry/report generation.

Default outputs are written to:

experiments/acn-real-fashion-mnist-rollback/

Important generated files:

  • dashboard_snapshot.json
  • metrics.json
  • rollback_events.json
  • report.md
  • rollback_report.md
  • validation_plot.svg
  • forgetting_plot.svg
  • adaptation_plot.svg
  • experiment.db
  • artifacts/checkpoints/...

After running make real-vertical-slice, expose that telemetry through the API:

Окно терминала
export ACN_DASHBOARD_TELEMETRY_PATH=experiments/acn-real-fashion-mnist-rollback/dashboard_snapshot.json
make api

In another terminal:

Окно терминала
make web

Open:

If the frontend cannot reach the API, set:

Окно терминала
export VITE_API_BASE_URL=http://localhost:8000

from inside apps/web before running npm run dev, or keep the default local setup. The API allows local Vite origins such as http://localhost:5173 and http://localhost:5176 through ACN_CORS_ALLOW_ORIGIN_REGEX.

Start local infrastructure and app services:

Окно терминала
make compose-up

Endpoints:

Stop:

Окно терминала
make compose-down

Trainer example:

Окно терминала
make train-fashion-mnist

Rule-based controller simulation:

Окно терминала
make simulate-controller

Citadel simulation:

Окно терминала
make simulate-citadel

Continual-learning scenario demo:

Окно терминала
make demo-continual-fashion

Synchronous orchestration lifecycle example:

Окно терминала
make demo-orchestration

Synthetic deterministic E2E utility:

Окно терминала
make e2e-experiment

Synthetic research benchmark utility:

Окно терминала
make research-benchmark

Presentation demo mode:

Окно терминала
make demo-mode
  • acn.training must not import API/UI/orchestration managers.
  • acn.orchestration coordinates domains and must not own PyTorch training implementation.
  • acn.versioning owns commits, branches and checkpoint metadata only.
  • acn.artifacts owns checkpoint artifact persistence.
  • acn.experiments.real_vertical is a milestone script that composes core modules.
  • acn.experiments.e2e and acn.experiments.research are synthetic utilities, not empirical ML benchmarks.
  • acn.controller.neural is experimental until trained and calibrated on real policy data.

Architecture guardrails live in tests/architecture/test_architecture_guardrails.py.

Quality gates:

Окно терминала
make lint
make type-check
make test
make coverage

Python uses Ruff, Black and strict MyPy. Frontend uses TypeScript, Tailwind, React Flow and Recharts. Generated datasets, checkpoints, experiment outputs, coverage reports and local databases are ignored by git.

Source