|
8 | 8 | from transformers import AutoTokenizer |
9 | 9 |
|
10 | 10 | from tests.tools import ( |
11 | | - RayUnittestBaseAysnc, |
| 11 | + RayUnittestBaseAsync, |
12 | 12 | get_api_model_path, |
13 | 13 | get_model_path, |
14 | 14 | get_template_config, |
@@ -113,7 +113,7 @@ async def prepare_engines(engines, auxiliary_engines): |
113 | 113 | (2, 1, 3, True, True), |
114 | 114 | ], |
115 | 115 | ) |
116 | | -class ModelWrapperTest(RayUnittestBaseAysnc): |
| 116 | +class ModelWrapperTest(RayUnittestBaseAsync): |
117 | 117 | def setUp(self): |
118 | 118 | # configure the model |
119 | 119 | self.config = get_template_config() |
@@ -233,7 +233,7 @@ async def test_generate(self): |
233 | 233 | (20, 5, 15), |
234 | 234 | ], |
235 | 235 | ) |
236 | | -class TestModelLen(RayUnittestBaseAysnc): |
| 236 | +class TestModelLen(RayUnittestBaseAsync): |
237 | 237 | def setUp(self): |
238 | 238 | self.config = get_template_config() |
239 | 239 | self.config.mode = "explore" |
@@ -302,7 +302,7 @@ def _check_experience(exp): |
302 | 302 | ) |
303 | 303 |
|
304 | 304 |
|
305 | | -class TestModelLenWithoutPromptTruncation(RayUnittestBaseAysnc): |
| 305 | +class TestModelLenWithoutPromptTruncation(RayUnittestBaseAsync): |
306 | 306 | def setUp(self): |
307 | 307 | self.config = get_template_config() |
308 | 308 | self.config.mode = "explore" |
@@ -351,7 +351,7 @@ async def test_model_len(self): |
351 | 351 | ) |
352 | 352 |
|
353 | 353 |
|
354 | | -class TestAPIServer(RayUnittestBaseAysnc): |
| 354 | +class TestAPIServer(RayUnittestBaseAsync): |
355 | 355 | def setUp(self): |
356 | 356 | self.config = get_template_config() |
357 | 357 | self.config.mode = "explore" |
@@ -482,7 +482,7 @@ async def test_api(self): |
482 | 482 | """ |
483 | 483 |
|
484 | 484 |
|
485 | | -class TestLogprobs(RayUnittestBaseAysnc): |
| 485 | +class TestLogprobs(RayUnittestBaseAsync): |
486 | 486 | def setUp(self): |
487 | 487 | self.config = get_template_config() |
488 | 488 | self.config.mode = "explore" |
@@ -669,7 +669,7 @@ async def test_logprobs_api(self): |
669 | 669 | ) |
670 | 670 |
|
671 | 671 |
|
672 | | -class TestAsyncAPIServer(RayUnittestBaseAysnc): |
| 672 | +class TestAsyncAPIServer(RayUnittestBaseAsync): |
673 | 673 | def setUp(self): |
674 | 674 | self.config = get_template_config() |
675 | 675 | self.config.mode = "explore" |
@@ -880,7 +880,7 @@ def test_action_mask_with_tools(self): |
880 | 880 | (False, None), |
881 | 881 | ], |
882 | 882 | ) |
883 | | -class TestAPIServerToolCall(RayUnittestBaseAysnc): |
| 883 | +class TestAPIServerToolCall(RayUnittestBaseAsync): |
884 | 884 | def setUp(self): |
885 | 885 | self.config = get_template_config() |
886 | 886 | self.config.mode = "explore" |
@@ -1161,7 +1161,7 @@ async def test_api_tool_calls(self): |
1161 | 1161 | ) |
1162 | 1162 |
|
1163 | 1163 |
|
1164 | | -class TestSuperLongGeneration(RayUnittestBaseAysnc): |
| 1164 | +class TestSuperLongGeneration(RayUnittestBaseAsync): |
1165 | 1165 | def setUp(self): |
1166 | 1166 | self.config = get_template_config() |
1167 | 1167 | self.config.mode = "explore" |
@@ -1217,7 +1217,7 @@ async def test_generate(self): |
1217 | 1217 | self.assertGreater(response.logprobs.shape[0], 1000) |
1218 | 1218 |
|
1219 | 1219 |
|
1220 | | -class TestTinkerAPI(RayUnittestBaseAysnc): |
| 1220 | +class TestTinkerAPI(RayUnittestBaseAsync): |
1221 | 1221 | """Test the Tinker API integration with the vLLM engine.""" |
1222 | 1222 |
|
1223 | 1223 | def setUp(self): |
|
0 commit comments