entropy-flux/TorchSystem
57.6
Adequate · 9 November 2026
2k
lines of production code
Python
primary language
7
measurements over time
What this system is
TorchSystem is a Python library that provides a domain-driven, event-driven architecture for building and compiling PyTorch neural networks. It introduces a Compiler pipeline for model construction, a registry for metadata and serialization, and service components like Publisher/Subscriber and Producer/Consumer for decoupled logic. The system supports dependency injection and lifecycle management to facilitate complex training workflows and distributed scenarios.
Features
Added MNIST and CIFAR-10 example applications
Added new example applications for training a Multi-Layer Perceptron on MNIST and a Vision Transformer on CIFAR-10. These examples demonstrate the framework's training loop, model compilation, and checkpointing capabilities using PyTorch.
examples, examples/mnist-mlp · high confidence
Introduce TorchSystem library with Compiler and dependency injection
The torchsystem package is introduced, providing a new domain model for building and compiling neural network aggregates. The library includes a Compiler class that manages a pipeline of functions to build and compile models, supporting dependency injection via a Provider mechanism. This allows for late binding and runtime behavior changes, facilitating complex initialization and distributed training scenarios.
torchsystem · high confidence
Introduce TorchSystem registry for capturing and accessing model metadata
The torchsystem/registry module has been introduced to provide a centralized way to register PyTorch modules and capture their initialization arguments. This new feature allows users to decorate classes with @register to automatically store the arguments passed to \_\init\\_, as well as retrieve metadata such as the model's name, arguments, and a deterministic hash. The registry provides accessor functions (getname, getarguments, gethash, getmetadata) to query these stored properties, enabling easier model introspection and serialization workflows.
torchsystem/registry · high confidence
Introduce domain-layer abstractions for aggregates and events
Added new files to the \torchsystem.domain\ package: \aggregate.py\ and \events.py\. The \Aggregate\ class provides a base for managing neural network components (models, optimizers, etc.) as a unified unit with lifecycle hooks (\onphase\, \epoch\) and phase management. The \Events\ class introduces a domain event system that allows enqueuing and committing domain events or exceptions, dispatching them to registered handlers. These changes establish the foundational domain logic for the library.
torchsystem/domain · high confidence
Introduce service architecture components: Service, Subscriber, Publisher, Consumer, and Producer
The \torchsystem.services\ package now exposes a new set of architectural building blocks for building domain-driven and event-driven applications. Users can create stateless business logic via the \Service\ class, which maps action names to handler functions with dependency injection. For messaging, the library provides a \Subscriber\ and \Publisher\ for topic-based pub/sub communication, as well as a \Consumer\ and \Producer\ for event-based processing. These components support runtime dependency overrides and automatic injection of dependencies, enabling flexible and testable service implementations.
torchsystem/services · high confidence
Introduces modular training and evaluation pipeline for CIFAR-ViT example
The CIFAR-ViT example now features a structured training and evaluation workflow. A new \Classifier\ class encapsulates the model, criterion, optimizer, and metrics. The \training\ module defines handlers for training and evaluation loops that dispatch events. A \compilation\ module manages model setup, device placement, and weight restoration. Additionally, \persistence\ handles saving model weights and logging metrics, while \metrics\ tracks loss and accuracy.
examples/cifar-vit · high confidence
Test coverage
Added comprehensive test coverage for core system components; Added tests for the torchsystem registry module.
Dependencies
Update project dependencies and lockfile
The project's dependency graph has been updated via a new \poetry.lock\ file and an updated \pyproject.toml\. This includes adding \babel\ 2.16.0, \certifi\ 2024.12.14, \charset-normalizer\ 3.4.1, \click\ 8.1.8, \colorama\ 0.4.6, \ghp-import\ 2.1.0, and \griffe\ 1.5.5 to the documentation and test groups. The \pyproject.toml\ also specifies Python ^3.12 and updates test and documentation dependencies such as \pytest\, \mypy\, \mkdocs\, and \mkdocstrings\.
(dependencies) · medium confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 59 → 58 (-1.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 99 → 99 (-0.2)
- Maturity 46 → 46 (+0.0)
- Readiness 58 → 58 (+0.0)
- Security 68 → 59 (-8.9)
Findings
- No change — the same findings as the prior survey.
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
entropy-flux/TorchSystem was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit a18e54d512d392ca8a2e6fffd12d5af35125117f — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-bb0cb800cd0f.