Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scalar event logging function #26853

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeffcarp
Copy link

Currently there are three jax.monitoring methods for recording events:

  • record_event(event: str, **kwargs: str | int)
  • record_event_duration_secs(event: str, duration: float, **kwargs: str | int)
  • record_event_time_span(event: str, start_time: float, end_time: float, **kwargs: str | int)

This PR adds a more general method, record_scalar:

  • record_scalar(event: str, value: float | int, **kwargs: str | int)

which enables JAX core and its ecosystem libraries to emit a wider more flexible set of metrics, for example FLOPS usage, gradient norm/clipping stats, quantization ranges, and more. We (@jshin1394 and I) are also working on a plugin that will make it easy to send jax.monitoring metrics to TensorBoard and other tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant