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
ktransformers
Commits
ddd35d5b
Unverified
Commit
ddd35d5b
authored
Mar 20, 2025
by
Atream
Committed by
GitHub
Mar 20, 2025
Browse files
Merge pull request #940 from kvcache-ai/Atream-patch-6
Update gate.py
parents
32a91c78
633af5d2
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 @
ddd35d5b
...
...
@@ -215,7 +215,7 @@ class KMoEGateDeepSeekV3(BaseInjectedModule, KMoEGateBase):
self
.
gate_linear
=
None
def
forward
(
self
,
hidden_states
)
->
torch
.
Tensor
:
if
self
.
is_windows
:
if
True
or
self
.
is_windows
:
return
self
.
orig_module
.
forward
(
hidden_states
)
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