Skip to main content

teia

A Hydra-configured deep-learning runtime. A run is three config-declared component graphs, one for data, one for the network and one for evaluation, executed by a thin Lightning engine. Components are organized by architectural constraint, and a task contract types the seams between the graphs.

Install

The package is published on PyPI as pyteia. It installs the teia command and the teia Python package:

pip install pyteia
teia --help
python -c "import teia.core"

Teia needs Python 3.11 or newer and PyTorch. To pick a PyTorch build for your hardware (CPU only, or a specific CUDA version), install it first by following https://pytorch.org/get-started/locally/, then install pyteia.

Optional component dependencies are grouped as extras named after a domain:

pip install "pyteia[vision]"    # image readers and transforms (torchvision)
pip install "pyteia[audio]"     # audio readers and spectrograms (torchaudio, soundfile)
pip install "pyteia[tabular]"   # SQL and parquet readers (sqlalchemy, pyarrow)
pip install "pyteia[all]"       # all of the above

You do not need to guess: when a configured run needs a missing package, teia stops before training and prints the exact install command.

A project that builds on teia lists pyteia in its own dependencies, for example dependencies = ["pyteia>=0.0.1"] in its pyproject.toml (teia plugin init writes this for you).

Quick start

One demo per task lives in the repository's demo/ folder and needs no dataset download:

git clone https://github.com/ptonso/teia && cd teia
pip install "pyteia[vision]"
./demo/vision-cls.sh        # scikit-learn digits as an image folder
./demo/tabular-cls.sh       # 3-class table
./demo/graph-node-cls.sh    # random graphs in the TU Dortmund format
./demo/vision-graph-node-cls.sh # the same graphs with a red or green image per node
./demo/tabular-multi-cls.sh # 3 independent labels over a table
./demo/tabular-reg.sh       # noisy linear target over a table
./demo/tabular-survival.sh  # right-censored event times in whole weeks
./demo/tabular-forecast.sh  # monthly series for three routes
./demo/vision-multi-cls.sh  # digits filed under parity and range labels
./demo/vision-sem-seg.sh    # digits with a stroke mask
./demo/audio-cls.sh         # synthetic tones as an audio folder (needs pyteia[audio])
./demo/audio-multi-cls.sh   # the same tones with pitch and duration labels
./demo/audio-wave-cls.sh    # the same tones, read as raw waveforms
./demo/vision-det.sh        # colored rectangles, boxes on a 4 x 4 grid
./demo/vision-obb.sh        # rotated rectangles as LabelMe polygons
./demo/vision-pose.sh       # rectangles with their four corners as keypoints
./demo/vision-inst-seg.sh   # ellipses with outline polygons
./demo/vision-gen.sh        # linear autoencoder on digits (needs pyteia[fid]; the FID downloads the Inception weights once)
./demo/rl-discrete.sh       # linear Q-function on CartPole (needs pyteia[rl]; the world is gym:CartPole-v1, no data)
./demo/rl-continuous-replay.sh # linear soft actor-critic on Pendulum
./demo/rl-continuous.sh     # linear PPO on Pendulum

Each script calls a small script from demo/prepare/ that writes the data under demo/data/ (the reinforcement-learning demo needs none, its world is a registered environment id), then runs teia train task=<task>. Teia ships a linear_probe netmodule per task, a one-layer network that checks the data and the contract and is not meant to perform. You write the netmodule that does, in your project. Extra arguments are forwarded to teia train.

CLI:

  • teia config init|list|show|tree|explain|lint
  • teia init
  • teia train, teia test, teia eval, teia infer, teia export
  • teia plugin init, teia plugin check: scaffold a project as a teia plugin and verify it (specs/plugin)

A task is a contract over what the graphs exchange (teia.task.*). A task preset selects a datamodule, a linear probe and an evalmodule. You can also wire the three modules yourself:

teia train \
  datamodule=tabular-cls/csv \
  netmodule=tabular-cls/linear_probe \
  evalmodule=cls/default \
  data_root=...

Docs

License

Apache License 2.0, see LICENSE.

Metadata

Release files for pyteia 0.2.0

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

Source distribution (sdist)

Source distribution for pyteia 0.2.0
File Size Uploaded Provenance Actions
pyteia-0.2.0.tar.gz 473.5 kB Without provenance Details for pyteia-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / pyteia-0.2.0.tar.gz

Download URL pyteia-0.2.0.tar.gz
Size 473.5 kB
Tags Source
SHA-256 checksum
How to use checksums
492c1005c6a60f4ca677a441adf533c8d64c1a4b1a956c837260c184d818cf36
BLAKE2b-256 checksum
How to use checksums
b88be1b59081d7d9d1706ffe56d5f65808a05fe5690d6e88d266795636189e2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / pyteia-0.2.0-py3-none-any.whl

Download URL pyteia-0.2.0-py3-none-any.whl
Size 562.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f787363f7948d93ff74fe621c6a0505280a543b959dd0ac00355261f1adb08f
BLAKE2b-256 checksum
How to use checksums
f6e8e920be0b01dedae856ad4244bc39ca98c853f99e290e7e9e840aa08d2d32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for pyteia 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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