Skip to main content

Fabryka SDK

The official Python client for the hosted Fabryka tracking API.

pip install fabryka

The SDK sends runs, metrics, logs and artifacts to your configured Fabryka API. It does not start a dashboard, run a server, create a local database, or provision GPUs.

Configure

Create an API key in your Fabryka account and set:

export FABRYKA_API_URL=https://track.fabryka.ai
export FABRYKA_API_KEY=your_api_key

Track a run

from fabryka import run

run.init(
    project="sub150run",
    name="lfm-32m",
    experiment="architecture-ablation",
    config={"parameters": 32_793_472, "tokens": 1_000_000_000},
)

for step in range(1000):
    run.log({"train/loss": loss, "throughput/tokens_sec": tokens_per_second}, step=step)

run.log_text("checkpoint saved")
run.artifact("runs/checkpoint-step-001000.pt")
run.finish()

Events are persisted in a local spool before upload. Temporary network failures therefore do not lose metrics; pending events are retried by the client. Set FABRYKA_SPOOL_DIR to choose a different spool location.

The package exposes RunClient for multiple API clients or dependency injection:

from fabryka import RunClient

client = RunClient(api_url="https://track.fabryka.ai", api_key="...")
client.init(project="demo", name="run-1")
client.log({"loss": 1.2}, step=0)
client.finish()

The self-hosted API and dashboard live in the source repository, but are not included in this client distribution.

Neptune-style compatibility

Common Neptune calls can use the Fabryka adapter:

from fabryka.neptune import init_run

run = init_run(project="sub150run", api_token="...", name="baseline")
run["train/loss"].append(2.1, step=0)
run["model/parameters"] = 32_793_472
run["checkpoints/latest"].upload("runs/latest.pt")
run.stop()

The adapter sends data to Fabryka and does not install or contact Neptune.

Release files for fabryka 0.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 fabryka 0.3.0
File Size Uploaded
fabryka-0.3.0.tar.gz 1.2 MB Details

Built distribution (wheel)

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

Total release size:1.2 MB

Release files / fabryka-0.3.0.tar.gz

Download URL fabryka-0.3.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
758ab40eae7cc16743dc4ddb7b232493d326a1c9617c062bc71170ed5382d01e
BLAKE2b-256 checksum
How to use checksums
c60326dfab94faaf5a43290d3a6949f624da0f28953f604a42e0321c0ba345c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / fabryka-0.3.0-py3-none-any.whl

Download URL fabryka-0.3.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4588ff025dc54b3a68e3b88a9e038b1b36e196f4389fe4cd8756069cd2f09ef5
BLAKE2b-256 checksum
How to use checksums
8a9722afed7272a213345ce31120259817da354e4d9c613b995adea00e36a4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.2

2 release files

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