[CPU] Explicitly import sgl_kernel in CPU kernel tests (#35119)

This commit is contained in:
Ma Mingfei
2026-08-18 10:20:28 +08:00
committed by GitHub
parent d55f1c28e2
commit 7f51e6bba0
16 changed files with 16 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
import sys
import pytest
import sgl_kernel # noqa: F401
import torch
from sglang.srt.server_args import ServerArgs, set_global_server_args_for_scheduler
+1
View File
@@ -2,6 +2,7 @@ import itertools
import unittest
# TODO: use interface in cpu.py
import sgl_kernel # noqa: F401
import torch
import torch.nn as nn
+1
View File
@@ -5,6 +5,7 @@ import traceback
import unittest
from multiprocessing import Process
import sgl_kernel # noqa: F401
import torch
import torch.distributed as dist
import torch.multiprocessing as mp
+1
View File
@@ -1,5 +1,6 @@
import unittest
import sgl_kernel # noqa: F401
import torch
from torch.nn.functional import scaled_dot_product_attention
+1
View File
@@ -1,5 +1,6 @@
import unittest
import sgl_kernel # noqa: F401
import torch
from torch.nn.functional import scaled_dot_product_attention
+1
View File
@@ -1,6 +1,7 @@
import unittest
# TODO: use interface in cpu.py
import sgl_kernel # noqa: F401
import torch
import torch.nn as nn
+1
View File
@@ -1,6 +1,7 @@
import sys
import pytest
import sgl_kernel # noqa: F401
import torch
import torch.nn.functional as F
from torch.nn.functional import softplus
+1
View File
@@ -1,5 +1,6 @@
import unittest
import sgl_kernel # noqa: F401
import torch
from torch.nn.functional import scaled_dot_product_attention
+1
View File
@@ -3,6 +3,7 @@ import math
import pytest
# TODO: use interface in cpu.py
import sgl_kernel # noqa: F401
import torch
from sglang.srt.layers.amx_utils import CPUQuantMethod
+1
View File
@@ -2,6 +2,7 @@ import sys
from typing import Optional, Tuple, Union
import pytest
import sgl_kernel # noqa: F401
import torch
from sglang.test.ci.ci_register import register_cpu_ci
@@ -1,5 +1,6 @@
import unittest
import sgl_kernel # noqa: F401
import torch
from sglang.srt.layers.quantization.fp8_utils import input_to_float8
+1
View File
@@ -1,6 +1,7 @@
import sys
import pytest
import sgl_kernel # noqa: F401
import torch
from sglang.srt.utils import is_host_cpu_arm64
+1
View File
@@ -1,5 +1,6 @@
import unittest
import sgl_kernel # noqa: F401
import torch
from sglang.srt.layers.rotary_embedding import (
@@ -2,6 +2,7 @@ import itertools
import math
import unittest
import sgl_kernel # noqa: F401
import torch
from sglang.test.ci.ci_register import register_cpu_ci
+1
View File
@@ -1,6 +1,7 @@
import sys
import pytest
import sgl_kernel # noqa: F401
import torch
from sglang.test.ci.ci_register import register_cpu_ci
+1
View File
@@ -1,6 +1,7 @@
import itertools
import unittest
import sgl_kernel # noqa: F401
import torch
from sglang.srt.eplb.expert_location_dispatch import ExpertLocationDispatchInfo