[Minor] Various small code cleanups/simplifications (#31508)

Signed-off-by: njhill <nickhill123@gmail.com>
This commit is contained in:
Nick Hill
2025-12-29 22:42:06 -08:00
committed by GitHub
parent f84bf7d79b
commit 3b312fb792
14 changed files with 29 additions and 55 deletions
+1 -2
View File
@@ -211,8 +211,7 @@ class Request:
def get_num_encoder_embeds(self, input_id: int) -> int:
assert input_id < len(self.mm_features)
num_embeds = self.mm_features[input_id].mm_position.get_num_embeds
return num_embeds
return self.mm_features[input_id].mm_position.get_num_embeds
def record_event(
self,