legacy

package
v0.122.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_v1_legacy_model_manager_service_proto protoreflect.FileDescriptor
View Source
var ModelsWorkerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "llmoperator.models.server.v1.ModelsWorkerService",
	HandlerType: (*ModelsWorkerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateStorageConfig",
			Handler:    _ModelsWorkerService_CreateStorageConfig_Handler,
		},
		{
			MethodName: "GetStorageConfig",
			Handler:    _ModelsWorkerService_GetStorageConfig_Handler,
		},
		{
			MethodName: "GetModel",
			Handler:    _ModelsWorkerService_GetModel_Handler,
		},
		{
			MethodName: "RegisterModel",
			Handler:    _ModelsWorkerService_RegisterModel_Handler,
		},
		{
			MethodName: "PublishModel",
			Handler:    _ModelsWorkerService_PublishModel_Handler,
		},
		{
			MethodName: "GetModelPath",
			Handler:    _ModelsWorkerService_GetModelPath_Handler,
		},
		{
			MethodName: "GetModelAttributes",
			Handler:    _ModelsWorkerService_GetModelAttributes_Handler,
		},
		{
			MethodName: "CreateBaseModel",
			Handler:    _ModelsWorkerService_CreateBaseModel_Handler,
		},
		{
			MethodName: "GetBaseModelPath",
			Handler:    _ModelsWorkerService_GetBaseModelPath_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/legacy/model_manager_service.proto",
}

ModelsWorkerService_ServiceDesc is the grpc.ServiceDesc for ModelsWorkerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterModelsWorkerServiceServer

func RegisterModelsWorkerServiceServer(s grpc.ServiceRegistrar, srv ModelsWorkerServiceServer)

Types

type ModelsWorkerServiceClient

type ModelsWorkerServiceClient interface {
	// CreateStorageConfig creates a new storage config. Used by model-manager-loader.
	CreateStorageConfig(ctx context.Context, in *v1.CreateStorageConfigRequest, opts ...grpc.CallOption) (*v1.StorageConfig, error)
	// GetStorageConfig gets a storage config. Used by model-manager-loader.
	GetStorageConfig(ctx context.Context, in *v1.GetStorageConfigRequest, opts ...grpc.CallOption) (*v1.StorageConfig, error)
	// GetModel gets a model. Used by inference-manager-engine.
	GetModel(ctx context.Context, in *v1.GetModelRequest, opts ...grpc.CallOption) (*v1.Model, error)
	// RegisterModel registers a new fine-tuned model. Used by job-manager-dispatcher.
	// The model is not published until PublishModel is called.
	RegisterModel(ctx context.Context, in *v1.RegisterModelRequest, opts ...grpc.CallOption) (*v1.RegisterModelResponse, error)
	// PublishModel publishes the fine-tuned model. Used by job-manager-dispatcher.
	PublishModel(ctx context.Context, in *v1.PublishModelRequest, opts ...grpc.CallOption) (*v1.PublishModelResponse, error)
	// GetModelPath returns the path of the model. Used by inference-manager-engine.
	GetModelPath(ctx context.Context, in *v1.GetModelPathRequest, opts ...grpc.CallOption) (*v1.GetModelPathResponse, error)
	// GetModelAttributes returns the attributes of the model. Used by inference-manager-engine.
	GetModelAttributes(ctx context.Context, in *v1.GetModelAttributesRequest, opts ...grpc.CallOption) (*v1.ModelAttributes, error)
	// CreateBaseModel creates a new base model. Used by model-manager-loader.
	CreateBaseModel(ctx context.Context, in *v1.CreateBaseModelRequest, opts ...grpc.CallOption) (*v1.BaseModel, error)
	// GetBaseModelPath returns the path of the base model. Used by job-manager-dispatcher,
	// inference-manager-engine, and model-manager-loader.
	GetBaseModelPath(ctx context.Context, in *v1.GetBaseModelPathRequest, opts ...grpc.CallOption) (*v1.GetBaseModelPathResponse, error)
}

ModelsWorkerServiceClient is the client API for ModelsWorkerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ModelsWorkerServiceServer

type ModelsWorkerServiceServer interface {
	// CreateStorageConfig creates a new storage config. Used by model-manager-loader.
	CreateStorageConfig(context.Context, *v1.CreateStorageConfigRequest) (*v1.StorageConfig, error)
	// GetStorageConfig gets a storage config. Used by model-manager-loader.
	GetStorageConfig(context.Context, *v1.GetStorageConfigRequest) (*v1.StorageConfig, error)
	// GetModel gets a model. Used by inference-manager-engine.
	GetModel(context.Context, *v1.GetModelRequest) (*v1.Model, error)
	// RegisterModel registers a new fine-tuned model. Used by job-manager-dispatcher.
	// The model is not published until PublishModel is called.
	RegisterModel(context.Context, *v1.RegisterModelRequest) (*v1.RegisterModelResponse, error)
	// PublishModel publishes the fine-tuned model. Used by job-manager-dispatcher.
	PublishModel(context.Context, *v1.PublishModelRequest) (*v1.PublishModelResponse, error)
	// GetModelPath returns the path of the model. Used by inference-manager-engine.
	GetModelPath(context.Context, *v1.GetModelPathRequest) (*v1.GetModelPathResponse, error)
	// GetModelAttributes returns the attributes of the model. Used by inference-manager-engine.
	GetModelAttributes(context.Context, *v1.GetModelAttributesRequest) (*v1.ModelAttributes, error)
	// CreateBaseModel creates a new base model. Used by model-manager-loader.
	CreateBaseModel(context.Context, *v1.CreateBaseModelRequest) (*v1.BaseModel, error)
	// GetBaseModelPath returns the path of the base model. Used by job-manager-dispatcher,
	// inference-manager-engine, and model-manager-loader.
	GetBaseModelPath(context.Context, *v1.GetBaseModelPathRequest) (*v1.GetBaseModelPathResponse, error)
	// contains filtered or unexported methods
}

ModelsWorkerServiceServer is the server API for ModelsWorkerService service. All implementations must embed UnimplementedModelsWorkerServiceServer for forward compatibility

type UnimplementedModelsWorkerServiceServer

type UnimplementedModelsWorkerServiceServer struct {
}

UnimplementedModelsWorkerServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedModelsWorkerServiceServer) CreateBaseModel

func (UnimplementedModelsWorkerServiceServer) CreateStorageConfig

func (UnimplementedModelsWorkerServiceServer) GetBaseModelPath

func (UnimplementedModelsWorkerServiceServer) GetModel

func (UnimplementedModelsWorkerServiceServer) GetModelAttributes

func (UnimplementedModelsWorkerServiceServer) GetModelPath

func (UnimplementedModelsWorkerServiceServer) GetStorageConfig

func (UnimplementedModelsWorkerServiceServer) PublishModel

func (UnimplementedModelsWorkerServiceServer) RegisterModel

type UnsafeModelsWorkerServiceServer

type UnsafeModelsWorkerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeModelsWorkerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModelsWorkerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL