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
text-generation-inference
Commits
ee9541af
Commit
ee9541af
authored
Jan 24, 2025
by
xuxzh1
🎱
Browse files
update tensor_parallel.py
parent
72501097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
server/text_generation_server/layers/tensor_parallel.py
server/text_generation_server/layers/tensor_parallel.py
+4
-1
No files found.
server/text_generation_server/layers/tensor_parallel.py
View file @
ee9541af
...
...
@@ -65,7 +65,10 @@ class TensorParallelHead(SuperLayer):
else
:
weight
=
weights
.
get_tensor
(
f
"
{
prefix
}
.weight"
)
should_gather
=
False
if
config
.
model_type
==
"baichuan"
:
weight
=
F
.
normalize
(
weight
)
return
TensorParallelHead
(
get_linear
(
weight
,
bias
=
None
),
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