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

Method asyncSetUp

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

Source from the content-addressed store, hash-verified

557
558class TestMessageProcess(VLLMTestBase):
559 async def asyncSetUp(self):
560 self.config = get_template_config()
561 self.config.mode = "explore"
562 self.config.model.model_path = get_model_path()
563 self.config.model.max_model_len = 100
564 self.config.model.max_prompt_tokens = 50
565 self.config.model.max_response_tokens = 50
566 self.config.model.enable_prompt_truncation = True
567 self.config.explorer.rollout_model.enable_openai_api = True
568 self.config.check_and_update()
569 self.engines, self.auxiliary_engines = await create_test_models(self.config)
570 self.model_wrapper = self.engines[0]
571
572 async def test_truncation_status(self):
573 """Test truncation status for multi-turn conversations."""

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected