Skip to main content

diagnostic packages for profiling and ML experiment management

Project description

google-cloud-mldiagnostics

Overview

TBD

Supported Framework

  • jax-ml
    • any versions
  • Other in progress

How to install

Install

Install pypi package link

pip install google-cloud-mldiagnostics

This package does not install jax-ml and xprof and expected they will be installed separately.

Imports

Add important into training script

from google_cloud_mldiagnostics import machinelearning_run
from google_cloud_mldiagnostics import metrics
from google_cloud_mldiagnostics import xprof

How to use

Monitor training

At the begging of training script add next one:

from google_cloud_mldiagnostics import machinelearning_run

machinelearning_run(
  gcs_path="gs://<bucket>",
)

Monitor with ondemand profiling

from google_cloud_mldiagnostics import machinelearning_run

machinelearning_run(
  gcs_path="gs://<bucket>",
  on_demand_xprof=True
)

Monitor with profiling

from google_cloud_mldiagnostics import machinelearning_run
from google_cloud_mldiagnostics import xprof

machinelearning_run(
  gcs_path="gs://<bucket>",
)

xprof=xprof()
xprof.start()
# some code
xprof.stop()

Monitor with customer metrics

from google_cloud_mldiagnostics import machinelearning_run
from google_cloud_mldiagnostics import metrics

machinelearning_run(
  gcs_path="gs://<bucket>",
)

metrics.record("<my-metric>", <value>)

To pair metric value with current step:

metrics.record("<my-metric>", <value>, step=1)

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

google_cloud_mldiagnostics-0.4.0.tar.gz (28.6 kB view details)

Uploaded Source

Built Distribution

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

google_cloud_mldiagnostics-0.4.0-py3-none-any.whl (46.6 kB view details)

Uploaded Python 3

File details

Details for the file google_cloud_mldiagnostics-0.4.0.tar.gz.

File metadata

File hashes

Hashes for google_cloud_mldiagnostics-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9083c55db7bacb57c5006c07166aac165e924b8a8b7413758d214fc63c47ac0c
MD5 6f73a293778d1efb382aeae133e19613
BLAKE2b-256 5c9229203a8aaaeed82257a7f0a17bc134522eb61e192d058a069f4ae39b6dc8

See more details on using hashes here.

File details

Details for the file google_cloud_mldiagnostics-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_mldiagnostics-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc07fb9c0923bb4da94c61477818f3d3bfa3bb7ec1c07a19859722314068b42
MD5 0a371d02ee06daf018bf1354f911dc07
BLAKE2b-256 5ce1fb199caffd3e8765173d478bf74a48c40cf550ce75909a4815a573ef6ccd

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