mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
add prepare_for_prefill
This commit is contained in:
parent
0e31619893
commit
173bc99ab3
File diff suppressed because it is too large
Load Diff
@ -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]]:
|
||||||
|
Loading…
Reference in New Issue
Block a user