Skip to main content

ARTI

ARTI = AI x RT.

ARTI is a programmable neural runtime for PyTorch and JAX. Compose neural programs with Formula Fabric, explicit tensor resources, learned connections, local iteration and forward plasticity. Adapt an existing model or build a standalone model, then train, resume, evaluate and deploy the same asset.

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

Install

pip install "arti-fit==3.3.0"
pip install "arti-fit[qwen,serve]==3.3.0"  # language recipes and optional ASGI serving
pip install "arti-fit[jax,flax]==3.3.0"    # native JAX and optional Flax integration

Python 3.10+ is supported. PyTorch is a core dependency; model, JAX, Flax, documentation and serving integrations are optional extras.

For an unpublished candidate, install its reviewed local wheel with python -m pip install --no-index --no-deps /path/to/arti_fit-3.3.0-py3-none-any.whl in an environment whose declared dependencies are already provisioned. A candidate version string does not imply availability on PyPI.

Start An Application Task

arti task init my-task --name "my task"
cd my-task
arti task check project.json
arti task explain project.json
python workflow.py prepare
python workflow.py train
python workflow.py package
python workflow.py predict
python workflow.py evaluate
python workflow.py runtime
python workflow.py export

The generated project owns its model, native objective, preprocessing, file producer, scorers, runtime entrypoint and result writer. Project checks and status/explain inspect existing declarations and evidence without running application callbacks. The complete installed-user tutorial is also included as TUTORIAL.md in the project. It demonstrates interrupted recovery, cache reuse, committed file outputs and an offline archive consumer.

One Training Workflow

Native models, attached programs and pretrained workflows use one session:

import arti

# model is a configured native model or a host with trained ARTI parameters.
session = arti.trainer(model, objective=task_objective)
print(session.plan(steps=1000))
assert session.check(example_batch)["ok"]
result = session.fit(
    train_loader,
    steps=1000,
    run=arti.ARTITrainingRunConfig(output_dir="outputs/my-task"),
)
metrics = session.evaluate(validation_loader)

The local Torch profile saves the first update, periodic checkpoints and a final checkpoint. Continuation retains optimizer, scheduler, supported RNG/scaler state and the declared data cursor. Evaluation preserves model and ARTI state. The host's task loss is the default; tensor alignment is an explicit alternative.

Use the training guide for native, attachment and pretrained entrances, data-resume guarantees and export.

Real Task Recipes

The same lifecycle is available from JSON/TOML:

arti recipe plan recipe.toml --output plan.json
arti recipe check recipe.toml
arti recipe train recipe.toml --run-dir outputs/first
arti recipe train recipe.toml --resume-from-checkpoint outputs/first/checkpoints/step-00000200/model.arti.st --steps 40 --run-dir outputs/continued
arti recipe evaluate recipe.toml --model outputs/continued/model --split test --output outputs/test.json
arti recipe predict outputs/continued/model --data requests.jsonl --output outputs/predictions.jsonl
arti recipe serve outputs/continued/model --port 8080
  • Classification: explicit train/validation/test records, train-only preprocessing, cross-entropy, metrics and portable batched prediction without the original dataset.
  • Qwen SFT: complete conversation input, final-assistant/EOS supervision, target-token-weighted accumulation, pinned base revision, checkpoint continuation and tokenizer-bound deployment.
  • Optional FastAPI/Uvicorn serving loads the asset once per worker and exposes /predict, /chat, /health and OpenAPI. It is a local ASGI integration, not an authenticated gateway or a vLLM/TensorRT-LLM export.

Runnable repository examples:

uv sync --extra dev --extra qwen --extra serve
python examples/classification_workflow.py --output .tmp/digits-workflow
python examples/qwen_sft_workflow.py --prepare-only --output .tmp/qwen-sft

Qwen planning loads native configuration/tokenization and a meta-device model, not base weights or CUDA allocations. check deliberately performs a real gradient preflight. The recipe's fixed Formula adaptation profile is one usable composition, not a claim that all ARTI features or architecture search are enabled.

Compose Neural Programs

ARTILayer hosts a configured FederatedProgram or ProgramGraph. An empty layer is an exact identity, not an untrained adapter that pretends to know a task.

import torch
import arti

layer = arti.ARTILayer()
x = torch.randn(2, 8, 64)
assert torch.equal(layer(x), x)

# Configure the graph or federation before attaching a useful program.
layer = arti.ARTILayer(graph=graph, graph_program_id="forward",
                      graph_input_resource_id="input",
                      graph_output_resource_id="output")
model = arti.ARTI.attach(model, layer, layers="model.layers.*")
session = model.arti.trainer(objective="model_loss")

The developer guide and Formula Fabric guide cover typed operations, named ports, routes, parallel stages, joins, loops, tensor resources and compiler boundaries. Learning boundaries allow independently owned optimizer domains and region-specific objectives.

Reusable operations live in arti.mechanisms. Retired layered Recall APIs live only in arti.legacy. Component contracts use content-addressed provenance; package versions and component identities are independent.

Native JAX

arti.jax binds the same Formula/ProgramGraph declarations to native array execution, with explicit parameter and forward-state PyTrees. Use jit, grad, vmap and fixed-horizon scan; integrate custom native modules or Flax without running Torch operations in a compiled JAX invocation.

uv sync --extra dev --extra jax --extra flax
python examples/jax_native_training.py

Read the native JAX guide for supported atoms, resource state, native overrides and limitations. This is not full parity with every Torch dynamic search, custom VJP or optimizer-domain engine.

Assets And Support

ARTI uses SafeTensors and validated component/graph metadata instead of Python pickle for its model assets. Frozen host weights remain separate from adapter exports. Custom Python layers still require their reconstruction code.

Stability distinguishes supported workflow contracts from experimental component surfaces. Release checks cover software correctness, installation, documentation and privacy. They do not imply general task superiority or universal acceleration.

uv run --extra dev python scripts/quality_gate.py quick --fail-fast
uv run --extra dev --extra qwen --extra serve python scripts/quality_gate.py recipes --fail-fast

MIT licensed. Designed and maintained by Thiocy.

Metadata

Release files for arti-fit 3.3.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 arti-fit 3.3.0
File Size Uploaded Provenance
arti_fit-3.3.0.tar.gz 2.5 MB With provenance Details

Built distribution (wheel)

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

Total release size: 3.8 MB

Release files / arti_fit-3.3.0.tar.gz

Download URL arti_fit-3.3.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
a769f82bcbc0d1b1b9d4460dc35f5e6686abc24325225c4af2126ea54474ec5b
BLAKE2b-256 checksum
How to use checksums
7f306fab1d02537d5c62b91694562ef9c682fb50b045f90c9022eaaae5791984
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 Oct 11, 2026.

Transparency log

Release files / arti_fit-3.3.0-py3-none-any.whl

Download URL arti_fit-3.3.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c204e7f25a86b5a12996d2d2601d7e03901a775c04495f8d3f2c7984e134e4e3
BLAKE2b-256 checksum
How to use checksums
bcf5a74b79424c8e0041de6fac5487abf6a80ff9806a246def1eada39a2f753d
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 Oct 11, 2026.

Transparency log

Security for arti-fit 3.3.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.

Full provenance

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

Select from 2 files

Attestation for arti_fit-3.3.0.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 Oct 11, 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

3.3.0 This release

2 release files Full provenance

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