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

Method asyncSetUp

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

Source from the content-addressed store, hash-verified

626
627class TestAPIServerCommon(VLLMTestBase):
628 async def asyncSetUp(self):
629 self.config = get_template_config()
630 self.config.mode = "explore"
631 self.config.model.model_path = get_model_path()
632 self.config.explorer.rollout_model.engine_type = "vllm"
633 self.config.explorer.rollout_model.engine_num = 1
634 self.config.explorer.rollout_model.chat_template = CHAT_TEMPLATE
635 self.config.explorer.rollout_model.tensor_parallel_size = 1
636 self.config.explorer.rollout_model.enable_openai_api = True
637 self.config.explorer.rollout_model.enable_auto_tool_choice = True
638 self.config.explorer.rollout_model.tool_call_parser = "qwen3_coder"
639 self.config.explorer.rollout_model.enable_history = True
640
641 self.config.check_and_update()
642 self.engines, self.auxiliary_engines = await create_test_models(self.config)
643 self.model_wrapper = self.engines[0]
644 self.model_wrapper_no_history = clone_wrapper(self.model_wrapper, enable_history=False)
645
646 async def test_api(self):
647 openai_client = self.model_wrapper.get_openai_client()

Callers

nothing calls this directly

Calls 5

get_template_configFunction · 0.90
get_model_pathFunction · 0.90
create_test_modelsFunction · 0.85
clone_wrapperFunction · 0.85
check_and_updateMethod · 0.80

Tested by

no test coverage detected