caikit.runtime.servicers.model_train_servicer ============================================= .. py:module:: caikit.runtime.servicers.model_train_servicer Attributes ---------- .. autoapisummary:: caikit.runtime.servicers.model_train_servicer.log Classes ------- .. autoapisummary:: caikit.runtime.servicers.model_train_servicer.ModelTrainServicerImpl Module Contents --------------- .. py:data:: log .. py:class:: ModelTrainServicerImpl(training_service: caikit.runtime.service_factory.ServicePackage) Bases: :py:obj:`caikit.runtime.protobufs.process_pb2_grpc.ProcessServicer` This class contains the implementation of the Model Train process.proto interface (a.k.a. the Process Servicer). .. py:attribute:: _training_service .. py:attribute:: _gts .. py:method:: Run(request, context) `Run` RPC -- launches a training job. Args: request(process_pb2.ProcessRequest): Generated from process.proto context(grpc.ServicerContext): Context object (contains request metadata, etc) Returns: process_pb2.ProcessResponse: Generated from process.proto .. py:method:: _update_file_references(train_message_request: google.protobuf.message.Message, training_input_dir: str) .. py:method:: _update_file_ref(file_path: str, training_input_dir: str) -> str :staticmethod: Append the training_input_dir to the file_path if the resulting path exists