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

Method asyncSetUp

tests/explorer/workflow_test.py:473–487  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

471)
472class MultiTurnWorkflowTest(unittest.IsolatedAsyncioTestCase):
473 async def asyncSetUp(self):
474 # configure the model
475 self.config = get_template_config()
476 self.config.mode = "explore"
477 self.config.model.model_path = get_model_path()
478 self.config.explorer.rollout_model.engine_num = 1 # self.engine_num
479 self.config.explorer.rollout_model.tensor_parallel_size = 1 # self.tensor_parallel_size
480 self.config.explorer.rollout_model.chat_template = CHAT_TEMPLATE
481 self.config.algorithm.repeat_times = 2 # self.repeat_times
482 self.config.explorer.rollout_model.enable_history = True # self.enable_history
483 self.config.check_and_update()
484 allocator = Allocator(self.config.explorer)
485 rollout_model, _ = await allocator.create_all_models()
486 self.model_wrapper = rollout_model[0]
487 await self.model_wrapper.prepare()
488
489 async def test_multi_turn_workflow(self):
490 task = Task(

Callers

nothing calls this directly

Calls 6

create_all_modelsMethod · 0.95
get_template_configFunction · 0.90
get_model_pathFunction · 0.90
AllocatorClass · 0.90
check_and_updateMethod · 0.80
prepareMethod · 0.45

Tested by

no test coverage detected