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

Function clone_wrapper

tests/common/vllm_test.py:43–50  ·  view source on GitHub ↗
(wrapper: ModelWrapper, enable_history: bool)

Source from the content-addressed store, hash-verified

41
42
43def clone_wrapper(wrapper: ModelWrapper, enable_history: bool) -> ModelWrapper:
44 config = deepcopy(wrapper.config)
45 config.enable_history = enable_history
46 return ModelWrapper(
47 models=cast(list, wrapper.models),
48 config=config,
49 api_address=wrapper.api_address,
50 )
51
52
53def _get_text_config(model_path: str):

Callers 3

asyncSetUpMethod · 0.85
_setup_enginesMethod · 0.85
asyncSetUpMethod · 0.85

Calls 1

ModelWrapperClass · 0.90

Tested by

no test coverage detected