trinity.common.models package#

Submodules#

Module contents#

trinity.common.models.create_explorer_models(config: Config) Tuple[List, List[List]][源代码]#

Create rollout_models and auxiliary_models.

参数:

config -- The trinity configuration.

返回:

The rollout_models and auxiliary_models.

返回类型:

Tuple[List, List[List]]

trinity.common.models.create_vllm_inference_models(config: InferenceModelConfig, allocator: _BundleAllocator, actor_name: str) List[源代码]#
async trinity.common.models.create_debug_explorer_model(config: Config) None[源代码]#

Create explorer inference models for debugging.

trinity.common.models.get_debug_explorer_model(config: Config) Tuple[InferenceModel, List[InferenceModel]][源代码]#

Get the inference models for debugging. The models must be created by create_debug_explorer_model in another process first.

async trinity.common.models.get_auxiliary_model_wrappers(config: Config) Dict[str | int, List[ModelWrapper]][源代码]#

Get auxiliary models.

返回:

A dictionary mapping auxiliary model

index to a list of auxiliary model actor handlers.

返回类型:

Dict[str| int, List[ModelWrapper]]