Skip to main content

Add your description here

Project description

parallel_wandb

This simple package makes it easy to use the new (reinit="create_new") feature of Weights & Biases (wandb) to create and log to multiple wandb runs in parallel

This, when combined with jax.vmap, enables extremely efficient, high-throughput training (and logging!) of multiple simultaneous training runs.

  • This package provides two simple functions that you can import and use in your own project: wandb_init to initialize multiple wandb runs and wandb_log to log metrics to them in parallel.
  • A demonstration of how these can be used with jax.vmap can be found in jax_mnist.py.

Installation

  1. (optional) Install UV: https://docs.astral.sh/uv/getting-started/installation/

  2. Add this package as a dependency to your project:

uv add parallel_wandb

OR, if you don't use UV yet, you can also pip install parallel_wandb.

Usage

from parallel_wandb import wandb_init, wandb_log

runs = wandb_init(
    {"name": ["run_0", "run_1"], "config": {"seed": [0, 1]}},
    project="test_project",
    name="test_name",
)
assert isinstance(runs, np.ndarray) and runs.shape == (2,) and runs.dtype == object

wandb_log(runs, {"loss": [0.1, 0.2]}, step=0)

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

parallel_wandb-0.0.1.tar.gz (68.7 kB view details)

Uploaded Source

Built Distribution

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

parallel_wandb-0.0.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file parallel_wandb-0.0.1.tar.gz.

File metadata

  • Download URL: parallel_wandb-0.0.1.tar.gz
  • Upload date:
  • Size: 68.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parallel_wandb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 48bda9ea5af4dac8aed8e5f6e21d2ab3d9a33578d709b58806eae1e3a36fee0e
MD5 3f71644041237a16c2b95fc5ddb449d9
BLAKE2b-256 c8a98f2347dcc6ab79c318711187b17d9119f92add6618f17ff2ca78270c2fbf

See more details on using hashes here.

Provenance

The following attestation bundles were made for parallel_wandb-0.0.1.tar.gz:

Publisher: publish.yaml on lebrice/parallel_wandb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file parallel_wandb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: parallel_wandb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for parallel_wandb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbce03e34b62f24791318d845ed068462e42066d5d16bf6ebf73d191e7396836
MD5 34e3bd2b0ddb37b7c1ab6e179b1b477e
BLAKE2b-256 04162561b20146d06609171336b896ad20db902b6d02e0660a0363050f415387

See more details on using hashes here.

Provenance

The following attestation bundles were made for parallel_wandb-0.0.1-py3-none-any.whl:

Publisher: publish.yaml on lebrice/parallel_wandb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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