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
change
sglang
Commits
d42975c6
Unverified
Commit
d42975c6
authored
Sep 24, 2025
by
Lzhang-hub
Committed by
GitHub
Sep 24, 2025
Browse files
Remove duplicate code in qwen2 model (#10540)
parent
adc24a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
python/sglang/srt/models/qwen2.py
python/sglang/srt/models/qwen2.py
+0
-3
No files found.
python/sglang/srt/models/qwen2.py
View file @
d42975c6
...
@@ -454,9 +454,6 @@ class Qwen2ForCausalLM(nn.Module):
...
@@ -454,9 +454,6 @@ class Qwen2ForCausalLM(nn.Module):
# For EAGLE3 support
# For EAGLE3 support
self
.
capture_aux_hidden_states
=
False
self
.
capture_aux_hidden_states
=
False
# For EAGLE3 support
self
.
capture_aux_hidden_states
=
False
def
get_input_embedding
(
self
,
input_ids
:
torch
.
Tensor
)
->
torch
.
Tensor
:
def
get_input_embedding
(
self
,
input_ids
:
torch
.
Tensor
)
->
torch
.
Tensor
:
return
self
.
model
.
get_input_embedding
(
input_ids
)
return
self
.
model
.
get_input_embedding
(
input_ids
)
...
...
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