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
f478aa77
Unverified
Commit
f478aa77
authored
Sep 20, 2024
by
Wang, Yi
Committed by
GitHub
Sep 20, 2024
Browse files
hotfix: ipex fails since cuda moe kernel is not supported (#2532)
Signed-off-by:
Wang, Yi A
<
yi.a.wang@intel.com
>
parent
abd24dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
server/text_generation_server/models/custom_modeling/flash_deepseek_v2_modeling.py
...rver/models/custom_modeling/flash_deepseek_v2_modeling.py
+3
-1
No files found.
server/text_generation_server/models/custom_modeling/flash_deepseek_v2_modeling.py
View file @
f478aa77
...
...
@@ -15,7 +15,6 @@
from
typing
import
List
,
Optional
,
Tuple
from
moe_kernels.fused_moe
import
grouped_topk
import
torch
import
torch.distributed
from
text_generation_server.layers
import
(
...
...
@@ -41,6 +40,9 @@ from torch import nn
from
transformers.activations
import
ACT2FN
from
transformers.configuration_utils
import
PretrainedConfig
if
SYSTEM
!=
"ipex"
:
from
moe_kernels.fused_moe
import
grouped_topk
if
SYSTEM
==
"rocm"
:
try
:
from
vllm
import
_custom_C
...
...
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