Faultline Python SDK
Client library for Faultline Cloud — stream training metrics and checkpoints from your laptop, GPU VM, Slurm job, or Colab notebook.
pip install faultline-sdk
import os
import faultline
run = faultline.start(
"my-run",
project="demo",
api_key=os.environ["FAULTLINE_API_KEY"],
base_url=os.environ["FAULTLINE_API_URL"],
)
for step in range(100):
run.log(train_loss=0.5, step=step)
if step % 10 == 0:
run.save(step=step, model=model, optimizer=optimizer)
run.complete()
Setup
- Sign up on your Faultline dashboard and create an API key (Account page).
- Set environment variables on the machine that runs training:
export FAULTLINE_API_KEY=fl_...
export FAULTLINE_API_URL=https://your-api.example.com
Training runs locally; Faultline stores metrics and checkpoints remotely.
Optional extras
pip install "faultline-sdk[grpc]" # local Rust runtime over gRPC
pip install "faultline-sdk[psutil]" # host/GPU telemetry helpers
Note on package name
The PyPI project is faultline-sdk because the name faultline is already registered by another package. Import in Python is still:
import faultline
Metadata
Release files for faultline-sdk 0.24.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| faultline_sdk-0.24.0.tar.gz | 35.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| faultline_sdk-0.24.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.4 kB
Release files / faultline_sdk-0.24.0.tar.gz
| Download URL | faultline_sdk-0.24.0.tar.gz |
|---|---|
| Size | 35.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6162194d67d2244819bedca815960a05b13f27f51b3aab87fe0bb02aeeb0fec0
|
|
BLAKE2b-256 checksum How to use checksums |
6cdbad4a6f2210820c52dd7f4f40eed495dfe420fdff5f6fc2b6e22199b04fa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / faultline_sdk-0.24.0-py3-none-any.whl
| Download URL | faultline_sdk-0.24.0-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2ab4569e1cd8478cbdf3bf323747d7942b43b90fe3631b2bbae7b211a1c0aee
|
|
BLAKE2b-256 checksum How to use checksums |
1dee40163563aa83280873741dac5b075fab51181cba7adcca42d3c69596dc64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|