For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python function
compute_synthetic_acceptance_base_rate
compute_synthetic_acceptance_base_rate()β
max.nn.sampling.compute_synthetic_acceptance_base_rate(p_avg, n, tol=1e-09)
Solves for the per-position base acceptance rate that matches a target mean.
Under independent per-position Bernoulli acceptance with cascading
rejection, the mean joint acceptance across n positions is
sum_{i=1..n} base ** i / n. This function binary-searches for
the base that produces a mean of p_avg.