MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / asyncSetUp

Method asyncSetUp

tests/common/vllm_test.py:350–361  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

348
349class TestMultiModal(VLLMTestBase):
350 async def asyncSetUp(self):
351 # configure the model
352 self.config = get_template_config()
353 self.config.mode = "explore"
354 self.config.model.model_path = get_api_model_path()
355 self.config.model.custom_chat_template = CHAT_TEMPLATE
356 self.config.algorithm.repeat_times = 4
357 self.config.explorer.rollout_model.chat_template = CHAT_TEMPLATE
358 self.config.check_and_update()
359
360 self.engines, self.auxiliary_engines = await create_test_models(self.config)
361 self.model_wrapper = self.engines[0]
362
363 async def test_generate(self): # noqa: C901
364 n = self.config.algorithm.repeat_times

Callers

nothing calls this directly

Calls 4

get_template_configFunction · 0.90
get_api_model_pathFunction · 0.90
create_test_modelsFunction · 0.85
check_and_updateMethod · 0.80

Tested by

no test coverage detected