[Platform] Deprecate seed_everything (#31659)
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
@@ -11,6 +11,7 @@ from tests.kernels.quantization.nvfp4_utils import (
|
||||
from vllm._custom_ops import scaled_fp4_quant
|
||||
from vllm.model_executor.layers.activation import SiluAndMul
|
||||
from vllm.platforms import current_platform
|
||||
from vllm.utils.torch_utils import set_random_seed
|
||||
|
||||
if not current_platform.has_device_capability(100):
|
||||
pytest.skip(
|
||||
@@ -33,7 +34,7 @@ def test_silu_mul_nvfp4_quant(
|
||||
dtype: torch.dtype,
|
||||
shape: tuple[int, int],
|
||||
) -> None:
|
||||
current_platform.seed_everything(42)
|
||||
set_random_seed(42)
|
||||
device = "cuda:0"
|
||||
torch.set_default_device(device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user