ml-goodput-measurement
Package to monitor Goodput, Badput and other metrics of ML workloads.
Decision gist · record as of 2026-08-14
Yes, if you are running ML training on Google Cloud accelerators and need visibility into actual compute utilization. The low install friction, active maintenance, and lack of known vulnerabilities make it safe to adopt. However, verify the license status before use in proprietary contexts, and confirm that your GCP project and cluster access scopes are properly configured—setup is non-trivial.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Google Cloud project with billing enabled, Cloud Logging API enabled, and appropriate access scopes on GPU/TPU and CPU node pools.
- Low friction installation with a pure Python wheel.
- Active maintenance as of 2026-08-13 with recent releases.
License · maintenance · safety
(unclear) — License treatment is unclear; the description excerpt references Apache License 2.0, but the fact sheet shows no license_spdx or license_raw value. Verify the actual license before use in proprietary or restricted contexts.
last release 2026-08-07 (7 days) · last repo commit 2026-08-13 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 299,293 downloads/mo, #7,861 on PyPI
Alternatives
Verify before relying
pip install ml-goodput-measurement
from ml_goodput_measurement import goodput
goodput_recorder = goodput.GoodputRecorder(
job_name='my_training_run',
logger_name='goodput_my_training_run',
logging_enabled=True
)
goodput_recorder.record_job_start_time(datetime.datetime.now())- Whether the Apache License 2.0 reference in the description excerpt is the authoritative license.
- Whether the package works with non-Google cloud accelerators or only GCP TPU/GPU.
- Performance overhead of instrumentation on training step timing.
What it is and what it does
ML Goodput Measurement is a library for quantifying the productive time (Goodput) and idle/overhead time (Badput) of machine learning training jobs running on cloud accelerators. It provides a GoodputRecorder to instrument your training code with timestamps for job start/end, individual training steps, device initialization, data loading, and training preparation. The recorded data is sent to Google Cloud Logging, where a separate GoodputCalculator can analyze it to compute overall productivity metrics and breakdowns of where time is lost. A GoodputMonitor component can asynchronously query and export these metrics to TensorBoard for real-time visibility.
The package is designed to work with Google Cloud accelerators and requires a GCP project with Cloud Logging enabled and appropriate access scopes. It depends on google-cloud-logging, google-cloud-monitoring, numpy, scipy, requests, and related libraries. The typical workflow is to instrument your training application with recorder calls, let it run, then run a separate analysis program to compute Goodput and understand where compute resources are underutilized.
Use it for
- Identify bottlenecks in ML training pipelines by measuring productive computation versus data loading and overhead.
- Monitor training job efficiency in real-time via TensorBoard exports to catch performance regressions early.
- Analyze step-time deviation across distributed training to detect stragglers or synchronization issues.
- Quantify the impact of system changes on actual training productivity rather than just wall-clock time.
- Debug why a training job is slower than expected by breaking down time spent in initialization and preparation.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are running ML training on Google Cloud accelerators and need visibility into actual compute utilization.
The low install friction, active maintenance, and lack of known vulnerabilities make it safe to adopt. However, verify the license status before use in proprietary contexts, and confirm that your GCP project and cluster access scopes are properly configured—setup is non-trivial.
Install
ml-goodput-measurement on PyPI
Before you install
Low friction installation with a pure Python wheel. Active maintenance as of 2026-08-13 with recent releases. Requires 8 runtime dependencies including google-cloud-logging, google-cloud-monitoring, numpy, scipy, and requests—all widely used packages.
Requires a Google Cloud project with billing enabled, Cloud Logging API enabled, and appropriate access scopes on GPU/TPU and CPU node pools.
License in practice
License treatment is unclear; the description excerpt references Apache License 2.0, but the fact sheet shows no license_spdx or license_raw value. Verify the actual license before use in proprietary or restricted contexts.
Quickstart
pip install ml-goodput-measurement
from ml_goodput_measurement import goodput
goodput_recorder = goodput.GoodputRecorder(
job_name='my_training_run',
logger_name='goodput_my_training_run',
logging_enabled=True
)
goodput_recorder.record_job_start_time(datetime.datetime.now())
Verify before relying
- Whether the Apache License 2.0 reference in the description excerpt is the authoritative license.
- Whether the package works with non-Google cloud accelerators or only GCP TPU/GPU.
- Performance overhead of instrumentation on training step timing.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 8 packagesgoogle-api-coregoogle-cloud-logginggoogle-cloud-monitoringnumpyrequestsscipytensorboardxurllib3 |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 299,293 / month, #7,861 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: ml_goodput_measurement-0.2.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ML training job monitoring”
- ml-goodput-measurementMeasures and monitors the productive utilization (Goodput) and idle…
- dora-searchDora is an experiment launching and management tool for machine…
- kfpKubeflow Pipelines is a Python SDK for defining, deploying, and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also google-cloud-mldiagnostics · cloud-accelerator-diagnostics · azureml-pipeline · comet-ml · wandb · sagemaker-experiments · visualdl · slurm-usage · pathwaysutils · aim