skillfed

metaflow-checkpoint

An EXPERIMENTAL checkpoint decorator for Metaflow

metaflow-checkpoint v0.2.11 96.2K downloads/30d#13,222 on PyPI
License unclear Active released

What it is and what it does

Metaflow Checkpoint is an experimental extension for Metaflow that adds three decorators—`@checkpoint`, `@model`, and `@huggingface_hub`—to simplify state management and model handling in long-running data processing and machine learning workflows. The `@checkpoint` decorator saves and restores step state, allowing jobs to resume from the last checkpoint after failures without manual intervention. The `@model` decorator provides a straightforward way to save and load models created within a flow, while `@huggingface_hub` enables efficient loading and caching of large models from Hugging Face Hub. All three decorators handle user isolation and version control in multi-user environments, preventing conflicts and ensuring reproducibility.

The package has no runtime dependencies and installs with low friction. It is actively maintained but carries an experimental label, meaning the API and behavior may still evolve. The license treatment is unclear, so users should verify licensing terms before adoption. The package is positioned for workflows where interruptions are costly—training jobs that run for hours or days, data pipelines that process large datasets, and scenarios where collaboration requires clear model and checkpoint versioning.

Use it for:

  • Resume a multi-day machine learning training job after a hardware failure or timeout without restarting from scratch.
  • Cache and version Hugging Face models across a team to avoid redundant downloads and ensure everyone uses the same model snapshot.
  • Save intermediate data checkpoints in a data processing pipeline so failed steps can retry from the last known good state.
  • Isolate checkpoints per user in a shared Metaflow environment to prevent accidental overwrites during concurrent runs.
  • Track model lineage and versions automatically as part of a Metaflow flow without manual checkpoint file management.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides decorators for Metaflow workflows to save and resume checkpoints, manage models, and load external models from Hugging Face Hub, enabling long-running jobs to recover from failures without losing progress.

Yes, if you run long-running Metaflow workflows and need checkpoint recovery and model versioning. The low install friction and active maintenance are favorable, but verify the license before use and be aware of the experimental status—test thoroughly in non-critical workflows first. Not necessary if your jobs are short-lived or you already have external checkpoint infrastructure.

Install

metaflow-checkpoint on PyPI

pip

pip install metaflow-checkpoint

uv

uv add metaflow-checkpoint

poetry

poetry add metaflow-checkpoint

Installing metaflow-checkpoint

Before you install

Low install friction with no runtime dependencies. Actively maintained with a recent release; however, marked as experimental, so stability and API surface may still be evolving.

License in practice

License treatment is unclear—no SPDX identifier or raw license text is available. Verify the actual license before adopting in proprietary or restricted environments.

Quickstart

pip install metaflow-checkpoint

from metaflow import FlowSpec, step
from metaflow_checkpoint import checkpoint

class MyFlow(FlowSpec):
    @step
    @checkpoint
    def train(self):
        # Your training code here
        pass

Requires Metaflow to be installed and configured; Python version support is unspecified.

Verify before relying

  • Exact Python version requirements and compatibility with specific Metaflow versions
  • Whether the package has a published license or if it defaults to a specific open-source license
  • API stability guarantees given the 'experimental' designation
  • Performance overhead of checkpoint operations on typical workloads

Package facts

License not declared (unclear)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 7 days since the last release
First released
Downloads 96,244/month — #13,222 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: metaflow_checkpoint-0.2.11-py2.py3-none-any.whl

Tags

metaflow checkpoint recoveryworkflow state managementmachine learning job resumptionmodel checkpointing decoratorshugging face model loadingmetaflow failure recoverydistributed workflow checkpoints
metaflow-extensioncheckpoint-recoveryml-workflow

More Distributed Computing packages

grpcio

gRPC Python is an HTTP/2-based RPC framework…

permissive · top 100 on PyPI

execnet

execnet lets you spawn and communicate with…

permissive · top 1,000 on PyPI

cloudpickle

Cloudpickle extends Python's standard pickle…

permissive · top 1,000 on PyPI

smart-open

Provides a unified, open()-compatible Python…

permissive · top 1,000 on PyPI

portalocker

Portalocker provides cross-platform file…

permissive · top 1,000 on PyPI

ray

Ray is a distributed computing framework that…

permissive · top 1,000 on PyPI

custodian

Custodian is a just-in-time job management…

permissive · top 15,000 on PyPI

orbax-checkpoint

Orbax Checkpoint provides asynchronous…

permissive · top 5,000 on PyPI

metaflow-prebuilt

Metaflow extension that pre-bakes conda and…

permissive · top 15,000 on PyPI

metaflow-torchrun

Provides a Metaflow decorator that integrates…

unclear · top 15,000 on PyPI

langgraph-checkpoint

Provides the base interface and serialization…

permissive · top 1,000 on PyPI

azure-eventhub-checkpointstoreblob

Provides a checkpoint store implementation for…

permissive · top 15,000 on PyPI

azure-eventhub-checkpointstoreblob-aio

Stores checkpoints and partition ownership for…

permissive · top 15,000 on PyPI

s3torchconnector

Provides PyTorch dataset primitives and…

permissive · top 5,000 on PyPI

outerbounds

Outerbounds is the main platform package that…

unclear · top 15,000 on PyPI

circuitbreaker

A Python decorator that implements the Circuit…

permissive · top 5,000 on PyPI