A high-throughput and memory-efficient inference and serving engine for LLMs
[Misc]Clean up useless test (#45792)
Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
wangxiyuan committed
Jun 16, 2026 at 17:53 UTC
3f1ff1ff1471fa4b53241b881b39d6dffc9ca301
1 file changed
-25
tests/test_seed_behavior.py
deleted
-25
@@ -1,25 +0,0 @@
1
-# SPDX-License-Identifier: Apache-2.0
2
-# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
3
-import random
4
-
5
-import numpy as np
6
-import torch
7
-
8
-from vllm.platforms.interface import Platform
9
-
10
-
11
-def test_seed_behavior():
12
- # Test with a specific seed
13
- Platform.seed_everything(42)
14
- random_value_1 = random.randint(0, 100)
15
- np_random_value_1 = np.random.randint(0, 100)
16
- torch_random_value_1 = torch.randint(0, 100, (1,)).item()
17
-
18
- Platform.seed_everything(42)
19
- random_value_2 = random.randint(0, 100)
20
- np_random_value_2 = np.random.randint(0, 100)
21
- torch_random_value_2 = torch.randint(0, 100, (1,)).item()
22
-
23
- assert random_value_1 == random_value_2
24
- assert np_random_value_1 == np_random_value_2
25
- assert torch_random_value_1 == torch_random_value_2