File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,20 @@ limitations under the License.
14
14
==============================================================================*/
15
15
16
16
#pragma once
17
+ #if defined(USE_NPU)
17
18
#ifdef TORCH_HIGHER_THAN_PTA6
18
19
#include < torch_npu/csrc/core/npu/NPUFormat.h>
19
20
#include < torch_npu/csrc/framework/OpCommand.h>
20
21
#else
21
22
#include < torch_npu/csrc/aten/NPUNativeFunctions.h>
22
23
#include < torch_npu/csrc/framework/utils/OpPreparation.h>
23
24
#endif
24
-
25
25
#include < torch_npu/csrc/libs/init_npu.h>
26
26
27
+ #include " npu/npu_rms_norm_impl.h"
28
+ #include " pytorch/adapter/utils/utils.h"
29
+ #endif
30
+
27
31
#include < functional>
28
32
29
33
#include " atb/atb_infer.h"
@@ -36,8 +40,6 @@ limitations under the License.
36
40
#include " framework/model/model_input_params.h"
37
41
#include " framework/state_dict/state_dict.h"
38
42
#include " nlohmann/json.hpp"
39
- #include " npu/npu_rms_norm_impl.h"
40
- #include " pytorch/adapter/utils/utils.h"
41
43
42
44
namespace xllm {
43
45
You can’t perform that action at this time.
0 commit comments