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
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6162194d67d2244819bedca815960a05b13f27f51b3aab87fe0bb02aeeb0fec0
|
|
| MD5 |
034bb9ae8b337f9253125bbeb26485ec
|
|
| BLAKE2b-256 |
6cdbad4a6f2210820c52dd7f4f40eed495dfe420fdff5f6fc2b6e22199b04fa9
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2ab4569e1cd8478cbdf3bf323747d7942b43b90fe3631b2bbae7b211a1c0aee
|
|
| MD5 |
8088d3f0c462a0bff1a05557daa70a07
|
|
| BLAKE2b-256 |
1dee40163563aa83280873741dac5b075fab51181cba7adcca42d3c69596dc64
|