[AMD][bugfix] Place TBO cuda-graph num_token_non_padded buffer on model devices (#28337)
This commit is contained in:
@@ -316,7 +316,9 @@ def compute_split_indices_for_cuda_graph_replay(
|
||||
|
||||
class TboCudaGraphRunnerPlugin:
|
||||
def __init__(self):
|
||||
self._tbo_children_num_token_non_padded = torch.zeros((2,), dtype=torch.int32)
|
||||
self._tbo_children_num_token_non_padded = torch.zeros(
|
||||
(2,), dtype=torch.int32, device=get_global_server_args().device
|
||||
)
|
||||
|
||||
def capture_one_batch_size(self, batch: ForwardBatch, num_tokens: int):
|
||||
if not is_tbo_enabled():
|
||||
|
||||
Reference in New Issue
Block a user