mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2025-09-06 20:49:55 +00:00
[fix] linux and windows can all find CPUInfer in current Directory
This commit is contained in:
parent
0e613b602d
commit
1f92f7cc61
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue