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
OpenDAS
Lmdeploy
Commits
2d5f5b30
Unverified
Commit
2d5f5b30
authored
Dec 07, 2023
by
Li Zhang
Committed by
GitHub
Dec 07, 2023
Browse files
fix out of bounds access (#809)
parent
fddad305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/turbomind/models/llama/LlamaBatch.cc
src/turbomind/models/llama/LlamaBatch.cc
+1
-1
No files found.
src/turbomind/models/llama/LlamaBatch.cc
View file @
2d5f5b30
...
...
@@ -525,7 +525,7 @@ void LlamaBatch<T>::Initialize(GenerationState& g)
// check if the last sequence is partial
int
partial
=
0
;
int
partial_len
=
-
1
;
{
if
(
state_
->
active_size
)
{
const
int
i
=
state_
->
active_size
-
1
;
partial
=
state_
->
sequences
[
i
]
->
cache_len
+
state_
->
sequences
[
i
]
->
input_length
!=
state_
->
h_context_length
[
i
];
if
(
partial
)
{
...
...
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