Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8f577dca
Unverified
Commit
8f577dca
authored
Nov 13, 2023
by
Chris McMaster
Committed by
GitHub
Nov 13, 2023
Browse files
Fixed typo in error message (#27461)
"past key much have a shape" -> "past key must have a shape"
parent
7b998cab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/mistral/modeling_mistral.py
src/transformers/models/mistral/modeling_mistral.py
+1
-1
No files found.
src/transformers/models/mistral/modeling_mistral.py
View file @
8f577dca
...
@@ -372,7 +372,7 @@ class MistralFlashAttention2(MistralAttention):
...
@@ -372,7 +372,7 @@ class MistralFlashAttention2(MistralAttention):
if
past_key
.
shape
[
-
2
]
!=
self
.
config
.
sliding_window
-
1
:
if
past_key
.
shape
[
-
2
]
!=
self
.
config
.
sliding_window
-
1
:
raise
ValueError
(
raise
ValueError
(
f
"past key mu
ch
have a shape of (`batch_size, num_heads, self.config.sliding_window-1, head_dim`), got"
f
"past key mu
st
have a shape of (`batch_size, num_heads, self.config.sliding_window-1, head_dim`), got"
f
"
{
past_key
.
shape
}
"
f
"
{
past_key
.
shape
}
"
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment