mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-26 04:22:08 +00:00
Removed redundant and crash causing regions to be a subject to Torch compile (#194)
Co-authored-by: Jacek Czaja <jczaja@habana.ai>
This commit is contained in:
parent
4dc67e4ef3
commit
256a97231b
@ -119,7 +119,6 @@ def roll(tensor, chunk, dim, merge_graphs):
|
||||
return tensor
|
||||
|
||||
|
||||
@torch_compile_for_eager
|
||||
def grouped_roll(tensor_groups, chunk, dims, merge_graphs):
|
||||
tensor_groups = [[roll(t, chunk, dim, merge_graphs) for t in tensors] for tensors, dim in zip(tensor_groups, dims)]
|
||||
if merge_graphs:
|
||||
@ -135,7 +134,6 @@ def grouped_shift(tensor_groups, dims, offset, merge_graphs):
|
||||
return tensor_groups
|
||||
|
||||
|
||||
@torch_compile_for_eager
|
||||
def move(dst_tensors, dst_indices, src_tensors):
|
||||
bs_dim = 0
|
||||
num_indices = dst_indices.size(0)
|
||||
|
Loading…
Reference in New Issue
Block a user