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.2.0"
pip install "arti-fit[qwen,serve]==3.2.0"  # language recipes and optional ASGI serving
pip install "arti-fit[jax,flax]==3.2.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.

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.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 arti-fit 3.2.0
File Size Uploaded Provenance
arti_fit-3.2.0.tar.gz 2.1 MB With provenance Details

Built distribution (wheel)

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

Total release size: 3.2 MB

Release files / arti_fit-3.2.0.tar.gz

Download URL arti_fit-3.2.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f0df9f045185911dbccb92d2a31a2f1cabb424913bfcaab231697e60a24091c7
BLAKE2b-256 checksum
How to use checksums
8f9e1e0ce18f425f99ca4168cd2bcd0ba7ca46298cfeac469feed48a18a1dd4c
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 10, 2026.

Transparency log

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

Download URL arti_fit-3.2.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1df990a20a1f971919e76d319356792cba078f1edd69f44db28e2aacfaee4ee7
BLAKE2b-256 checksum
How to use checksums
59c18643c27fa5dcaceb916db0244019bbc841ec5f5070fdd2fedd3481c0b04d
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 10, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for arti_fit-3.2.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 10, 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.2.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