Skip to main content

ML training checkpoints and recovery for Faultline Cloud (import faultline)

Project description

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

  1. Sign up on your Faultline dashboard and create an API key (Account page).
  2. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faultline_sdk-0.24.0.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

faultline_sdk-0.24.0-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file faultline_sdk-0.24.0.tar.gz.

File metadata

  • Download URL: faultline_sdk-0.24.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for faultline_sdk-0.24.0.tar.gz
Algorithm Hash digest
SHA256 6162194d67d2244819bedca815960a05b13f27f51b3aab87fe0bb02aeeb0fec0
MD5 034bb9ae8b337f9253125bbeb26485ec
BLAKE2b-256 6cdbad4a6f2210820c52dd7f4f40eed495dfe420fdff5f6fc2b6e22199b04fa9

See more details on using hashes here.

File details

Details for the file faultline_sdk-0.24.0-py3-none-any.whl.

File metadata

  • Download URL: faultline_sdk-0.24.0-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for faultline_sdk-0.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2ab4569e1cd8478cbdf3bf323747d7942b43b90fe3631b2bbae7b211a1c0aee
MD5 8088d3f0c462a0bff1a05557daa70a07
BLAKE2b-256 1dee40163563aa83280873741dac5b075fab51181cba7adcca42d3c69596dc64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page