[Docs] Fix warnings in mkdocs build (continued) (#23743)

Signed-off-by: Zerohertz <ohg3417@gmail.com>
Signed-off-by: Hyogeun Oh (오효근) <ohg3417@gmail.com>
This commit is contained in:
Hyogeun Oh (오효근)
2025-08-27 17:17:29 +00:00
committed by GitHub
parent dd58932280
commit 4e4d017b6f
26 changed files with 56 additions and 50 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ class LogitsProcessor(ABC):
to each forward pass.
Args:
batch_update is non-None iff there have been
changes to the batch makeup.
batch_update: Non-None iff there have been changes
to the batch makeup.
"""
raise NotImplementedError
+1 -1
View File
@@ -68,7 +68,7 @@ class RejectionSampler(nn.Module):
different requests are flattened into a single tensor because
this is the shape of the output logits.
NOTE: `target_logits` can be updated in place to save memory.
bonus_token_ids_tensor (torch.Tensor):
bonus_token_ids (torch.Tensor):
A tensor containing bonus tokens. Shape is [batch_size, 1].
Bonus tokens are added to the end of the sequence if all
proposed tokens are accepted. We generate the bonus tokens
+1 -1
View File
@@ -89,7 +89,7 @@ class Sampler(nn.Module):
Gather logprobs for topk and sampled/prompt token.
Args:
logits: (num tokens) x (vocab) tensor
logprobs: (num tokens) x (vocab) tensor
num_logprobs: minimum number of logprobs to
retain per token
token_ids: prompt tokens (if prompt logprobs)