Skip to main content

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.3 adds dataset cards, evaluation and the first leaderboard: 10 scene text recognition models evaluated on 18 test sets, shown on the STR Leaderboard. Training comes in a later release.

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.

Load a published model

pip install "tysirai[vision]"
import torch
import tysirai

model = tysirai.load("tysirai/CRNN-STR@v1")  # from huggingface.co/tysirai, checksums checked
images = torch.randint(0, 256, (1, 3, 32, 100), dtype=torch.uint8)  # a batch of images (B, C, H, W)
print(model(images=images)["text:labels"])

The published models are listed in the collection TysirAI STR models. Each card cites the original paper and code and gives the licenses. tysirai models check NAME runs a model on its fidelity set.

Evaluate on the STR benchmark

pip install "tysirai[vision,data,text]"
tysirai data scan /path/to/your/str-datasets     # find and check your local copies
tysirai evaluate tysirai/CRNN-STR@v1 --protocol str/benchmark@v1 --device cuda

TysirAI hosts no data: the dataset cards say where each dataset comes from and under which terms (docs/data.md). A run keeps every prediction and is identified by what was evaluated (docs/evaluation.md). The results of the 10 models are on the STR Leaderboard (docs/str-results.md).

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

  1. Scene text recognition (11 specialized models, 5 VLMs, 18 datasets).
  2. Age estimation.

Contributing

See CONTRIBUTING.md. Every change is a pull request that closes one issue.

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tysirai 0.0.3
File Size Uploaded Provenance Actions
tysirai-0.0.3.tar.gz 554.7 kB With provenance Details for tysirai-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tysirai 0.0.3
File Interpreter ABI Platform Actions
tysirai-0.0.3-py3-none-any.whl Python 3 none any Details for tysirai-0.0.3-py3-none-any.whl

Total release size: 759.4 kB

Release files / tysirai-0.0.3.tar.gz

Download URL tysirai-0.0.3.tar.gz
Size 554.7 kB
Tags Source
SHA-256 checksum
How to use checksums
06b2a8ab9f27d4eb2b7d647a8da69797b771565d711417de59b2fc50b00eac8a
BLAKE2b-256 checksum
How to use checksums
24043ee0d0b4ce21b783852e61134bc4da5396f3db128341016110efa2e5bc47
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 3, 2026.

Transparency log

Release files / tysirai-0.0.3-py3-none-any.whl

Download URL tysirai-0.0.3-py3-none-any.whl
Size 204.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e151844f859abe786aaa675eb9f0398379b386274d094a77d50a856cab4e0c1
BLAKE2b-256 checksum
How to use checksums
afae8c97065f29920130e1e515e281cd8e4eafc65e1d4f2e861e6e9ecbb60af8
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 3, 2026.

Transparency log

Security for tysirai 0.0.3

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.

Select from 2 files

Attestation for tysirai-0.0.3.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 3, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page