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.2 adds hosts, model cards and the first published models: 10 scene text recognition models that load by name. Evaluation, datasets 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.

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.

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

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.2
File Size Uploaded Provenance Actions
tysirai-0.0.2.tar.gz 493.3 kB With provenance Details for tysirai-0.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 641.5 kB

Release files / tysirai-0.0.2.tar.gz

Download URL tysirai-0.0.2.tar.gz
Size 493.3 kB
Tags Source
SHA-256 checksum
How to use checksums
559e51d141d38076ec89f75f84b81b925d6467512edaa1472def259217c54b04
BLAKE2b-256 checksum
How to use checksums
9d9a5c02ac3c23674d94278fdc8c3013c996af680d9e0a63e7427240877507b5
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.2-py3-none-any.whl

Download URL tysirai-0.0.2-py3-none-any.whl
Size 148.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8672c2377e1b1b0e63615bf474ab6cbb8aa058fa4d72ab7692bba00f418aee76
BLAKE2b-256 checksum
How to use checksums
12b402bcc8f9732175d6e777fbb2276dbe863e0e60e6ad47b49ac580638358ba
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.2

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