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
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 google_cloud_mldiagnostics-0.4.0.tar.gz.
File metadata
- Download URL: google_cloud_mldiagnostics-0.4.0.tar.gz
- Upload date:
- Size: 28.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9083c55db7bacb57c5006c07166aac165e924b8a8b7413758d214fc63c47ac0c
|
|
| MD5 |
6f73a293778d1efb382aeae133e19613
|
|
| BLAKE2b-256 |
5c9229203a8aaaeed82257a7f0a17bc134522eb61e192d058a069f4ae39b6dc8
|
File details
Details for the file google_cloud_mldiagnostics-0.4.0-py3-none-any.whl.
File metadata
- Download URL: google_cloud_mldiagnostics-0.4.0-py3-none-any.whl
- Upload date:
- Size: 46.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cc07fb9c0923bb4da94c61477818f3d3bfa3bb7ec1c07a19859722314068b42
|
|
| MD5 |
0a371d02ee06daf018bf1354f911dc07
|
|
| BLAKE2b-256 |
5ce1fb199caffd3e8765173d478bf74a48c40cf550ce75909a4815a573ef6ccd
|