add prepare_for_prefill

This commit is contained in:
OlivierDehaene 2024-09-30 17:58:14 +02:00
parent 0e31619893
commit 173bc99ab3
No known key found for this signature in database
GPG Key ID: BB104D67809DA93C
2 changed files with 381 additions and 494 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@ from typing import List, Tuple, Union
import torch import torch
# FIXME: this should be optimized
def find_segments( def find_segments(
adapter_indices: Union[torch.Tensor, List[int]] adapter_indices: Union[torch.Tensor, List[int]]
) -> Tuple[List[int], List[int]]: ) -> Tuple[List[int], List[int]]: