Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ARTI

A PyTorch runtime for composable tensor programs.

ARTI lets a model work with tensors through explicit, versioned components: programs, retrieval, Formula Fabric operations, resources, and bounded execution. It is useful when a model needs more than a fixed sequence of layers, while still keeping tensor contracts, component identity, and artifacts inspectable.

ARTI does not prescribe a tokenizer, model family, task head, or training loop. Applications define the meaning of their tensors; ARTI provides the program runtime around them.

Install

The PyPI distribution is arti-fit; the Python package is arti.

uv add "arti-fit==3.1.0a3"

ARTI requires Python 3.10+ and PyTorch 2.2+. Install the PyTorch build appropriate for your CPU or CUDA environment first.

Optional integrations are opt-in:

uv add "arti-fit[qwen]==3.1.0a3"
uv add "arti-fit[sd]==3.1.0a3"
uv add "arti-fit[web]==3.1.0a3"

Start With A Program Host

ARTILayer is the tensor-in/tensor-out host boundary. With no configured program it is an exact identity, making it safe to attach before selecting a program graph.

import torch
import arti

x = torch.randn(2, 16, 64)
layer = arti.ARTILayer()

assert torch.equal(layer(x), x)
assert arti.component_ref(layer) == arti.canonical_contract_reference("arti/layer@3")

For configured execution, build a FederatedProgram or a ProgramGraph from arti.mechanisms, then provide it to ARTILayer. The program owns its local iteration, Formula Fabric operations, resource bindings, and traversal; the host layer preserves the ordinary tensor boundary.

Core Concepts

Concept Role
ARTILayer Host boundary for a federated program or resource graph.
FederatedProgram A composable program with sealed Query assets, local iteration, and a terminal tensor ABI.
FormulaFabricV2 Typed, bounded tensor operations and explicit operands.
ProgramGraph Program nodes, resource nodes, connections, and executable graph state.
TensorResource A logical tensor resource with an explicit lifecycle, binding, and views.
CreditBoundary Identity in the forward pass with an explicit rule for gradient flow through a connection.
OptimizerExecutionPlan Learning regions with separate AdamW state and optional region-specific losses.
fabric_layer Register a PyTorch module as a typed Fabric node or a differentiable node candidate.
Retrieve / RecallExecutor Retrieval and bounded execution helpers for standalone use.
ExecutionPolicy Limits and traces execution without changing an artifact.
Half, Fold, UnFold, Pulse Independently usable tensor layers and workspace operations.

These components are optional. A program can use only the pieces its tensor contract needs.

Attach To A Host Model

ARTI can attach a configured layer at selected tensor boundaries without rewriting the host model class.

import arti

layer = arti.ARTILayer()
model = arti.ARTI.attach(model, layer, layers="model.layers.*")

model.arti.save("adapter.arti.st")
restored = arti.ARTI.load(fresh_model, "adapter.arti.st", layer=layer)

Attachment preserves the host model type and restores tensor-tree structure, dtype, layout, and position at the boundary. See the Unified Attachment guide.

Artifacts And Component Identity

arti.save() and arti.load() use SafeTensors alongside architecture metadata and SHA-256 locks. Component identities, component contracts, and package versions are separate. This lets a saved program state declare exactly which components and tensor contracts it requires.

Named compatible Banks and program assets can be composed without silently losing source identity. Persistent resources are explicit program state rather than hidden Python side effects.

Status

ARTI 3.1.0a3 is an alpha release. ARTILayer, component identity, artifact contracts, Formula Fabric, program graphs, Federal execution, and resource operations are available for structured experimentation and integration.

Public API is not yet frozen for the alpha program/runtime surfaces. Alpha does not claim broad downstream superiority, a production service SLA, full JAX parity, or universal acceleration. Dynamic execution only becomes faster when the selected program, tensor shapes, and backend can be compiled efficiently.

The arti.legacy namespace contains retired compatibility readers for historical artifacts. New code should use arti, arti.nn, and arti.mechanisms.

Documentation

Development

uv sync --locked --extra dev
uv run --extra dev pytest
uv build

ARTI is released under the MIT License. Citation metadata is in CITATION.cff.

Metadata

Release files for arti-fit 3.1.0a3

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

Source distribution (sdist)

Source distribution for arti-fit 3.1.0a3
File Size Uploaded Provenance
arti_fit-3.1.0a3.tar.gz 2.1 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for arti-fit 3.1.0a3
File Interpreter ABI Platform
arti_fit-3.1.0a3-py3-none-any.whl Python 3 none any Details

Total release size: 3.2 MB

Release files / arti_fit-3.1.0a3.tar.gz

Download URL arti_fit-3.1.0a3.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
63af630db42330d5c5d724126f42e503a0aa4b81cd90f3dbfdce829b65ec0a13
BLAKE2b-256 checksum
How to use checksums
7da55b580150b30226b13a03b76cea50b379d691cdfd391c9a919a7e42bf3c93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Release files / arti_fit-3.1.0a3-py3-none-any.whl

Download URL arti_fit-3.1.0a3-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db5c0daeebee231208e5b20aa7528a084de0c37d9165ce7573592a80f95da444
BLAKE2b-256 checksum
How to use checksums
e638c76b141c0432b6e564062356d08512b5eed0606cd81d6cf021da84582474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 27, 2026.

Transparency log

Security for arti-fit 3.1.0a3

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for arti_fit-3.1.0a3.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 Sep 27, 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.

Release history Release notifications | RSS feed

This release
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