trinity.common.models package#

Submodules#

Module contents#

trinity.common.models.create_inference_models(config: Config) Tuple[List[InferenceModel], List[List[InferenceModel]]][source]#

Create engine_num rollout models.

Each model has tensor_parallel_size workers.

trinity.common.models.create_debug_inference_model(config: Config) None[source]#

Create inference models for debugging.

trinity.common.models.get_debug_inference_model(config: Config) Tuple[InferenceModel, List[InferenceModel]][source]#

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