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
wangkx1
text-generation-inference-dcu
Commits
644ecdd9
Commit
644ecdd9
authored
Jan 08, 2025
by
wangkx1
Browse files
Update tensor_parallel.py
parent
55e2c496
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server/text_generation_server/layers/tensor_parallel.py
server/text_generation_server/layers/tensor_parallel.py
+3
-0
No files found.
server/text_generation_server/layers/tensor_parallel.py
View file @
644ecdd9
...
@@ -66,6 +66,9 @@ class TensorParallelHead(SuperLayer):
...
@@ -66,6 +66,9 @@ class TensorParallelHead(SuperLayer):
weight
=
weights
.
get_tensor
(
f
"
{
prefix
}
.weight"
)
weight
=
weights
.
get_tensor
(
f
"
{
prefix
}
.weight"
)
should_gather
=
False
should_gather
=
False
if
config
.
model_type
==
"baichuan"
:
weight
=
F
.
normalize
(
weight
)
return
TensorParallelHead
(
return
TensorParallelHead
(
get_linear
(
weight
,
bias
=
None
),
get_linear
(
weight
,
bias
=
None
),
process_group
=
weights
.
process_group
,
process_group
=
weights
.
process_group
,
...
...
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