[Sampler] Introduce logprobs mode for logging (#21398)

Signed-off-by: Lu Fang <lufang@fb.com>
This commit is contained in:
Lu Fang
2025-07-23 01:39:25 -07:00
committed by GitHub
parent 23637dcdef
commit accac82928
7 changed files with 83 additions and 13 deletions
+2 -2
View File
@@ -389,7 +389,7 @@ class InputBatch:
def remove_request(self, req_id: str) -> Optional[int]:
"""This method must always be followed by a call to condense().
Args:
req_id: request to remove
@@ -590,7 +590,7 @@ class InputBatch:
def refresh_metadata(self):
"""Apply batch updates, reset input batch at end of step
* Apply batch add/remove/permute to logits procs' states
* If batch state is modified, update sampling metadata
"""