Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flozi00 committed Dec 19, 2023
1 parent a1d01c6 commit 0054956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/lorax_server/models/causal_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def decode(self, generated_ids: List[int]) -> str:
)

def forward(
self, input_ids, attention_mask, position_ids, past_key_values: Optional = None
self, input_ids, attention_mask, position_ids, past_key_values: Optional[torch.Tensor] = None
) -> Tuple[torch.Tensor, List[Tuple[torch.Tensor, torch.Tensor]]]:
# Model Forward
kwargs = {
Expand Down
1 change: 1 addition & 0 deletions server/lorax_server/utils/sources/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from huggingface_hub.utils import (
LocalEntryNotFoundError,
EntryNotFoundError, # Import here to ease try/except in other part of the lib
RevisionNotFoundError,
)

from .source import BaseModelSource, try_to_load_from_cache
Expand Down

0 comments on commit 0054956

Please sign in to comment.