Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ def run_one_warmup(self, model: nn.Module, num_q_tokens: int, max_kv_read: int |
batch_data["max_length_k"][allocator.layer_type] = max_length_k
io.max_length_k[allocator.layer_type] = max_length_k
self.compute_batch(model, batch_data)
# The next warmup rewrites the static inputs this forward reads, so wait for it to finish
if self.inputs_and_outputs.compute_stream is not None:
self.inputs_and_outputs.compute_stream.synchronize()
duration = time.perf_counter() - start
logger.debug(f"Warmup completed in {duration:.2f}s")

Expand Down
Loading