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
1f92f7cc
You need to sign in or sign up before continuing.
Commit
1f92f7cc
authored
Aug 08, 2024
by
Atream
Browse files
[fix] linux and windows can all find CPUInfer in current Directory
parent
0e613b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ktransformers/operators/experts.py
ktransformers/operators/experts.py
+3
-2
No files found.
ktransformers/operators/experts.py
View file @
1f92f7cc
...
...
@@ -19,8 +19,9 @@ import torch
import
sys
,
os
from
ktransformers.operators.base_operator
import
BaseInjectedModule
#sys.path.append(os.path.dirname(__file__) + "/../ktransformers_ext/build/")
sys
.
path
.
append
(
os
.
path
.
dirname
(
__file__
)
+
"
\\
..
\\
ktransformers_ext
\\
build
\\
Release"
)
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"ktransformers_ext"
,
"build"
))
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"ktransformers_ext"
,
"build"
,
"Release"
))
sys
.
path
.
append
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
".."
,
"ktransformers_ext"
,
"build"
,
"Debug"
))
import
cpuinfer_ext
from
cpuinfer_ext.moe
import
MOEConfig
,
MOE
import
ctypes
...
...
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