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
ox696c
ktransformers
Commits
633af5d2
Unverified
Commit
633af5d2
authored
Mar 20, 2025
by
Atream
Committed by
GitHub
Mar 20, 2025
Browse files
Update gate.py
parent
32a91c78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ktransformers/operators/gate.py
ktransformers/operators/gate.py
+1
-1
No files found.
ktransformers/operators/gate.py
View file @
633af5d2
...
@@ -215,7 +215,7 @@ class KMoEGateDeepSeekV3(BaseInjectedModule, KMoEGateBase):
...
@@ -215,7 +215,7 @@ class KMoEGateDeepSeekV3(BaseInjectedModule, KMoEGateBase):
self
.
gate_linear
=
None
self
.
gate_linear
=
None
def
forward
(
self
,
hidden_states
)
->
torch
.
Tensor
:
def
forward
(
self
,
hidden_states
)
->
torch
.
Tensor
:
if
self
.
is_windows
:
if
True
or
self
.
is_windows
:
return
self
.
orig_module
.
forward
(
hidden_states
)
return
self
.
orig_module
.
forward
(
hidden_states
)
bsz
,
seq_len
,
h
=
hidden_states
.
shape
bsz
,
seq_len
,
h
=
hidden_states
.
shape
...
...
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