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.

Release files for fabryka 0.2.2

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.2.2
File Size Uploaded
fabryka-0.2.2.tar.gz 1.2 MB Details

Built distribution (wheel)

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

Total release size: 1.2 MB

Release files / fabryka-0.2.2.tar.gz

Download URL fabryka-0.2.2.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e2a1bd948c05c397c9ed9be4b0d91a45f416fadf449ff4e81445dc03f1181798
BLAKE2b-256 checksum
How to use checksums
7401b1acfafe3ade91e2641c1b25abb53415f9c89b4a28934ae1fbebd14fc116
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.2.2-py3-none-any.whl

Download URL fabryka-0.2.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db67962e0c70efdc151876a3e701902e8908df5cb0dfe059c575bff75d5987a6
BLAKE2b-256 checksum
How to use checksums
65accd67f3b2370379ed9c20ce76ea95602cff5993525afd8ab03d0de40eb8f4
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

0.3.0

2 release files

This release

0.2.2 This release

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