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

Signed-off-by: wwl2755 <wangwenlong2755@gmail.com>
This commit is contained in:
Wenlong Wang
2025-09-20 04:45:18 -07:00
committed by GitHub
parent e08a3a3fdb
commit 032d661d27
7 changed files with 24 additions and 15 deletions

View File

@@ -351,17 +351,17 @@ def generate_uniform_probs(
without a seed.
Args:
num_tokens : int
num_tokens: int
Total number of tokens.
num_draft_tokens : List[List[int]]
num_draft_tokens: List[List[int]]
Number of draft tokens per request.
generators : Optional[Dict[int, torch.Generator]]
generators: Optional[Dict[int, torch.Generator]]
A dictionary mapping indices in the batch to
`torch.Generator` objects.
device : torch.device
device: torch.device
The device on which to allocate the tensor.
Returns:
uniform_rand : torch.Tensor
uniform_rand: torch.Tensor
A tensor of shape `(num_tokens, )` containing uniform
random values in the range [0, 1).
"""