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
b4ec427a
Unverified
Commit
b4ec427a
authored
Nov 19, 2024
by
Daniël de Kok
Committed by
GitHub
Nov 19, 2024
Browse files
Simplify two ipex conditions (#2755)
parent
38cff84a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
server/text_generation_server/layers/moe/unquantized.py
server/text_generation_server/layers/moe/unquantized.py
+3
-3
server/text_generation_server/models/custom_modeling/flash_dbrx_modeling.py
...tion_server/models/custom_modeling/flash_dbrx_modeling.py
+3
-3
No files found.
server/text_generation_server/layers/moe/unquantized.py
View file @
b4ec427a
...
...
@@ -8,10 +8,10 @@ from text_generation_server.utils.weights import UnquantizedWeight, Weights
if
SYSTEM
==
"rocm"
:
from
vllm.model_executor.layers.fused_moe
import
fused_moe
elif
SYSTEM
!=
"ipex"
:
from
moe_kernels.fused_moe
import
fused_moe
else
:
elif
SYSTEM
==
"ipex"
:
from
intel_extension_for_pytorch.llm.modules
import
GatedMLPMOE
else
:
from
moe_kernels.fused_moe
import
fused_moe
class
UnquantizedSparseMoELayer
(
nn
.
Module
):
...
...
server/text_generation_server/models/custom_modeling/flash_dbrx_modeling.py
View file @
b4ec427a
...
...
@@ -25,10 +25,10 @@ from text_generation_server.utils.import_utils import SYSTEM
if
SYSTEM
==
"rocm"
:
from
vllm.model_executor.layers.fused_moe
import
fused_moe
elif
SYSTEM
!=
"ipex"
:
from
moe_kernels.fused_moe
import
fused_moe
else
:
elif
SYSTEM
==
"ipex"
:
from
intel_extension_for_pytorch.llm.modules
import
GatedMLPMOE
else
:
from
moe_kernels.fused_moe
import
fused_moe
from
text_generation_server.layers.attention
import
(
paged_attention
,
...
...
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