Coflect
Agentic Deep Learning Framework
HITL · Human In Loop Training
Coflect is a human-in-the-loop (HITL) training framework built for fast training loops.
Core principles:
- Trainer hot path stays lightweight (small JSON events only).
- Heavy XAI runs in a separate worker process.
- Visualization and explainability should not block training.
Coflect splits responsibilities across processes:
- backend: event ingest, WebSocket broadcast, feedback storage, XAI queue
- trainer: training loop + lightweight telemetry/XAI requests
- xai worker: attribution rendering outside trainer hot path
- forecast worker: CPU-only top-k likely failure ranking
- UI: live metrics, overlays, pause/resume, ROI and text feedback
Coflect supports live human intervention with:
- text instruction parsing (deterministic parser)
- ROI-guided focus updates
- pause/resume control from the UI
- periodic and mistake-focused XAI request paths
Current release line:
- Torch: primary production path
- TensorFlow/Keras: MVP runtime path
- JAX: scaffolded path
- Trainer emits compact events only.
- Heavy operations (XAI render/forecast logic) are offloaded.
- Snapshot sync and XAI requests are asynchronous.
pip install --upgrade coflectOptional framework extras:
pip install "coflect[tensorflow]"
pip install "coflect[jax]"Python requirement: >=3.10.
git clone https://github.com/Coflect/Coflect.git
cd Coflect
python -m venv .venv
source .venv/bin/activate
pip install -e .
# optional contributor tooling:
# pip install -e .[dev]
# optional framework extras:
# pip install -e .[tensorflow]
# pip install -e .[jax]Use these notebooks for daily deep learning experiments:
- Torch:
examples/hitl/01_hitl_module_quickstart.ipynb - TensorFlow/Keras:
examples/hitl/02_hitl_tensorflow_keras_workflow.ipynb
Both notebooks include bridge-based UI integration, feedback handling, and Live/XAI wiring.
For a fast end-to-end demo:
Torch quickstart (CIFAR-10 cat-vs-dog only):
coflect-hitl-run \
--backend torch \
--dataset cifar10_catsdogs \
--data_root ./data \
--download_data \
--steps 5000 \
--xai_every 100 \
--forecast_every 20Dataset note:
- class
3(cat) -> label0 - class
5(dog) -> label1
TensorFlow/Keras MVP path:
coflect-hitl-run \
--backend tensorflow \
--steps 5000 \
--xai_every 100 \
--forecast_every 20Open UI at http://localhost:8000.
- Architecture:
docs/ARCHITECTURE.md - Support policy:
SUPPORT_MATRIX.md - Example index:
examples/README.md - HITL examples:
examples/hitl/README.md - Release playbook:
docs/RELEASE_PYPI.md - Launch checklist:
docs/LAUNCH_CHECKLIST.md
- Releases:
https://github.com/Coflect/Coflect/releases - Contributing guide:
CONTRIBUTING.md - Security policy:
SECURITY.md - Code of Conduct:
CODE_OF_CONDUCT.md
Apache-2.0 (LICENSE).