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
c38eba30
Unverified
Commit
c38eba30
authored
Jul 10, 2024
by
Thomas Parnell
Committed by
GitHub
Jul 10, 2024
Browse files
[Bugfix] MLPSpeculator: Use ParallelLMHead in tie_weights=False case. (#6303)
Signed-off-by:
Thomas Parnell
<
tpa@zurich.ibm.com
>
parent
e72ae80b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/model_executor/models/mlp_speculator.py
vllm/model_executor/models/mlp_speculator.py
+1
-1
No files found.
vllm/model_executor/models/mlp_speculator.py
View file @
c38eba30
...
@@ -110,7 +110,7 @@ class MLPSpeculator(nn.Module):
...
@@ -110,7 +110,7 @@ class MLPSpeculator(nn.Module):
])
])
self
.
head
=
nn
.
ModuleList
([
self
.
head
=
nn
.
ModuleList
([
nn
.
Linear
(
self
.
inner_dim
,
self
.
vocab_size
,
bias
=
False
)
ParallelLMHead
(
self
.
vocab_size
,
self
.
inner_dim
,
bias
=
False
)
for
_
in
range
(
self
.
max_speculative_tokens
)
for
_
in
range
(
self
.
max_speculative_tokens
)
])
])
self
.
ln
=
nn
.
ModuleList
([
self
.
ln
=
nn
.
ModuleList
([
...
...
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