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

Method asyncSetUp

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

Source from the content-addressed store, hash-verified

409)
410class TestModelLen(VLLMTestBase):
411 async def asyncSetUp(self):
412 self.config = get_template_config()
413 self.config.mode = "explore"
414 self.config.model.model_path = get_model_path()
415 self.config.model.max_model_len = self.max_model_len
416 self.config.model.max_prompt_tokens = self.max_prompt_tokens
417 self.config.model.max_response_tokens = self.max_response_tokens
418 self.config.model.enable_prompt_truncation = True
419 self.config.explorer.rollout_model.enable_openai_api = True
420 self.config.explorer.rollout_model.enable_history = True
421 self.config.check_and_update()
422
423 self.engines, self.auxiliary_engines = await create_test_models(self.config)
424 self.model_wrapper = self.engines[0]
425 self.tokenizer = AutoTokenizer.from_pretrained(self.config.model.model_path)
426
427 async def test_model_len(self):
428 messages = [

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