Skip to content

Commit

Permalink
Limit transformers != 4.38 (#531)
Browse files Browse the repository at this point in the history
limit transformers != 4.38
  • Loading branch information
HIT-cwh authored Mar 29, 2024
1 parent 61b9451 commit 0b5708c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion requirements/runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ tiktoken
torch<=2.1.2
torchvision<=0.16.2
# Minimum 4.36.0 to support `Cache` data structure used by KV Cache
transformers>=4.36.0
# Registering a causal mask in `LlamaModel` is not friendly for very large
# `max_position_embeddings`. Refer to
# https://github.com/huggingface/transformers/blob/v4.38.0/src/transformers/models/llama/modeling_llama.py#L921-L923
transformers>=4.36.0,!=4.38.0,!=4.38.1,!=4.38.2
transformers_stream_generator

0 comments on commit 0b5708c

Please sign in to comment.