Multiple Choice

A model uses logarithmic bucketing to handle large relative position offsets. The bucket index b(d) for a given distance d is calculated using the formula below. Given a system with 32 total buckets (n_b = 32), a maximum distance of 128 (dist_max = 128), and a specific offset d = 64, what is the resulting bucket index?

b(d) = (n_b/2) + floor( (log(d) - log(n_b/2)) / (log(dist_max) - log(n_b/2)) * (n_b/2) )

(Note: Use the natural logarithm for all log operations.)

0

1

Updated 2025-09-26

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science