Skip to content

Commit

Permalink
chore: remove useless variable
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Mar 27, 2024
1 parent 8f7ceab commit 309f58d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,11 @@ def prefill(self, batch: Batch) -> Tuple[List[Generation], CachedBatch]:
self.slots.remove(slot)
# Assign each request to an empty slot
logger.debug(f"Prefilling {len(batch.requests)} new request(s) adding to {len(active_slots)} active slot(s)")
new_slots = []
for request in batch.requests:
# Dynamically create a new slot for each request
slot = Slot(self.slot_index, self.tokenizer, self.model.device)
self.slot_index += 1
slot.assign(request, self.model.generation_config)
new_slots.append(slot)
self.slots.append(slot)
logger.debug(f"Request {slot.request_id} assigned to slot {slot.id}")
# Reconstruct the full inputs (without padding) as seen by the model.
Expand Down

0 comments on commit 309f58d

Please sign in to comment.