TysirAI
One framework from research to deployment. TysirAI loads the major datasets of a field in a uniform way, runs old and new models (including vision-language models) under one protocol, trains new methods with little code, and reports results that are traceable to their predictions.
Status: early development. v0.0.1 provides the graph format, validation, the reference executor and local save and load. Models, datasets, hosts and training come in the next releases.
Install
pip install tysirai
tysirai --version
From source (for development, or before a release is on PyPI):
git clone https://github.com/tysirai/tysirai
cd tysirai
pip install .
With uv, run uv sync instead, and prefix the commands below with uv run (for example
uv run tysirai --version), or activate .venv first.
Python 3.11 or newer and PyTorch 2.4 or newer.
Quickstart
A model is a graph of nodes declared in JSON or YAML:
{
"schema": "graph/1",
"inputs": {"x": "features"},
"nodes": {
"proj": {"type": "torch.nn.Linear", "args": {"in_features": 16, "out_features": 8}, "inputs": {"x": "x"}},
"act": {"type": "torch.nn.ReLU", "inputs": {"x": "proj:out"}},
"head": {"type": "cls.LinearHead@1", "args": {"in_features": 8, "num_classes": 3},
"inputs": {"features": "act:out"}}
},
"outputs": {"cls:probs": "head:probs", "cls:label": "head:label"}
}
tysirai validate classifier.json # no weights loaded; errors name the node and the field
tysirai describe classifier.json # public inputs, outputs and parameters
tysirai render classifier.json -f mermaid
import torch
from tysirai.core.model import GraphModel
model = GraphModel("classifier.json")
out = model(x=torch.randn(4, 16))
model.save_pretrained("my-classifier") # config.json, model.safetensors, tysirai.json
same = GraphModel.from_pretrained("my-classifier")
More in docs/quickstart.md and docs/graph-format.md.
What it will do
- One graph for every model. A model is a typed graph of modules, declared in JSON. The same graph is trained, evaluated, attached inside larger stacks, and later served.
- End-to-end stacks. Published components (a detector, an aligner, an age model, a VLM) are attached into one system, with per-component error attribution.
- Protocols as configuration. Splits, preprocessing, metrics and post-processing are versioned files saved with every result.
- Catalogs, not hosted data. Dataset and model cards describe where data and weights come from; a local scanner checks your own copy.
- Leaderboards built from predictions. Every row is a model of our organization, run by us, with its predictions and uncertainty; snapshots are citable.
- Old and new methods together. Classical methods (LBP, SVM), deep models in PyTorch, JAX or ONNX, and VLMs under the same protocol.
First domains
- Scene text recognition (11 specialized models, 5 VLMs, 18 datasets).
- Age estimation.
Contributing
See CONTRIBUTING.md. Every change is a pull request that closes one issue.
Links
- Hugging Face: huggingface.co/tysirai
- Website: tysirai.com
License
TysirAI is released under the Apache License 2.0. Models and datasets referenced by the framework keep their own licenses, which are recorded in their cards.
Metadata
Release files for tysirai 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tysirai-0.0.1.tar.gz | 46.1 kB | With provenance | Details for tysirai-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tysirai-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for tysirai-0.0.1-py3-none-any.whl |
Total release size: 113.9 kB
Release files / tysirai-0.0.1.tar.gz
| Download URL | tysirai-0.0.1.tar.gz |
|---|---|
| Size | 46.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3082a55e27ac87a9c2960e8d851bcf36124be06afaa785aed1c28586b1a60c76
|
|
BLAKE2b-256 checksum How to use checksums |
b5fa93bfa3b4b44cc6f9aa0f467c17e470311af63e6eea75d2acb264e2269563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / tysirai-0.0.1-py3-none-any.whl
| Download URL | tysirai-0.0.1-py3-none-any.whl |
|---|---|
| Size | 67.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73731d0db8d668ee8722acc17936f970781606763ccfa6099fa217d9ee1f89e4
|
|
BLAKE2b-256 checksum How to use checksums |
04e073abe34bfd8c6633af8ba9ca08b8806f10475663469c8bb9fc55d0c66122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for tysirai 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tysirai-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.