﻿# W&B sweep distributions: log_uniform bounds and log_uniform_values bounds use different spaces

Define Weights & Biases sweep ranges in the intended numerical space, distinguishing logarithmic bounds from direct value bounds before spending GPU trial time.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-wandb-sweep-log-uniform-bound-space/
Language: en

## Define the actual values the model accepts

A tuning configuration copies learning-rate bounds from a direct-value example into a distribution expecting logarithmic bounds. Every trial then explores an unintended region. The [sweep configuration reference](https://docs.coreweave.com/products/wandb/sweeps/sweep-config-keys) distinguishes log_uniform from log_uniform_values. Write down the intended range of values consumed by the optimizer before choosing the distribution syntax. Identical field names do not establish an identical mathematical interpretation across similarly named sampling options.

## Translate bounds through the specified distribution

For log_uniform, the bounds describe the logarithm and the resulting values are exponentiated. For log_uniform_values, the bounds describe the values directly. Check the transformation symbolically and inspect generated candidate values in a bounded pilot. A search can finish normally and produce valid tracking records while never testing the intended hyperparameter region. Low model quality in that situation is evidence about the wrong search space rather than a useful comparison of candidate settings.

## Keep sampling shape separate from model constraints

The [sweep definition guide](https://docs.coreweave.com/products/wandb/sweeps/define-sweep-configuration) explains the configuration that selects candidate parameters. A distribution expresses a search proposal; the training code must still enforce the parameter's valid domain and representation. Quantization or integer conversion can change the effective values, collapse distinct proposals or create an invalid boundary case. Record the value actually used after conversion instead of reporting only the sampler's original floating-point proposal.

## Verify the candidate reaches the training program

The [sweep initialization guide](https://docs.coreweave.com/products/wandb/sweeps/initialize-sweeps) separates defining a configuration from initializing the sweep. Follow the candidate through the agent and the program's configuration resolution. A correct distribution cannot compensate for a command-line default that overrides its sampled value. In a pilot, compare the requested candidate with the effective optimizer setting and ensure the tracking record describes the same value used by the numerical training calculation.

## Evaluate the search coverage before quality rankings

Inspect a small candidate set for domain validity and intended coverage, then run representative model trials. The guides on [controlled experiment replay](/journal/data-guide-curriculum-order-controlled-replay/) and [mixed-precision accumulation](/journal/learn-mixed-precision-accumulation/) provide related context. Preserve distribution identity, bound space and effective parameter values with results. An expensive GPU search is informative when it explores the declared mathematical region; a neat table of completed trials does not establish that its bounds meant what the experimenter intended.
