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
5b9e454a
Unverified
Commit
5b9e454a
authored
Dec 06, 2023
by
Lyu Han
Committed by
GitHub
Dec 06, 2023
Browse files
fix local kv head num (#806)
parent
bd7c4e39
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/LlamaV2.cc
src/turbomind/models/llama/LlamaV2.cc
+1
-1
No files found.
src/turbomind/models/llama/LlamaV2.cc
View file @
5b9e454a
...
@@ -76,7 +76,7 @@ LlamaV2<T>::LlamaV2(size_t head_num,
...
@@ -76,7 +76,7 @@ LlamaV2<T>::LlamaV2(size_t head_num,
end_id_
(
end_id
),
end_id_
(
end_id
),
hidden_units_
(
head_num
*
size_per_head
),
hidden_units_
(
head_num
*
size_per_head
),
local_head_num_
(
head_num
/
tensor_para
.
world_size_
),
local_head_num_
(
head_num
/
tensor_para
.
world_size_
),
local_kv_head_num_
(
head_num
/
tensor_para
.
world_size_
),
local_kv_head_num_
(
kv_
head_num
/
tensor_para
.
world_size_
),
weights_
(
weights
),
weights_
(
weights
),
tensor_para_
(
tensor_para
),
tensor_para_
(
tensor_para
),
stream_
(
stream
),
stream_
(
stream
),
...
...
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