Skip to content

Commit

Permalink
Merge pull request #434 from IQTLabs/renovate/transformers-4.x-lockfile
Browse files Browse the repository at this point in the history
Update dependency transformers to v4.40.2
  • Loading branch information
rashley-iqt authored May 13, 2024
2 parents a9aa428 + 64db149 commit cb8da72
Show file tree
Hide file tree
Showing 3 changed files with 954 additions and 945 deletions.
2 changes: 1 addition & 1 deletion daisybell/helpers/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class StopOnTokens(StoppingCriteria):
Stop the chat bot generation when one of the given tokens is generated.
"""

def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool:
def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs) -> bool: # type: ignore
# These are the ids for stop tokens in StableLM and GPT-Neo
# 50278 is <|ASSISTANT|>, 50279 is <|SYSTEM|>, 50277 is <|USER|>
stop_ids = [
Expand Down
Loading

0 comments on commit cb8da72

Please sign in to comment.