Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
d78789ac
Unverified
Commit
d78789ac
authored
Aug 30, 2024
by
Isotr0py
Committed by
GitHub
Aug 29, 2024
Browse files
[Bugfix] Fix incorrect vocal embedding shards for GGUF model in tensor parallelism (#7954)
parent
c334b189
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
vllm/model_executor/layers/vocab_parallel_embedding.py
vllm/model_executor/layers/vocab_parallel_embedding.py
+4
-1
No files found.
vllm/model_executor/layers/vocab_parallel_embedding.py
View file @
d78789ac
...
@@ -351,7 +351,10 @@ class VocabParallelEmbedding(torch.nn.Module):
...
@@ -351,7 +351,10 @@ class VocabParallelEmbedding(torch.nn.Module):
param
.
weight_type
=
loaded_weight
.
item
()
param
.
weight_type
=
loaded_weight
.
item
()
return
return
elif
isinstance
(
param
,
UninitializedParameter
):
elif
isinstance
(
param
,
UninitializedParameter
):
param
.
materialize
(
loaded_weight
.
shape
,
dtype
=
loaded_weight
.
dtype
)
shape
=
list
(
loaded_weight
.
shape
)
if
output_dim
is
not
None
:
shape
[
output_dim
]
=
shape
[
output_dim
]
//
self
.
tp_size
param
.
materialize
(
tuple
(
shape
),
dtype
=
loaded_weight
.
dtype
)
# If parameter does not have output dim, then it should
# If parameter does not have output dim, then it should
# be copied onto all gpus (e.g. g_idx for act_order gptq).
# be copied onto all gpus (e.g. g_idx for act_order gptq).
...
...
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