Skip to content

Commit

Permalink
Fixed typo in error message (#27461)
Browse files Browse the repository at this point in the history
"past key much have a shape" -> "past key must have a shape"
  • Loading branch information
cmcmaster1 authored Nov 13, 2023
1 parent 7b998ca commit 8f577dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/mistral/modeling_mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def forward(

if past_key.shape[-2] != self.config.sliding_window - 1:
raise ValueError(
f"past key much have a shape of (`batch_size, num_heads, self.config.sliding_window-1, head_dim`), got"
f"past key must have a shape of (`batch_size, num_heads, self.config.sliding_window-1, head_dim`), got"
f" {past_key.shape}"
)

Expand Down

0 comments on commit 8f577dc

Please sign in to comment.