Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterModelsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterModelsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelsServiceClient) error
- func RegisterModelsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterModelsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelsServiceServer) error
- func RegisterModelsServiceServer(s grpc.ServiceRegistrar, srv ModelsServiceServer)
- func RegisterModelsWorkerServiceServer(s grpc.ServiceRegistrar, srv ModelsWorkerServiceServer)
- type AcquireUnloadedBaseModelRequest
- func (*AcquireUnloadedBaseModelRequest) Descriptor() ([]byte, []int)deprecated
- func (*AcquireUnloadedBaseModelRequest) ProtoMessage()
- func (x *AcquireUnloadedBaseModelRequest) ProtoReflect() protoreflect.Message
- func (x *AcquireUnloadedBaseModelRequest) Reset()
- func (x *AcquireUnloadedBaseModelRequest) String() string
- type AcquireUnloadedBaseModelResponse
- func (*AcquireUnloadedBaseModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AcquireUnloadedBaseModelResponse) GetBaseModelId() string
- func (x *AcquireUnloadedBaseModelResponse) GetProjectId() string
- func (x *AcquireUnloadedBaseModelResponse) GetSourceRepository() SourceRepository
- func (*AcquireUnloadedBaseModelResponse) ProtoMessage()
- func (x *AcquireUnloadedBaseModelResponse) ProtoReflect() protoreflect.Message
- func (x *AcquireUnloadedBaseModelResponse) Reset()
- func (x *AcquireUnloadedBaseModelResponse) String() string
- type AcquireUnloadedModelRequest
- type AcquireUnloadedModelResponse
- func (*AcquireUnloadedModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AcquireUnloadedModelResponse) GetDestPath() string
- func (x *AcquireUnloadedModelResponse) GetIsBaseModel() bool
- func (x *AcquireUnloadedModelResponse) GetModelFileLocation() string
- func (x *AcquireUnloadedModelResponse) GetModelId() string
- func (x *AcquireUnloadedModelResponse) GetSourceRepository() SourceRepository
- func (*AcquireUnloadedModelResponse) ProtoMessage()
- func (x *AcquireUnloadedModelResponse) ProtoReflect() protoreflect.Message
- func (x *AcquireUnloadedModelResponse) Reset()
- func (x *AcquireUnloadedModelResponse) String() string
- type ActivateModelRequest
- func (*ActivateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ActivateModelRequest) GetId() string
- func (*ActivateModelRequest) ProtoMessage()
- func (x *ActivateModelRequest) ProtoReflect() protoreflect.Message
- func (x *ActivateModelRequest) Reset()
- func (x *ActivateModelRequest) String() string
- type ActivateModelResponse
- type ActivationStatus
- func (ActivationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ActivationStatus) Enum() *ActivationStatus
- func (ActivationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ActivationStatus) Number() protoreflect.EnumNumber
- func (x ActivationStatus) String() string
- func (ActivationStatus) Type() protoreflect.EnumType
- type AdapterType
- func (AdapterType) Descriptor() protoreflect.EnumDescriptor
- func (x AdapterType) Enum() *AdapterType
- func (AdapterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdapterType) Number() protoreflect.EnumNumber
- func (x AdapterType) String() string
- func (AdapterType) Type() protoreflect.EnumType
- type BaseModel
- func (*BaseModel) Descriptor() ([]byte, []int)deprecated
- func (x *BaseModel) GetCreated() int64
- func (x *BaseModel) GetId() string
- func (x *BaseModel) GetObject() string
- func (*BaseModel) ProtoMessage()
- func (x *BaseModel) ProtoReflect() protoreflect.Message
- func (x *BaseModel) Reset()
- func (x *BaseModel) String() string
- type CreateBaseModelRequest
- func (*CreateBaseModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBaseModelRequest) GetFormats() []ModelFormat
- func (x *CreateBaseModelRequest) GetGgufModelPath() string
- func (x *CreateBaseModelRequest) GetId() string
- func (x *CreateBaseModelRequest) GetPath() string
- func (x *CreateBaseModelRequest) GetProjectId() string
- func (x *CreateBaseModelRequest) GetSourceRepository() SourceRepository
- func (*CreateBaseModelRequest) ProtoMessage()
- func (x *CreateBaseModelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBaseModelRequest) Reset()
- func (x *CreateBaseModelRequest) String() string
- type CreateHFModelRepoRequest
- func (*CreateHFModelRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateHFModelRepoRequest) GetName() string
- func (x *CreateHFModelRepoRequest) GetProjectId() string
- func (*CreateHFModelRepoRequest) ProtoMessage()
- func (x *CreateHFModelRepoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateHFModelRepoRequest) Reset()
- func (x *CreateHFModelRepoRequest) String() string
- type CreateModelRequest
- func (*CreateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateModelRequest) GetBaseModelId() string
- func (x *CreateModelRequest) GetConfig() *ModelConfig
- func (x *CreateModelRequest) GetId() string
- func (x *CreateModelRequest) GetIsFineTunedModel() bool
- func (x *CreateModelRequest) GetIsProjectScoped() bool
- func (x *CreateModelRequest) GetModelFileLocation() string
- func (x *CreateModelRequest) GetSourceRepository() SourceRepository
- func (x *CreateModelRequest) GetSuffix() string
- func (*CreateModelRequest) ProtoMessage()
- func (x *CreateModelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateModelRequest) Reset()
- func (x *CreateModelRequest) String() string
- type CreateStorageConfigRequest
- func (*CreateStorageConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStorageConfigRequest) GetPathPrefix() string
- func (*CreateStorageConfigRequest) ProtoMessage()
- func (x *CreateStorageConfigRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStorageConfigRequest) Reset()
- func (x *CreateStorageConfigRequest) String() string
- type DeactivateModelRequest
- func (*DeactivateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeactivateModelRequest) GetId() string
- func (*DeactivateModelRequest) ProtoMessage()
- func (x *DeactivateModelRequest) ProtoReflect() protoreflect.Message
- func (x *DeactivateModelRequest) Reset()
- func (x *DeactivateModelRequest) String() string
- type DeactivateModelResponse
- type DeleteModelRequest
- type DeleteModelResponse
- func (*DeleteModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModelResponse) GetDeleted() bool
- func (x *DeleteModelResponse) GetId() string
- func (x *DeleteModelResponse) GetObject() string
- func (*DeleteModelResponse) ProtoMessage()
- func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteModelResponse) Reset()
- func (x *DeleteModelResponse) String() string
- type GetBaseModelPathRequest
- func (*GetBaseModelPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBaseModelPathRequest) GetId() string
- func (x *GetBaseModelPathRequest) GetProjectId() string
- func (*GetBaseModelPathRequest) ProtoMessage()
- func (x *GetBaseModelPathRequest) ProtoReflect() protoreflect.Message
- func (x *GetBaseModelPathRequest) Reset()
- func (x *GetBaseModelPathRequest) String() string
- type GetBaseModelPathResponse
- func (*GetBaseModelPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBaseModelPathResponse) GetFormats() []ModelFormat
- func (x *GetBaseModelPathResponse) GetGgufModelPath() string
- func (x *GetBaseModelPathResponse) GetPath() string
- func (*GetBaseModelPathResponse) ProtoMessage()
- func (x *GetBaseModelPathResponse) ProtoReflect() protoreflect.Message
- func (x *GetBaseModelPathResponse) Reset()
- func (x *GetBaseModelPathResponse) String() string
- type GetHFModelRepoRequest
- func (*GetHFModelRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHFModelRepoRequest) GetName() string
- func (x *GetHFModelRepoRequest) GetProjectId() string
- func (*GetHFModelRepoRequest) ProtoMessage()
- func (x *GetHFModelRepoRequest) ProtoReflect() protoreflect.Message
- func (x *GetHFModelRepoRequest) Reset()
- func (x *GetHFModelRepoRequest) String() string
- type GetModelAttributesRequest
- func (*GetModelAttributesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelAttributesRequest) GetId() string
- func (*GetModelAttributesRequest) ProtoMessage()
- func (x *GetModelAttributesRequest) ProtoReflect() protoreflect.Message
- func (x *GetModelAttributesRequest) Reset()
- func (x *GetModelAttributesRequest) String() string
- type GetModelPathRequest
- func (*GetModelPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelPathRequest) GetId() string
- func (*GetModelPathRequest) ProtoMessage()
- func (x *GetModelPathRequest) ProtoReflect() protoreflect.Message
- func (x *GetModelPathRequest) Reset()
- func (x *GetModelPathRequest) String() string
- type GetModelPathResponse
- func (*GetModelPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelPathResponse) GetPath() string
- func (*GetModelPathResponse) ProtoMessage()
- func (x *GetModelPathResponse) ProtoReflect() protoreflect.Message
- func (x *GetModelPathResponse) Reset()
- func (x *GetModelPathResponse) String() string
- type GetModelRequest
- func (*GetModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelRequest) GetId() string
- func (x *GetModelRequest) GetIncludeLoadingModel() bool
- func (*GetModelRequest) ProtoMessage()
- func (x *GetModelRequest) ProtoReflect() protoreflect.Message
- func (x *GetModelRequest) Reset()
- func (x *GetModelRequest) String() string
- type GetStorageConfigRequest
- type HFModelRepo
- type ListModelsRequest
- func (*ListModelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsRequest) GetAfter() string
- func (x *ListModelsRequest) GetIncludeLoadingModels() bool
- func (x *ListModelsRequest) GetLimit() int32
- func (*ListModelsRequest) ProtoMessage()
- func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
- func (x *ListModelsRequest) Reset()
- func (x *ListModelsRequest) String() string
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsResponse) GetData() []*Model
- func (x *ListModelsResponse) GetHasMore() bool
- func (x *ListModelsResponse) GetObject() string
- func (x *ListModelsResponse) GetTotalItems() int32
- func (*ListModelsResponse) ProtoMessage()
- func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModelsResponse) Reset()
- func (x *ListModelsResponse) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetActivationStatus() ActivationStatus
- func (x *Model) GetBaseModelId() string
- func (x *Model) GetConfig() *ModelConfig
- func (x *Model) GetCreated() int64
- func (x *Model) GetFormats() []ModelFormat
- func (x *Model) GetId() string
- func (x *Model) GetIsBaseModel() bool
- func (x *Model) GetLoadingFailureReason() string
- func (x *Model) GetLoadingStatus() ModelLoadingStatus
- func (x *Model) GetLoadingStatusMessage() string
- func (x *Model) GetObject() string
- func (x *Model) GetOwnedBy() string
- func (x *Model) GetSourceRepository() SourceRepository
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type ModelAttributes
- func (*ModelAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *ModelAttributes) GetAdapter() AdapterType
- func (x *ModelAttributes) GetBaseModel() string
- func (x *ModelAttributes) GetPath() string
- func (x *ModelAttributes) GetQuantization() QuantizationType
- func (*ModelAttributes) ProtoMessage()
- func (x *ModelAttributes) ProtoReflect() protoreflect.Message
- func (x *ModelAttributes) Reset()
- func (x *ModelAttributes) String() string
- type ModelConfig
- func (*ModelConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ModelConfig) GetClusterAllocationPolicy() *ModelConfig_ClusterAllocationPolicy
- func (x *ModelConfig) GetRuntimeConfig() *ModelConfig_RuntimeConfig
- func (*ModelConfig) ProtoMessage()
- func (x *ModelConfig) ProtoReflect() protoreflect.Message
- func (x *ModelConfig) Reset()
- func (x *ModelConfig) String() string
- type ModelConfig_ClusterAllocationPolicy
- func (*ModelConfig_ClusterAllocationPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *ModelConfig_ClusterAllocationPolicy) GetAllowedClusterIds() []string
- func (x *ModelConfig_ClusterAllocationPolicy) GetEnableOnDemandAllocation() bool
- func (*ModelConfig_ClusterAllocationPolicy) ProtoMessage()
- func (x *ModelConfig_ClusterAllocationPolicy) ProtoReflect() protoreflect.Message
- func (x *ModelConfig_ClusterAllocationPolicy) Reset()
- func (x *ModelConfig_ClusterAllocationPolicy) String() string
- type ModelConfig_RuntimeConfig
- func (*ModelConfig_RuntimeConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ModelConfig_RuntimeConfig) GetExtraArgs() []string
- func (x *ModelConfig_RuntimeConfig) GetReplicas() int32
- func (x *ModelConfig_RuntimeConfig) GetResources() *ModelConfig_RuntimeConfig_Resources
- func (*ModelConfig_RuntimeConfig) ProtoMessage()
- func (x *ModelConfig_RuntimeConfig) ProtoReflect() protoreflect.Message
- func (x *ModelConfig_RuntimeConfig) Reset()
- func (x *ModelConfig_RuntimeConfig) String() string
- type ModelConfig_RuntimeConfig_Resources
- func (*ModelConfig_RuntimeConfig_Resources) Descriptor() ([]byte, []int)deprecated
- func (x *ModelConfig_RuntimeConfig_Resources) GetGpu() int32
- func (*ModelConfig_RuntimeConfig_Resources) ProtoMessage()
- func (x *ModelConfig_RuntimeConfig_Resources) ProtoReflect() protoreflect.Message
- func (x *ModelConfig_RuntimeConfig_Resources) Reset()
- func (x *ModelConfig_RuntimeConfig_Resources) String() string
- type ModelFormat
- func (ModelFormat) Descriptor() protoreflect.EnumDescriptor
- func (x ModelFormat) Enum() *ModelFormat
- func (ModelFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModelFormat) Number() protoreflect.EnumNumber
- func (x ModelFormat) String() string
- func (ModelFormat) Type() protoreflect.EnumType
- type ModelFormats
- type ModelLoadingStatus
- func (ModelLoadingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ModelLoadingStatus) Enum() *ModelLoadingStatus
- func (ModelLoadingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ModelLoadingStatus) Number() protoreflect.EnumNumber
- func (x ModelLoadingStatus) String() string
- func (ModelLoadingStatus) Type() protoreflect.EnumType
- type ModelsServiceClient
- type ModelsServiceServer
- type ModelsWorkerServiceClient
- type ModelsWorkerServiceServer
- type PublishModelRequest
- func (*PublishModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishModelRequest) GetId() string
- func (*PublishModelRequest) ProtoMessage()
- func (x *PublishModelRequest) ProtoReflect() protoreflect.Message
- func (x *PublishModelRequest) Reset()
- func (x *PublishModelRequest) String() string
- type PublishModelResponse
- type QuantizationType
- func (QuantizationType) Descriptor() protoreflect.EnumDescriptor
- func (x QuantizationType) Enum() *QuantizationType
- func (QuantizationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x QuantizationType) Number() protoreflect.EnumNumber
- func (x QuantizationType) String() string
- func (QuantizationType) Type() protoreflect.EnumType
- type RegisterModelRequest
- func (*RegisterModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterModelRequest) GetAdapter() AdapterType
- func (x *RegisterModelRequest) GetBaseModel() string
- func (x *RegisterModelRequest) GetId() string
- func (x *RegisterModelRequest) GetOrganizationId() string
- func (x *RegisterModelRequest) GetPath() string
- func (x *RegisterModelRequest) GetProjectId() string
- func (x *RegisterModelRequest) GetQuantization() QuantizationType
- func (x *RegisterModelRequest) GetSuffix() string
- func (*RegisterModelRequest) ProtoMessage()
- func (x *RegisterModelRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterModelRequest) Reset()
- func (x *RegisterModelRequest) String() string
- type RegisterModelResponse
- func (*RegisterModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterModelResponse) GetId() string
- func (x *RegisterModelResponse) GetPath() string
- func (*RegisterModelResponse) ProtoMessage()
- func (x *RegisterModelResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterModelResponse) Reset()
- func (x *RegisterModelResponse) String() string
- type SourceRepository
- func (SourceRepository) Descriptor() protoreflect.EnumDescriptor
- func (x SourceRepository) Enum() *SourceRepository
- func (SourceRepository) EnumDescriptor() ([]byte, []int)deprecated
- func (x SourceRepository) Number() protoreflect.EnumNumber
- func (x SourceRepository) String() string
- func (SourceRepository) Type() protoreflect.EnumType
- type StorageConfig
- type UnimplementedModelsServiceServer
- func (UnimplementedModelsServiceServer) ActivateModel(context.Context, *ActivateModelRequest) (*ActivateModelResponse, error)
- func (UnimplementedModelsServiceServer) CreateModel(context.Context, *CreateModelRequest) (*Model, error)
- func (UnimplementedModelsServiceServer) DeactivateModel(context.Context, *DeactivateModelRequest) (*DeactivateModelResponse, error)
- func (UnimplementedModelsServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
- func (UnimplementedModelsServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
- func (UnimplementedModelsServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (UnimplementedModelsServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
- type UnimplementedModelsWorkerServiceServer
- func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedBaseModel(context.Context, *AcquireUnloadedBaseModelRequest) (*AcquireUnloadedBaseModelResponse, error)
- func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedModel(context.Context, *AcquireUnloadedModelRequest) (*AcquireUnloadedModelResponse, error)
- func (UnimplementedModelsWorkerServiceServer) CreateBaseModel(context.Context, *CreateBaseModelRequest) (*BaseModel, error)
- func (UnimplementedModelsWorkerServiceServer) CreateHFModelRepo(context.Context, *CreateHFModelRepoRequest) (*HFModelRepo, error)
- func (UnimplementedModelsWorkerServiceServer) CreateStorageConfig(context.Context, *CreateStorageConfigRequest) (*StorageConfig, error)
- func (UnimplementedModelsWorkerServiceServer) GetBaseModelPath(context.Context, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
- func (UnimplementedModelsWorkerServiceServer) GetHFModelRepo(context.Context, *GetHFModelRepoRequest) (*HFModelRepo, error)
- func (UnimplementedModelsWorkerServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
- func (UnimplementedModelsWorkerServiceServer) GetModelAttributes(context.Context, *GetModelAttributesRequest) (*ModelAttributes, error)
- func (UnimplementedModelsWorkerServiceServer) GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
- func (UnimplementedModelsWorkerServiceServer) GetStorageConfig(context.Context, *GetStorageConfigRequest) (*StorageConfig, error)
- func (UnimplementedModelsWorkerServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (UnimplementedModelsWorkerServiceServer) PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
- func (UnimplementedModelsWorkerServiceServer) RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
- func (UnimplementedModelsWorkerServiceServer) UpdateBaseModelLoadingStatus(context.Context, *UpdateBaseModelLoadingStatusRequest) (*UpdateBaseModelLoadingStatusResponse, error)
- func (UnimplementedModelsWorkerServiceServer) UpdateModelLoadingStatus(context.Context, *UpdateModelLoadingStatusRequest) (*UpdateModelLoadingStatusResponse, error)
- type UnsafeModelsServiceServer
- type UnsafeModelsWorkerServiceServer
- type UpdateBaseModelLoadingStatusRequest
- func (*UpdateBaseModelLoadingStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBaseModelLoadingStatusRequest) GetFailure() *UpdateBaseModelLoadingStatusRequest_Failure
- func (x *UpdateBaseModelLoadingStatusRequest) GetId() string
- func (m *UpdateBaseModelLoadingStatusRequest) GetLoadingResult() isUpdateBaseModelLoadingStatusRequest_LoadingResult
- func (x *UpdateBaseModelLoadingStatusRequest) GetProjectId() string
- func (x *UpdateBaseModelLoadingStatusRequest) GetStatusMessage() string
- func (x *UpdateBaseModelLoadingStatusRequest) GetSuccess() *UpdateBaseModelLoadingStatusRequest_Success
- func (*UpdateBaseModelLoadingStatusRequest) ProtoMessage()
- func (x *UpdateBaseModelLoadingStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBaseModelLoadingStatusRequest) Reset()
- func (x *UpdateBaseModelLoadingStatusRequest) String() string
- type UpdateBaseModelLoadingStatusRequest_Failure
- func (*UpdateBaseModelLoadingStatusRequest_Failure) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBaseModelLoadingStatusRequest_Failure) GetReason() string
- func (*UpdateBaseModelLoadingStatusRequest_Failure) ProtoMessage()
- func (x *UpdateBaseModelLoadingStatusRequest_Failure) ProtoReflect() protoreflect.Message
- func (x *UpdateBaseModelLoadingStatusRequest_Failure) Reset()
- func (x *UpdateBaseModelLoadingStatusRequest_Failure) String() string
- type UpdateBaseModelLoadingStatusRequest_Failure_
- type UpdateBaseModelLoadingStatusRequest_Success
- func (*UpdateBaseModelLoadingStatusRequest_Success) Descriptor() ([]byte, []int)deprecated
- func (*UpdateBaseModelLoadingStatusRequest_Success) ProtoMessage()
- func (x *UpdateBaseModelLoadingStatusRequest_Success) ProtoReflect() protoreflect.Message
- func (x *UpdateBaseModelLoadingStatusRequest_Success) Reset()
- func (x *UpdateBaseModelLoadingStatusRequest_Success) String() string
- type UpdateBaseModelLoadingStatusRequest_Success_
- type UpdateBaseModelLoadingStatusResponse
- func (*UpdateBaseModelLoadingStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateBaseModelLoadingStatusResponse) ProtoMessage()
- func (x *UpdateBaseModelLoadingStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateBaseModelLoadingStatusResponse) Reset()
- func (x *UpdateBaseModelLoadingStatusResponse) String() string
- type UpdateModelLoadingStatusRequest
- func (*UpdateModelLoadingStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateModelLoadingStatusRequest) GetFailure() *UpdateModelLoadingStatusRequest_Failure
- func (x *UpdateModelLoadingStatusRequest) GetId() string
- func (m *UpdateModelLoadingStatusRequest) GetLoadingResult() isUpdateModelLoadingStatusRequest_LoadingResult
- func (x *UpdateModelLoadingStatusRequest) GetStatusMessage() string
- func (x *UpdateModelLoadingStatusRequest) GetSuccess() *UpdateModelLoadingStatusRequest_Success
- func (*UpdateModelLoadingStatusRequest) ProtoMessage()
- func (x *UpdateModelLoadingStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateModelLoadingStatusRequest) Reset()
- func (x *UpdateModelLoadingStatusRequest) String() string
- type UpdateModelLoadingStatusRequest_Failure
- func (*UpdateModelLoadingStatusRequest_Failure) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateModelLoadingStatusRequest_Failure) GetReason() string
- func (*UpdateModelLoadingStatusRequest_Failure) ProtoMessage()
- func (x *UpdateModelLoadingStatusRequest_Failure) ProtoReflect() protoreflect.Message
- func (x *UpdateModelLoadingStatusRequest_Failure) Reset()
- func (x *UpdateModelLoadingStatusRequest_Failure) String() string
- type UpdateModelLoadingStatusRequest_Failure_
- type UpdateModelLoadingStatusRequest_Success
- func (*UpdateModelLoadingStatusRequest_Success) Descriptor() ([]byte, []int)deprecated
- func (*UpdateModelLoadingStatusRequest_Success) ProtoMessage()
- func (x *UpdateModelLoadingStatusRequest_Success) ProtoReflect() protoreflect.Message
- func (x *UpdateModelLoadingStatusRequest_Success) Reset()
- func (x *UpdateModelLoadingStatusRequest_Success) String() string
- type UpdateModelLoadingStatusRequest_Success_
- type UpdateModelLoadingStatusResponse
- func (*UpdateModelLoadingStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateModelLoadingStatusResponse) ProtoMessage()
- func (x *UpdateModelLoadingStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateModelLoadingStatusResponse) Reset()
- func (x *UpdateModelLoadingStatusResponse) String() string
- type UpdateModelRequest
- func (*UpdateModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateModelRequest) GetModel() *Model
- func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateModelRequest) ProtoMessage()
- func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateModelRequest) Reset()
- func (x *UpdateModelRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ModelFormat_name = map[int32]string{ 0: "MODEL_FORMAT_UNSPECIFIED", 1: "MODEL_FORMAT_GGUF", 2: "MODEL_FORMAT_HUGGING_FACE", 3: "MODEL_FORMAT_NVIDIA_TRITON", 4: "MODEL_FORMAT_OLLAMA", } ModelFormat_value = map[string]int32{ "MODEL_FORMAT_UNSPECIFIED": 0, "MODEL_FORMAT_GGUF": 1, "MODEL_FORMAT_HUGGING_FACE": 2, "MODEL_FORMAT_NVIDIA_TRITON": 3, "MODEL_FORMAT_OLLAMA": 4, } )
Enum value maps for ModelFormat.
var ( ModelLoadingStatus_name = map[int32]string{ 0: "MODEL_LOADING_STATUS_UNSPECIFIED", 1: "MODEL_LOADING_STATUS_REQUESTED", 2: "MODEL_LOADING_STATUS_LOADING", 3: "MODEL_LOADING_STATUS_SUCCEEDED", 4: "MODEL_LOADING_STATUS_FAILED", } ModelLoadingStatus_value = map[string]int32{ "MODEL_LOADING_STATUS_UNSPECIFIED": 0, "MODEL_LOADING_STATUS_REQUESTED": 1, "MODEL_LOADING_STATUS_LOADING": 2, "MODEL_LOADING_STATUS_SUCCEEDED": 3, "MODEL_LOADING_STATUS_FAILED": 4, } )
Enum value maps for ModelLoadingStatus.
var ( SourceRepository_name = map[int32]string{ 0: "SOURCE_REPOSITORY_UNSPECIFIED", 1: "SOURCE_REPOSITORY_OBJECT_STORE", 2: "SOURCE_REPOSITORY_HUGGING_FACE", 3: "SOURCE_REPOSITORY_OLLAMA", 4: "SOURCE_REPOSITORY_FINE_TUNING", } SourceRepository_value = map[string]int32{ "SOURCE_REPOSITORY_UNSPECIFIED": 0, "SOURCE_REPOSITORY_OBJECT_STORE": 1, "SOURCE_REPOSITORY_HUGGING_FACE": 2, "SOURCE_REPOSITORY_OLLAMA": 3, "SOURCE_REPOSITORY_FINE_TUNING": 4, } )
Enum value maps for SourceRepository.
var ( ActivationStatus_name = map[int32]string{ 0: "ACTIVATION_STATUS_UNSPECIFIED", 1: "ACTIVATION_STATUS_ACTIVE", 2: "ACTIVATION_STATUS_INACTIVE", } ActivationStatus_value = map[string]int32{ "ACTIVATION_STATUS_UNSPECIFIED": 0, "ACTIVATION_STATUS_ACTIVE": 1, "ACTIVATION_STATUS_INACTIVE": 2, } )
Enum value maps for ActivationStatus.
var ( AdapterType_name = map[int32]string{ 0: "ADAPTER_TYPE_UNSPECIFIED", 1: "ADAPTER_TYPE_LORA", 2: "ADAPTER_TYPE_QLORA", } AdapterType_value = map[string]int32{ "ADAPTER_TYPE_UNSPECIFIED": 0, "ADAPTER_TYPE_LORA": 1, "ADAPTER_TYPE_QLORA": 2, } )
Enum value maps for AdapterType.
var ( QuantizationType_name = map[int32]string{ 0: "QUANTIZATION_TYPE_UNSPECIFIED", 1: "QUANTIZATION_TYPE_GGUF", 2: "QUANTIZATION_TYPE_AWQ", } QuantizationType_value = map[string]int32{ "QUANTIZATION_TYPE_UNSPECIFIED": 0, "QUANTIZATION_TYPE_GGUF": 1, "QUANTIZATION_TYPE_AWQ": 2, } )
Enum value maps for QuantizationType.
var File_api_v1_model_manager_service_proto protoreflect.FileDescriptor
var ModelsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "llmariner.models.server.v1.ModelsService", HandlerType: (*ModelsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetModel", Handler: _ModelsService_GetModel_Handler, }, { MethodName: "ListModels", Handler: _ModelsService_ListModels_Handler, }, { MethodName: "DeleteModel", Handler: _ModelsService_DeleteModel_Handler, }, { MethodName: "CreateModel", Handler: _ModelsService_CreateModel_Handler, }, { MethodName: "UpdateModel", Handler: _ModelsService_UpdateModel_Handler, }, { MethodName: "ActivateModel", Handler: _ModelsService_ActivateModel_Handler, }, { MethodName: "DeactivateModel", Handler: _ModelsService_DeactivateModel_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/model_manager_service.proto", }
ModelsService_ServiceDesc is the grpc.ServiceDesc for ModelsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ModelsWorkerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "llmariner.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: "ListModels", Handler: _ModelsWorkerService_ListModels_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, }, { MethodName: "CreateHFModelRepo", Handler: _ModelsWorkerService_CreateHFModelRepo_Handler, }, { MethodName: "GetHFModelRepo", Handler: _ModelsWorkerService_GetHFModelRepo_Handler, }, { MethodName: "AcquireUnloadedBaseModel", Handler: _ModelsWorkerService_AcquireUnloadedBaseModel_Handler, }, { MethodName: "AcquireUnloadedModel", Handler: _ModelsWorkerService_AcquireUnloadedModel_Handler, }, { MethodName: "UpdateBaseModelLoadingStatus", Handler: _ModelsWorkerService_UpdateBaseModelLoadingStatus_Handler, }, { MethodName: "UpdateModelLoadingStatus", Handler: _ModelsWorkerService_UpdateModelLoadingStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/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 RegisterModelsServiceHandler ¶
func RegisterModelsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterModelsServiceHandler registers the http handlers for service ModelsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterModelsServiceHandlerClient ¶
func RegisterModelsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelsServiceClient) error
RegisterModelsServiceHandlerClient registers the http handlers for service ModelsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ModelsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ModelsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ModelsServiceClient" to call the correct interceptors.
func RegisterModelsServiceHandlerFromEndpoint ¶
func RegisterModelsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterModelsServiceHandlerFromEndpoint is same as RegisterModelsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterModelsServiceHandlerServer ¶
func RegisterModelsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelsServiceServer) error
RegisterModelsServiceHandlerServer registers the http handlers for service ModelsService to "mux". UnaryRPC :call ModelsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterModelsServiceHandlerFromEndpoint instead.
func RegisterModelsServiceServer ¶
func RegisterModelsServiceServer(s grpc.ServiceRegistrar, srv ModelsServiceServer)
func RegisterModelsWorkerServiceServer ¶
func RegisterModelsWorkerServiceServer(s grpc.ServiceRegistrar, srv ModelsWorkerServiceServer)
Types ¶
type AcquireUnloadedBaseModelRequest ¶ added in v1.10.0
type AcquireUnloadedBaseModelRequest struct {
// contains filtered or unexported fields
}
func (*AcquireUnloadedBaseModelRequest) Descriptor
deprecated
added in
v1.10.0
func (*AcquireUnloadedBaseModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcquireUnloadedBaseModelRequest.ProtoReflect.Descriptor instead.
func (*AcquireUnloadedBaseModelRequest) ProtoMessage ¶ added in v1.10.0
func (*AcquireUnloadedBaseModelRequest) ProtoMessage()
func (*AcquireUnloadedBaseModelRequest) ProtoReflect ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelRequest) ProtoReflect() protoreflect.Message
func (*AcquireUnloadedBaseModelRequest) Reset ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelRequest) Reset()
func (*AcquireUnloadedBaseModelRequest) String ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelRequest) String() string
type AcquireUnloadedBaseModelResponse ¶ added in v1.10.0
type AcquireUnloadedBaseModelResponse struct {
// base_model_id is ID of the acquired base model. Empty if there is no unloaded base model.
BaseModelId string `protobuf:"bytes,1,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
SourceRepository SourceRepository `` /* 159-byte string literal not displayed */
ProjectId string `protobuf:"bytes,3,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*AcquireUnloadedBaseModelResponse) Descriptor
deprecated
added in
v1.10.0
func (*AcquireUnloadedBaseModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcquireUnloadedBaseModelResponse.ProtoReflect.Descriptor instead.
func (*AcquireUnloadedBaseModelResponse) GetBaseModelId ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelResponse) GetBaseModelId() string
func (*AcquireUnloadedBaseModelResponse) GetProjectId ¶ added in v1.22.0
func (x *AcquireUnloadedBaseModelResponse) GetProjectId() string
func (*AcquireUnloadedBaseModelResponse) GetSourceRepository ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelResponse) GetSourceRepository() SourceRepository
func (*AcquireUnloadedBaseModelResponse) ProtoMessage ¶ added in v1.10.0
func (*AcquireUnloadedBaseModelResponse) ProtoMessage()
func (*AcquireUnloadedBaseModelResponse) ProtoReflect ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelResponse) ProtoReflect() protoreflect.Message
func (*AcquireUnloadedBaseModelResponse) Reset ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelResponse) Reset()
func (*AcquireUnloadedBaseModelResponse) String ¶ added in v1.10.0
func (x *AcquireUnloadedBaseModelResponse) String() string
type AcquireUnloadedModelRequest ¶ added in v1.14.0
type AcquireUnloadedModelRequest struct {
// contains filtered or unexported fields
}
func (*AcquireUnloadedModelRequest) Descriptor
deprecated
added in
v1.14.0
func (*AcquireUnloadedModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use AcquireUnloadedModelRequest.ProtoReflect.Descriptor instead.
func (*AcquireUnloadedModelRequest) ProtoMessage ¶ added in v1.14.0
func (*AcquireUnloadedModelRequest) ProtoMessage()
func (*AcquireUnloadedModelRequest) ProtoReflect ¶ added in v1.14.0
func (x *AcquireUnloadedModelRequest) ProtoReflect() protoreflect.Message
func (*AcquireUnloadedModelRequest) Reset ¶ added in v1.14.0
func (x *AcquireUnloadedModelRequest) Reset()
func (*AcquireUnloadedModelRequest) String ¶ added in v1.14.0
func (x *AcquireUnloadedModelRequest) String() string
type AcquireUnloadedModelResponse ¶ added in v1.14.0
type AcquireUnloadedModelResponse struct {
ModelId string `protobuf:"bytes,1,opt,name=model_id,json=modelId,proto3" json:"model_id,omitempty"`
IsBaseModel bool `protobuf:"varint,2,opt,name=is_base_model,json=isBaseModel,proto3" json:"is_base_model,omitempty"`
SourceRepository SourceRepository `` /* 159-byte string literal not displayed */
ModelFileLocation string `protobuf:"bytes,4,opt,name=model_file_location,json=modelFileLocation,proto3" json:"model_file_location,omitempty"`
DestPath string `protobuf:"bytes,5,opt,name=dest_path,json=destPath,proto3" json:"dest_path,omitempty"`
// contains filtered or unexported fields
}
func (*AcquireUnloadedModelResponse) Descriptor
deprecated
added in
v1.14.0
func (*AcquireUnloadedModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use AcquireUnloadedModelResponse.ProtoReflect.Descriptor instead.
func (*AcquireUnloadedModelResponse) GetDestPath ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) GetDestPath() string
func (*AcquireUnloadedModelResponse) GetIsBaseModel ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) GetIsBaseModel() bool
func (*AcquireUnloadedModelResponse) GetModelFileLocation ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) GetModelFileLocation() string
func (*AcquireUnloadedModelResponse) GetModelId ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) GetModelId() string
func (*AcquireUnloadedModelResponse) GetSourceRepository ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) GetSourceRepository() SourceRepository
func (*AcquireUnloadedModelResponse) ProtoMessage ¶ added in v1.14.0
func (*AcquireUnloadedModelResponse) ProtoMessage()
func (*AcquireUnloadedModelResponse) ProtoReflect ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) ProtoReflect() protoreflect.Message
func (*AcquireUnloadedModelResponse) Reset ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) Reset()
func (*AcquireUnloadedModelResponse) String ¶ added in v1.14.0
func (x *AcquireUnloadedModelResponse) String() string
type ActivateModelRequest ¶ added in v1.17.0
type ActivateModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*ActivateModelRequest) Descriptor
deprecated
added in
v1.17.0
func (*ActivateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use ActivateModelRequest.ProtoReflect.Descriptor instead.
func (*ActivateModelRequest) GetId ¶ added in v1.17.0
func (x *ActivateModelRequest) GetId() string
func (*ActivateModelRequest) ProtoMessage ¶ added in v1.17.0
func (*ActivateModelRequest) ProtoMessage()
func (*ActivateModelRequest) ProtoReflect ¶ added in v1.17.0
func (x *ActivateModelRequest) ProtoReflect() protoreflect.Message
func (*ActivateModelRequest) Reset ¶ added in v1.17.0
func (x *ActivateModelRequest) Reset()
func (*ActivateModelRequest) String ¶ added in v1.17.0
func (x *ActivateModelRequest) String() string
type ActivateModelResponse ¶ added in v1.17.0
type ActivateModelResponse struct {
// contains filtered or unexported fields
}
func (*ActivateModelResponse) Descriptor
deprecated
added in
v1.17.0
func (*ActivateModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use ActivateModelResponse.ProtoReflect.Descriptor instead.
func (*ActivateModelResponse) ProtoMessage ¶ added in v1.17.0
func (*ActivateModelResponse) ProtoMessage()
func (*ActivateModelResponse) ProtoReflect ¶ added in v1.17.0
func (x *ActivateModelResponse) ProtoReflect() protoreflect.Message
func (*ActivateModelResponse) Reset ¶ added in v1.17.0
func (x *ActivateModelResponse) Reset()
func (*ActivateModelResponse) String ¶ added in v1.17.0
func (x *ActivateModelResponse) String() string
type ActivationStatus ¶ added in v1.17.0
type ActivationStatus int32
const ( ActivationStatus_ACTIVATION_STATUS_UNSPECIFIED ActivationStatus = 0 ActivationStatus_ACTIVATION_STATUS_ACTIVE ActivationStatus = 1 ActivationStatus_ACTIVATION_STATUS_INACTIVE ActivationStatus = 2 )
func (ActivationStatus) Descriptor ¶ added in v1.17.0
func (ActivationStatus) Descriptor() protoreflect.EnumDescriptor
func (ActivationStatus) Enum ¶ added in v1.17.0
func (x ActivationStatus) Enum() *ActivationStatus
func (ActivationStatus) EnumDescriptor
deprecated
added in
v1.17.0
func (ActivationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActivationStatus.Descriptor instead.
func (ActivationStatus) Number ¶ added in v1.17.0
func (x ActivationStatus) Number() protoreflect.EnumNumber
func (ActivationStatus) String ¶ added in v1.17.0
func (x ActivationStatus) String() string
func (ActivationStatus) Type ¶ added in v1.17.0
func (ActivationStatus) Type() protoreflect.EnumType
type AdapterType ¶
type AdapterType int32
const ( AdapterType_ADAPTER_TYPE_UNSPECIFIED AdapterType = 0 AdapterType_ADAPTER_TYPE_LORA AdapterType = 1 AdapterType_ADAPTER_TYPE_QLORA AdapterType = 2 )
func (AdapterType) Descriptor ¶
func (AdapterType) Descriptor() protoreflect.EnumDescriptor
func (AdapterType) Enum ¶
func (x AdapterType) Enum() *AdapterType
func (AdapterType) EnumDescriptor
deprecated
func (AdapterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdapterType.Descriptor instead.
func (AdapterType) Number ¶
func (x AdapterType) Number() protoreflect.EnumNumber
func (AdapterType) String ¶
func (x AdapterType) String() string
func (AdapterType) Type ¶
func (AdapterType) Type() protoreflect.EnumType
type BaseModel ¶
type BaseModel struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
// contains filtered or unexported fields
}
func (*BaseModel) Descriptor
deprecated
func (*BaseModel) GetCreated ¶
func (*BaseModel) ProtoMessage ¶
func (*BaseModel) ProtoMessage()
func (*BaseModel) ProtoReflect ¶
func (x *BaseModel) ProtoReflect() protoreflect.Message
type CreateBaseModelRequest ¶
type CreateBaseModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// formats is the supported formats of the base model. If not set, the format is considered as GGUF
// for backward compatibility.
Formats []ModelFormat `protobuf:"varint,4,rep,packed,name=formats,proto3,enum=llmariner.models.server.v1.ModelFormat" json:"formats,omitempty"`
// gguf_model_path is the path of the GGUF model. Set if the model suppors the GGUF formta.
GgufModelPath string `protobuf:"bytes,3,opt,name=gguf_model_path,json=ggufModelPath,proto3" json:"gguf_model_path,omitempty"`
SourceRepository SourceRepository `` /* 159-byte string literal not displayed */
ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateBaseModelRequest) Descriptor
deprecated
func (*CreateBaseModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBaseModelRequest.ProtoReflect.Descriptor instead.
func (*CreateBaseModelRequest) GetFormats ¶
func (x *CreateBaseModelRequest) GetFormats() []ModelFormat
func (*CreateBaseModelRequest) GetGgufModelPath ¶
func (x *CreateBaseModelRequest) GetGgufModelPath() string
func (*CreateBaseModelRequest) GetId ¶
func (x *CreateBaseModelRequest) GetId() string
func (*CreateBaseModelRequest) GetPath ¶
func (x *CreateBaseModelRequest) GetPath() string
func (*CreateBaseModelRequest) GetProjectId ¶ added in v1.22.0
func (x *CreateBaseModelRequest) GetProjectId() string
func (*CreateBaseModelRequest) GetSourceRepository ¶ added in v1.10.0
func (x *CreateBaseModelRequest) GetSourceRepository() SourceRepository
func (*CreateBaseModelRequest) ProtoMessage ¶
func (*CreateBaseModelRequest) ProtoMessage()
func (*CreateBaseModelRequest) ProtoReflect ¶
func (x *CreateBaseModelRequest) ProtoReflect() protoreflect.Message
func (*CreateBaseModelRequest) Reset ¶
func (x *CreateBaseModelRequest) Reset()
func (*CreateBaseModelRequest) String ¶
func (x *CreateBaseModelRequest) String() string
type CreateHFModelRepoRequest ¶ added in v1.4.0
type CreateHFModelRepoRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateHFModelRepoRequest) Descriptor
deprecated
added in
v1.4.0
func (*CreateHFModelRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHFModelRepoRequest.ProtoReflect.Descriptor instead.
func (*CreateHFModelRepoRequest) GetName ¶ added in v1.4.0
func (x *CreateHFModelRepoRequest) GetName() string
func (*CreateHFModelRepoRequest) GetProjectId ¶ added in v1.22.0
func (x *CreateHFModelRepoRequest) GetProjectId() string
func (*CreateHFModelRepoRequest) ProtoMessage ¶ added in v1.4.0
func (*CreateHFModelRepoRequest) ProtoMessage()
func (*CreateHFModelRepoRequest) ProtoReflect ¶ added in v1.4.0
func (x *CreateHFModelRepoRequest) ProtoReflect() protoreflect.Message
func (*CreateHFModelRepoRequest) Reset ¶ added in v1.4.0
func (x *CreateHFModelRepoRequest) Reset()
func (*CreateHFModelRepoRequest) String ¶ added in v1.4.0
func (x *CreateHFModelRepoRequest) String() string
type CreateModelRequest ¶ added in v1.10.0
type CreateModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
SourceRepository SourceRepository `` /* 159-byte string literal not displayed */
// is_fine_tuned_model is a flag to indicate if the model is a fine-tuned model.
IsFineTunedModel bool `protobuf:"varint,3,opt,name=is_fine_tuned_model,json=isFineTunedModel,proto3" json:"is_fine_tuned_model,omitempty"`
// base_model_id is the ID of the base model. Only set if the model is a fine-tuned model.
BaseModelId string `protobuf:"bytes,4,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
// suffix is the suffix of the model. Only set if the model is a fine-tuned model.
Suffix string `protobuf:"bytes,5,opt,name=suffix,proto3" json:"suffix,omitempty"`
ModelFileLocation string `protobuf:"bytes,6,opt,name=model_file_location,json=modelFileLocation,proto3" json:"model_file_location,omitempty"`
Config *ModelConfig `protobuf:"bytes,7,opt,name=config,proto3" json:"config,omitempty"`
// is_project_scoped is true if the model has a project scope. Only meaningful for
// base models.
IsProjectScoped bool `protobuf:"varint,8,opt,name=is_project_scoped,json=isProjectScoped,proto3" json:"is_project_scoped,omitempty"`
// contains filtered or unexported fields
}
func (*CreateModelRequest) Descriptor
deprecated
added in
v1.10.0
func (*CreateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateModelRequest.ProtoReflect.Descriptor instead.
func (*CreateModelRequest) GetBaseModelId ¶ added in v1.14.0
func (x *CreateModelRequest) GetBaseModelId() string
func (*CreateModelRequest) GetConfig ¶ added in v1.22.0
func (x *CreateModelRequest) GetConfig() *ModelConfig
func (*CreateModelRequest) GetId ¶ added in v1.10.0
func (x *CreateModelRequest) GetId() string
func (*CreateModelRequest) GetIsFineTunedModel ¶ added in v1.14.0
func (x *CreateModelRequest) GetIsFineTunedModel() bool
func (*CreateModelRequest) GetIsProjectScoped ¶ added in v1.22.0
func (x *CreateModelRequest) GetIsProjectScoped() bool
func (*CreateModelRequest) GetModelFileLocation ¶ added in v1.14.0
func (x *CreateModelRequest) GetModelFileLocation() string
func (*CreateModelRequest) GetSourceRepository ¶ added in v1.10.0
func (x *CreateModelRequest) GetSourceRepository() SourceRepository
func (*CreateModelRequest) GetSuffix ¶ added in v1.14.0
func (x *CreateModelRequest) GetSuffix() string
func (*CreateModelRequest) ProtoMessage ¶ added in v1.10.0
func (*CreateModelRequest) ProtoMessage()
func (*CreateModelRequest) ProtoReflect ¶ added in v1.10.0
func (x *CreateModelRequest) ProtoReflect() protoreflect.Message
func (*CreateModelRequest) Reset ¶ added in v1.10.0
func (x *CreateModelRequest) Reset()
func (*CreateModelRequest) String ¶ added in v1.10.0
func (x *CreateModelRequest) String() string
type CreateStorageConfigRequest ¶
type CreateStorageConfigRequest struct {
PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
// contains filtered or unexported fields
}
func (*CreateStorageConfigRequest) Descriptor
deprecated
func (*CreateStorageConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateStorageConfigRequest.ProtoReflect.Descriptor instead.
func (*CreateStorageConfigRequest) GetPathPrefix ¶
func (x *CreateStorageConfigRequest) GetPathPrefix() string
func (*CreateStorageConfigRequest) ProtoMessage ¶
func (*CreateStorageConfigRequest) ProtoMessage()
func (*CreateStorageConfigRequest) ProtoReflect ¶
func (x *CreateStorageConfigRequest) ProtoReflect() protoreflect.Message
func (*CreateStorageConfigRequest) Reset ¶
func (x *CreateStorageConfigRequest) Reset()
func (*CreateStorageConfigRequest) String ¶
func (x *CreateStorageConfigRequest) String() string
type DeactivateModelRequest ¶ added in v1.17.0
type DeactivateModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeactivateModelRequest) Descriptor
deprecated
added in
v1.17.0
func (*DeactivateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeactivateModelRequest.ProtoReflect.Descriptor instead.
func (*DeactivateModelRequest) GetId ¶ added in v1.17.0
func (x *DeactivateModelRequest) GetId() string
func (*DeactivateModelRequest) ProtoMessage ¶ added in v1.17.0
func (*DeactivateModelRequest) ProtoMessage()
func (*DeactivateModelRequest) ProtoReflect ¶ added in v1.17.0
func (x *DeactivateModelRequest) ProtoReflect() protoreflect.Message
func (*DeactivateModelRequest) Reset ¶ added in v1.17.0
func (x *DeactivateModelRequest) Reset()
func (*DeactivateModelRequest) String ¶ added in v1.17.0
func (x *DeactivateModelRequest) String() string
type DeactivateModelResponse ¶ added in v1.17.0
type DeactivateModelResponse struct {
// contains filtered or unexported fields
}
func (*DeactivateModelResponse) Descriptor
deprecated
added in
v1.17.0
func (*DeactivateModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeactivateModelResponse.ProtoReflect.Descriptor instead.
func (*DeactivateModelResponse) ProtoMessage ¶ added in v1.17.0
func (*DeactivateModelResponse) ProtoMessage()
func (*DeactivateModelResponse) ProtoReflect ¶ added in v1.17.0
func (x *DeactivateModelResponse) ProtoReflect() protoreflect.Message
func (*DeactivateModelResponse) Reset ¶ added in v1.17.0
func (x *DeactivateModelResponse) Reset()
func (*DeactivateModelResponse) String ¶ added in v1.17.0
func (x *DeactivateModelResponse) String() string
type DeleteModelRequest ¶
type DeleteModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteModelRequest) Descriptor
deprecated
func (*DeleteModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.
func (*DeleteModelRequest) GetId ¶
func (x *DeleteModelRequest) GetId() string
func (*DeleteModelRequest) ProtoMessage ¶
func (*DeleteModelRequest) ProtoMessage()
func (*DeleteModelRequest) ProtoReflect ¶
func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message
func (*DeleteModelRequest) Reset ¶
func (x *DeleteModelRequest) Reset()
func (*DeleteModelRequest) String ¶
func (x *DeleteModelRequest) String() string
type DeleteModelResponse ¶
type DeleteModelResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteModelResponse) Descriptor
deprecated
func (*DeleteModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead.
func (*DeleteModelResponse) GetDeleted ¶
func (x *DeleteModelResponse) GetDeleted() bool
func (*DeleteModelResponse) GetId ¶
func (x *DeleteModelResponse) GetId() string
func (*DeleteModelResponse) GetObject ¶
func (x *DeleteModelResponse) GetObject() string
func (*DeleteModelResponse) ProtoMessage ¶
func (*DeleteModelResponse) ProtoMessage()
func (*DeleteModelResponse) ProtoReflect ¶
func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message
func (*DeleteModelResponse) Reset ¶
func (x *DeleteModelResponse) Reset()
func (*DeleteModelResponse) String ¶
func (x *DeleteModelResponse) String() string
type GetBaseModelPathRequest ¶
type GetBaseModelPathRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// project_id is set to a non-empty value if the project-scoped base model is requested. If empty,
// the RPC returns either the globally-scoped base model or a project-scoped base model.
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetBaseModelPathRequest) Descriptor
deprecated
func (*GetBaseModelPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBaseModelPathRequest.ProtoReflect.Descriptor instead.
func (*GetBaseModelPathRequest) GetId ¶
func (x *GetBaseModelPathRequest) GetId() string
func (*GetBaseModelPathRequest) GetProjectId ¶ added in v1.22.0
func (x *GetBaseModelPathRequest) GetProjectId() string
func (*GetBaseModelPathRequest) ProtoMessage ¶
func (*GetBaseModelPathRequest) ProtoMessage()
func (*GetBaseModelPathRequest) ProtoReflect ¶
func (x *GetBaseModelPathRequest) ProtoReflect() protoreflect.Message
func (*GetBaseModelPathRequest) Reset ¶
func (x *GetBaseModelPathRequest) Reset()
func (*GetBaseModelPathRequest) String ¶
func (x *GetBaseModelPathRequest) String() string
type GetBaseModelPathResponse ¶
type GetBaseModelPathResponse struct {
Formats []ModelFormat `protobuf:"varint,3,rep,packed,name=formats,proto3,enum=llmariner.models.server.v1.ModelFormat" json:"formats,omitempty"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// gguf_model_path is the path of the GGUF model. Set if the model suppors the GGUF formta.
GgufModelPath string `protobuf:"bytes,2,opt,name=gguf_model_path,json=ggufModelPath,proto3" json:"gguf_model_path,omitempty"`
// contains filtered or unexported fields
}
func (*GetBaseModelPathResponse) Descriptor
deprecated
func (*GetBaseModelPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBaseModelPathResponse.ProtoReflect.Descriptor instead.
func (*GetBaseModelPathResponse) GetFormats ¶
func (x *GetBaseModelPathResponse) GetFormats() []ModelFormat
func (*GetBaseModelPathResponse) GetGgufModelPath ¶
func (x *GetBaseModelPathResponse) GetGgufModelPath() string
func (*GetBaseModelPathResponse) GetPath ¶
func (x *GetBaseModelPathResponse) GetPath() string
func (*GetBaseModelPathResponse) ProtoMessage ¶
func (*GetBaseModelPathResponse) ProtoMessage()
func (*GetBaseModelPathResponse) ProtoReflect ¶
func (x *GetBaseModelPathResponse) ProtoReflect() protoreflect.Message
func (*GetBaseModelPathResponse) Reset ¶
func (x *GetBaseModelPathResponse) Reset()
func (*GetBaseModelPathResponse) String ¶
func (x *GetBaseModelPathResponse) String() string
type GetHFModelRepoRequest ¶ added in v1.4.0
type GetHFModelRepoRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetHFModelRepoRequest) Descriptor
deprecated
added in
v1.4.0
func (*GetHFModelRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHFModelRepoRequest.ProtoReflect.Descriptor instead.
func (*GetHFModelRepoRequest) GetName ¶ added in v1.4.0
func (x *GetHFModelRepoRequest) GetName() string
func (*GetHFModelRepoRequest) GetProjectId ¶ added in v1.22.0
func (x *GetHFModelRepoRequest) GetProjectId() string
func (*GetHFModelRepoRequest) ProtoMessage ¶ added in v1.4.0
func (*GetHFModelRepoRequest) ProtoMessage()
func (*GetHFModelRepoRequest) ProtoReflect ¶ added in v1.4.0
func (x *GetHFModelRepoRequest) ProtoReflect() protoreflect.Message
func (*GetHFModelRepoRequest) Reset ¶ added in v1.4.0
func (x *GetHFModelRepoRequest) Reset()
func (*GetHFModelRepoRequest) String ¶ added in v1.4.0
func (x *GetHFModelRepoRequest) String() string
type GetModelAttributesRequest ¶
type GetModelAttributesRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetModelAttributesRequest) Descriptor
deprecated
func (*GetModelAttributesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelAttributesRequest.ProtoReflect.Descriptor instead.
func (*GetModelAttributesRequest) GetId ¶
func (x *GetModelAttributesRequest) GetId() string
func (*GetModelAttributesRequest) ProtoMessage ¶
func (*GetModelAttributesRequest) ProtoMessage()
func (*GetModelAttributesRequest) ProtoReflect ¶
func (x *GetModelAttributesRequest) ProtoReflect() protoreflect.Message
func (*GetModelAttributesRequest) Reset ¶
func (x *GetModelAttributesRequest) Reset()
func (*GetModelAttributesRequest) String ¶
func (x *GetModelAttributesRequest) String() string
type GetModelPathRequest ¶
type GetModelPathRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
GetModelPathRequest is deprecated, use GetModelAttributesRequest instead.
func (*GetModelPathRequest) Descriptor
deprecated
func (*GetModelPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelPathRequest.ProtoReflect.Descriptor instead.
func (*GetModelPathRequest) GetId ¶
func (x *GetModelPathRequest) GetId() string
func (*GetModelPathRequest) ProtoMessage ¶
func (*GetModelPathRequest) ProtoMessage()
func (*GetModelPathRequest) ProtoReflect ¶
func (x *GetModelPathRequest) ProtoReflect() protoreflect.Message
func (*GetModelPathRequest) Reset ¶
func (x *GetModelPathRequest) Reset()
func (*GetModelPathRequest) String ¶
func (x *GetModelPathRequest) String() string
type GetModelPathResponse ¶
type GetModelPathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
GetModelPathResponse is deprecated, use GetModelAttributesResponse instead.
func (*GetModelPathResponse) Descriptor
deprecated
func (*GetModelPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModelPathResponse.ProtoReflect.Descriptor instead.
func (*GetModelPathResponse) GetPath ¶
func (x *GetModelPathResponse) GetPath() string
func (*GetModelPathResponse) ProtoMessage ¶
func (*GetModelPathResponse) ProtoMessage()
func (*GetModelPathResponse) ProtoReflect ¶
func (x *GetModelPathResponse) ProtoReflect() protoreflect.Message
func (*GetModelPathResponse) Reset ¶
func (x *GetModelPathResponse) Reset()
func (*GetModelPathResponse) String ¶
func (x *GetModelPathResponse) String() string
type GetModelRequest ¶
type GetModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// include_loading_model is a flag to include an loading model in the response.
//
// This is not in the Open AI API specification.
IncludeLoadingModel bool `protobuf:"varint,2,opt,name=include_loading_model,json=includeLoadingModel,proto3" json:"include_loading_model,omitempty"`
// contains filtered or unexported fields
}
func (*GetModelRequest) Descriptor
deprecated
func (*GetModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
func (*GetModelRequest) GetId ¶
func (x *GetModelRequest) GetId() string
func (*GetModelRequest) GetIncludeLoadingModel ¶ added in v1.10.0
func (x *GetModelRequest) GetIncludeLoadingModel() bool
func (*GetModelRequest) ProtoMessage ¶
func (*GetModelRequest) ProtoMessage()
func (*GetModelRequest) ProtoReflect ¶
func (x *GetModelRequest) ProtoReflect() protoreflect.Message
func (*GetModelRequest) Reset ¶
func (x *GetModelRequest) Reset()
func (*GetModelRequest) String ¶
func (x *GetModelRequest) String() string
type GetStorageConfigRequest ¶
type GetStorageConfigRequest struct {
// contains filtered or unexported fields
}
func (*GetStorageConfigRequest) Descriptor
deprecated
func (*GetStorageConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetStorageConfigRequest.ProtoReflect.Descriptor instead.
func (*GetStorageConfigRequest) ProtoMessage ¶
func (*GetStorageConfigRequest) ProtoMessage()
func (*GetStorageConfigRequest) ProtoReflect ¶
func (x *GetStorageConfigRequest) ProtoReflect() protoreflect.Message
func (*GetStorageConfigRequest) Reset ¶
func (x *GetStorageConfigRequest) Reset()
func (*GetStorageConfigRequest) String ¶
func (x *GetStorageConfigRequest) String() string
type HFModelRepo ¶ added in v1.4.0
type HFModelRepo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*HFModelRepo) Descriptor
deprecated
added in
v1.4.0
func (*HFModelRepo) Descriptor() ([]byte, []int)
Deprecated: Use HFModelRepo.ProtoReflect.Descriptor instead.
func (*HFModelRepo) GetName ¶ added in v1.4.0
func (x *HFModelRepo) GetName() string
func (*HFModelRepo) ProtoMessage ¶ added in v1.4.0
func (*HFModelRepo) ProtoMessage()
func (*HFModelRepo) ProtoReflect ¶ added in v1.4.0
func (x *HFModelRepo) ProtoReflect() protoreflect.Message
func (*HFModelRepo) Reset ¶ added in v1.4.0
func (x *HFModelRepo) Reset()
func (*HFModelRepo) String ¶ added in v1.4.0
func (x *HFModelRepo) String() string
type ListModelsRequest ¶
type ListModelsRequest struct {
// include_loading_models is a flag to include loading models in the response.
//
// This is not in the Open AI API specification.
IncludeLoadingModels bool `protobuf:"varint,1,opt,name=include_loading_models,json=includeLoadingModels,proto3" json:"include_loading_models,omitempty"`
// after is the identifier for the last model from the previous pagination request.
// This is not in the Open AI API specification.
After string `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
// limit is the number of non-base models to retrieve. Defaults to 100.
// This is not in the Open AI API specification.
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListModelsRequest) Descriptor
deprecated
func (*ListModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
func (*ListModelsRequest) GetAfter ¶ added in v1.11.0
func (x *ListModelsRequest) GetAfter() string
func (*ListModelsRequest) GetIncludeLoadingModels ¶ added in v1.10.0
func (x *ListModelsRequest) GetIncludeLoadingModels() bool
func (*ListModelsRequest) GetLimit ¶ added in v1.11.0
func (x *ListModelsRequest) GetLimit() int32
func (*ListModelsRequest) ProtoMessage ¶
func (*ListModelsRequest) ProtoMessage()
func (*ListModelsRequest) ProtoReflect ¶
func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
func (*ListModelsRequest) Reset ¶
func (x *ListModelsRequest) Reset()
func (*ListModelsRequest) String ¶
func (x *ListModelsRequest) String() string
type ListModelsResponse ¶
type ListModelsResponse struct {
Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
Data []*Model `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// This is not in the Open AI API specification.
HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
// total_items is the total number of non-base models. This is not defined in the
// OpenAI API spec, but we include here for better UX in the frontend.
TotalItems int32 `protobuf:"varint,4,opt,name=total_items,json=totalItems,proto3" json:"total_items,omitempty"`
// contains filtered or unexported fields
}
func (*ListModelsResponse) Descriptor
deprecated
func (*ListModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
func (*ListModelsResponse) GetData ¶
func (x *ListModelsResponse) GetData() []*Model
func (*ListModelsResponse) GetHasMore ¶ added in v1.11.0
func (x *ListModelsResponse) GetHasMore() bool
func (*ListModelsResponse) GetObject ¶
func (x *ListModelsResponse) GetObject() string
func (*ListModelsResponse) GetTotalItems ¶ added in v1.11.0
func (x *ListModelsResponse) GetTotalItems() int32
func (*ListModelsResponse) ProtoMessage ¶
func (*ListModelsResponse) ProtoMessage()
func (*ListModelsResponse) ProtoReflect ¶
func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
func (*ListModelsResponse) Reset ¶
func (x *ListModelsResponse) Reset()
func (*ListModelsResponse) String ¶
func (x *ListModelsResponse) String() string
type Model ¶
type Model struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
OwnedBy string `protobuf:"bytes,4,opt,name=owned_by,json=ownedBy,proto3" json:"owned_by,omitempty"`
// loading_status is set when the model is being loaded.
// This is not in the Open AI API specification.
LoadingStatus ModelLoadingStatus `` /* 152-byte string literal not displayed */
// source_repository is the source repository of the model. Set for base models created from the CreateModel API request.
// This is not in the Open AI API specification.
SourceRepository SourceRepository `` /* 159-byte string literal not displayed */
// loading_failure_reason is set when the model loading is failed to show the failure reason.
// This is not in the Open AI API specification.
LoadingFailureReason string `protobuf:"bytes,7,opt,name=loading_failure_reason,json=loadingFailureReason,proto3" json:"loading_failure_reason,omitempty"`
// loading_status_message is a message to show the loading status of the model. It is set
// when the loading_status is MODEL_LOADING_STATUS_LOADING or MODEL_LOADING_STATUS_FAILED.
LoadingStatusMessage string `protobuf:"bytes,13,opt,name=loading_status_message,json=loadingStatusMessage,proto3" json:"loading_status_message,omitempty"`
// formats is the supported formats of the model.
// This is not in the Open AI API specification.
Formats []ModelFormat `protobuf:"varint,8,rep,packed,name=formats,proto3,enum=llmariner.models.server.v1.ModelFormat" json:"formats,omitempty"`
// This is not in the Open AI API specification.
IsBaseModel bool `protobuf:"varint,9,opt,name=is_base_model,json=isBaseModel,proto3" json:"is_base_model,omitempty"`
// base_model_id is the ID of the base model. Only set if the model is a fine-tuned model.
// This is not in the Open AI API specification.
BaseModelId string `protobuf:"bytes,10,opt,name=base_model_id,json=baseModelId,proto3" json:"base_model_id,omitempty"`
ActivationStatus ActivationStatus `` /* 160-byte string literal not displayed */
Config *ModelConfig `protobuf:"bytes,12,opt,name=config,proto3" json:"config,omitempty"`
// contains filtered or unexported fields
}
func (*Model) Descriptor
deprecated
func (*Model) GetActivationStatus ¶ added in v1.17.0
func (x *Model) GetActivationStatus() ActivationStatus
func (*Model) GetBaseModelId ¶ added in v1.13.0
func (*Model) GetConfig ¶ added in v1.22.0
func (x *Model) GetConfig() *ModelConfig
func (*Model) GetCreated ¶
func (*Model) GetFormats ¶ added in v1.11.0
func (x *Model) GetFormats() []ModelFormat
func (*Model) GetIsBaseModel ¶ added in v1.12.0
func (*Model) GetLoadingFailureReason ¶ added in v1.10.0
func (*Model) GetLoadingStatus ¶ added in v1.10.0
func (x *Model) GetLoadingStatus() ModelLoadingStatus
func (*Model) GetLoadingStatusMessage ¶ added in v1.23.0
func (*Model) GetOwnedBy ¶
func (*Model) GetSourceRepository ¶ added in v1.10.0
func (x *Model) GetSourceRepository() SourceRepository
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type ModelAttributes ¶
type ModelAttributes struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
BaseModel string `protobuf:"bytes,2,opt,name=base_model,json=baseModel,proto3" json:"base_model,omitempty"`
Adapter AdapterType `protobuf:"varint,3,opt,name=adapter,proto3,enum=llmariner.models.server.v1.AdapterType" json:"adapter,omitempty"`
Quantization QuantizationType `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ModelAttributes) Descriptor
deprecated
func (*ModelAttributes) Descriptor() ([]byte, []int)
Deprecated: Use ModelAttributes.ProtoReflect.Descriptor instead.
func (*ModelAttributes) GetAdapter ¶
func (x *ModelAttributes) GetAdapter() AdapterType
func (*ModelAttributes) GetBaseModel ¶
func (x *ModelAttributes) GetBaseModel() string
func (*ModelAttributes) GetPath ¶
func (x *ModelAttributes) GetPath() string
func (*ModelAttributes) GetQuantization ¶
func (x *ModelAttributes) GetQuantization() QuantizationType
func (*ModelAttributes) ProtoMessage ¶
func (*ModelAttributes) ProtoMessage()
func (*ModelAttributes) ProtoReflect ¶
func (x *ModelAttributes) ProtoReflect() protoreflect.Message
func (*ModelAttributes) Reset ¶
func (x *ModelAttributes) Reset()
func (*ModelAttributes) String ¶
func (x *ModelAttributes) String() string
type ModelConfig ¶ added in v1.22.0
type ModelConfig struct {
// runtime_config is the runtime configuration of the model.
// This can be unset if the configuration is determined by the runtime configuration
// of inference-manager-engine running in the cluster.
RuntimeConfig *ModelConfig_RuntimeConfig `protobuf:"bytes,1,opt,name=runtime_config,json=runtimeConfig,proto3" json:"runtime_config,omitempty"`
// cluster_allocation_policy defines the policy to allocate the model to clusters.
ClusterAllocationPolicy *ModelConfig_ClusterAllocationPolicy `` /* 132-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ModelConfig) Descriptor
deprecated
added in
v1.22.0
func (*ModelConfig) Descriptor() ([]byte, []int)
Deprecated: Use ModelConfig.ProtoReflect.Descriptor instead.
func (*ModelConfig) GetClusterAllocationPolicy ¶ added in v1.22.0
func (x *ModelConfig) GetClusterAllocationPolicy() *ModelConfig_ClusterAllocationPolicy
func (*ModelConfig) GetRuntimeConfig ¶ added in v1.22.0
func (x *ModelConfig) GetRuntimeConfig() *ModelConfig_RuntimeConfig
func (*ModelConfig) ProtoMessage ¶ added in v1.22.0
func (*ModelConfig) ProtoMessage()
func (*ModelConfig) ProtoReflect ¶ added in v1.22.0
func (x *ModelConfig) ProtoReflect() protoreflect.Message
func (*ModelConfig) Reset ¶ added in v1.22.0
func (x *ModelConfig) Reset()
func (*ModelConfig) String ¶ added in v1.22.0
func (x *ModelConfig) String() string
type ModelConfig_ClusterAllocationPolicy ¶ added in v1.22.0
type ModelConfig_ClusterAllocationPolicy struct {
// allowed_cluster_ids is a list of cluster IDs where the model can be allocated.
// If this field is empty, the model can be allocated to any cluster.
AllowedClusterIds []string `protobuf:"bytes,1,rep,name=allowed_cluster_ids,json=allowedClusterIds,proto3" json:"allowed_cluster_ids,omitempty"`
// enable_on_demand_allocation is set to true if on-demand allocation of the model is enabled.
EnableOnDemandAllocation bool `` /* 138-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ModelConfig_ClusterAllocationPolicy) Descriptor
deprecated
added in
v1.22.0
func (*ModelConfig_ClusterAllocationPolicy) Descriptor() ([]byte, []int)
Deprecated: Use ModelConfig_ClusterAllocationPolicy.ProtoReflect.Descriptor instead.
func (*ModelConfig_ClusterAllocationPolicy) GetAllowedClusterIds ¶ added in v1.22.0
func (x *ModelConfig_ClusterAllocationPolicy) GetAllowedClusterIds() []string
func (*ModelConfig_ClusterAllocationPolicy) GetEnableOnDemandAllocation ¶ added in v1.23.0
func (x *ModelConfig_ClusterAllocationPolicy) GetEnableOnDemandAllocation() bool
func (*ModelConfig_ClusterAllocationPolicy) ProtoMessage ¶ added in v1.22.0
func (*ModelConfig_ClusterAllocationPolicy) ProtoMessage()
func (*ModelConfig_ClusterAllocationPolicy) ProtoReflect ¶ added in v1.22.0
func (x *ModelConfig_ClusterAllocationPolicy) ProtoReflect() protoreflect.Message
func (*ModelConfig_ClusterAllocationPolicy) Reset ¶ added in v1.22.0
func (x *ModelConfig_ClusterAllocationPolicy) Reset()
func (*ModelConfig_ClusterAllocationPolicy) String ¶ added in v1.22.0
func (x *ModelConfig_ClusterAllocationPolicy) String() string
type ModelConfig_RuntimeConfig ¶ added in v1.22.0
type ModelConfig_RuntimeConfig struct {
// resources is the resources required to run the model.
Resources *ModelConfig_RuntimeConfig_Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
// replicas is the number of replicas to run the model.
Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"`
// extra_args is a list of extra arguments to pass to the model runtime.
ExtraArgs []string `protobuf:"bytes,3,rep,name=extra_args,json=extraArgs,proto3" json:"extra_args,omitempty"`
// contains filtered or unexported fields
}
func (*ModelConfig_RuntimeConfig) Descriptor
deprecated
added in
v1.22.0
func (*ModelConfig_RuntimeConfig) Descriptor() ([]byte, []int)
Deprecated: Use ModelConfig_RuntimeConfig.ProtoReflect.Descriptor instead.
func (*ModelConfig_RuntimeConfig) GetExtraArgs ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) GetExtraArgs() []string
func (*ModelConfig_RuntimeConfig) GetReplicas ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) GetReplicas() int32
func (*ModelConfig_RuntimeConfig) GetResources ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) GetResources() *ModelConfig_RuntimeConfig_Resources
func (*ModelConfig_RuntimeConfig) ProtoMessage ¶ added in v1.22.0
func (*ModelConfig_RuntimeConfig) ProtoMessage()
func (*ModelConfig_RuntimeConfig) ProtoReflect ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) ProtoReflect() protoreflect.Message
func (*ModelConfig_RuntimeConfig) Reset ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) Reset()
func (*ModelConfig_RuntimeConfig) String ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig) String() string
type ModelConfig_RuntimeConfig_Resources ¶ added in v1.22.0
type ModelConfig_RuntimeConfig_Resources struct {
Gpu int32 `protobuf:"varint,1,opt,name=gpu,proto3" json:"gpu,omitempty"`
// contains filtered or unexported fields
}
func (*ModelConfig_RuntimeConfig_Resources) Descriptor
deprecated
added in
v1.22.0
func (*ModelConfig_RuntimeConfig_Resources) Descriptor() ([]byte, []int)
Deprecated: Use ModelConfig_RuntimeConfig_Resources.ProtoReflect.Descriptor instead.
func (*ModelConfig_RuntimeConfig_Resources) GetGpu ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig_Resources) GetGpu() int32
func (*ModelConfig_RuntimeConfig_Resources) ProtoMessage ¶ added in v1.22.0
func (*ModelConfig_RuntimeConfig_Resources) ProtoMessage()
func (*ModelConfig_RuntimeConfig_Resources) ProtoReflect ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig_Resources) ProtoReflect() protoreflect.Message
func (*ModelConfig_RuntimeConfig_Resources) Reset ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig_Resources) Reset()
func (*ModelConfig_RuntimeConfig_Resources) String ¶ added in v1.22.0
func (x *ModelConfig_RuntimeConfig_Resources) String() string
type ModelFormat ¶
type ModelFormat int32
const ( ModelFormat_MODEL_FORMAT_UNSPECIFIED ModelFormat = 0 ModelFormat_MODEL_FORMAT_GGUF ModelFormat = 1 ModelFormat_MODEL_FORMAT_HUGGING_FACE ModelFormat = 2 // Model format for Nvidia Triton Inference Server. This model files include the tokenizer configuration // of the original model, compiled model files for TensorRT-LLM backend, and configuration files for // Triton Inference Server. ModelFormat_MODEL_FORMAT_NVIDIA_TRITON ModelFormat = 3 ModelFormat_MODEL_FORMAT_OLLAMA ModelFormat = 4 )
func (ModelFormat) Descriptor ¶
func (ModelFormat) Descriptor() protoreflect.EnumDescriptor
func (ModelFormat) Enum ¶
func (x ModelFormat) Enum() *ModelFormat
func (ModelFormat) EnumDescriptor
deprecated
func (ModelFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModelFormat.Descriptor instead.
func (ModelFormat) Number ¶
func (x ModelFormat) Number() protoreflect.EnumNumber
func (ModelFormat) String ¶
func (x ModelFormat) String() string
func (ModelFormat) Type ¶
func (ModelFormat) Type() protoreflect.EnumType
type ModelFormats ¶
type ModelFormats struct {
Formats []ModelFormat `protobuf:"varint,1,rep,packed,name=formats,proto3,enum=llmariner.models.server.v1.ModelFormat" json:"formats,omitempty"`
// contains filtered or unexported fields
}
ModelFormats is a list of model formats. Used to store marshalled data into a store.
func (*ModelFormats) Descriptor
deprecated
func (*ModelFormats) Descriptor() ([]byte, []int)
Deprecated: Use ModelFormats.ProtoReflect.Descriptor instead.
func (*ModelFormats) GetFormats ¶
func (x *ModelFormats) GetFormats() []ModelFormat
func (*ModelFormats) ProtoMessage ¶
func (*ModelFormats) ProtoMessage()
func (*ModelFormats) ProtoReflect ¶
func (x *ModelFormats) ProtoReflect() protoreflect.Message
func (*ModelFormats) Reset ¶
func (x *ModelFormats) Reset()
func (*ModelFormats) String ¶
func (x *ModelFormats) String() string
type ModelLoadingStatus ¶ added in v1.10.0
type ModelLoadingStatus int32
const ( ModelLoadingStatus_MODEL_LOADING_STATUS_UNSPECIFIED ModelLoadingStatus = 0 // Intial status when the model creation is requested. ModelLoadingStatus_MODEL_LOADING_STATUS_REQUESTED ModelLoadingStatus = 1 // Loading status when the model is being loaded. ModelLoadingStatus_MODEL_LOADING_STATUS_LOADING ModelLoadingStatus = 2 // Succeeded status when the model loading is succeeded. ModelLoadingStatus_MODEL_LOADING_STATUS_SUCCEEDED ModelLoadingStatus = 3 // Failed status when the model loading is failed. ModelLoadingStatus_MODEL_LOADING_STATUS_FAILED ModelLoadingStatus = 4 )
func (ModelLoadingStatus) Descriptor ¶ added in v1.10.0
func (ModelLoadingStatus) Descriptor() protoreflect.EnumDescriptor
func (ModelLoadingStatus) Enum ¶ added in v1.10.0
func (x ModelLoadingStatus) Enum() *ModelLoadingStatus
func (ModelLoadingStatus) EnumDescriptor
deprecated
added in
v1.10.0
func (ModelLoadingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ModelLoadingStatus.Descriptor instead.
func (ModelLoadingStatus) Number ¶ added in v1.10.0
func (x ModelLoadingStatus) Number() protoreflect.EnumNumber
func (ModelLoadingStatus) String ¶ added in v1.10.0
func (x ModelLoadingStatus) String() string
func (ModelLoadingStatus) Type ¶ added in v1.10.0
func (ModelLoadingStatus) Type() protoreflect.EnumType
type ModelsServiceClient ¶
type ModelsServiceClient interface {
GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error)
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
// CreateModel creates a new model. The model becomes available once
// its model file is loaded to an object store.
CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*Model, error)
UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error)
ActivateModel(ctx context.Context, in *ActivateModelRequest, opts ...grpc.CallOption) (*ActivateModelResponse, error)
DeactivateModel(ctx context.Context, in *DeactivateModelRequest, opts ...grpc.CallOption) (*DeactivateModelResponse, error)
}
ModelsServiceClient is the client API for ModelsService 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.
func NewModelsServiceClient ¶
func NewModelsServiceClient(cc grpc.ClientConnInterface) ModelsServiceClient
type ModelsServiceServer ¶
type ModelsServiceServer interface {
GetModel(context.Context, *GetModelRequest) (*Model, error)
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
// CreateModel creates a new model. The model becomes available once
// its model file is loaded to an object store.
CreateModel(context.Context, *CreateModelRequest) (*Model, error)
UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
ActivateModel(context.Context, *ActivateModelRequest) (*ActivateModelResponse, error)
DeactivateModel(context.Context, *DeactivateModelRequest) (*DeactivateModelResponse, error)
// contains filtered or unexported methods
}
ModelsServiceServer is the server API for ModelsService service. All implementations must embed UnimplementedModelsServiceServer for forward compatibility
type ModelsWorkerServiceClient ¶
type ModelsWorkerServiceClient interface {
// CreateStorageConfig creates a new storage config. Used by model-manager-loader.
CreateStorageConfig(ctx context.Context, in *CreateStorageConfigRequest, opts ...grpc.CallOption) (*StorageConfig, error)
// GetStorageConfig gets a storage config. Used by model-manager-loader.
GetStorageConfig(ctx context.Context, in *GetStorageConfigRequest, opts ...grpc.CallOption) (*StorageConfig, error)
// GetModel gets a model. Used by inference-manager-engine.
GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error)
// ListModels lists all models. Used by inference-manager-engine.
// This RPC does not support pagination.
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
// RegisterModel registers a new fine-tuned model. Used by job-manager-dispatcher and model-manager-loader.
// The model is not published until PublishModel is called.
RegisterModel(ctx context.Context, in *RegisterModelRequest, opts ...grpc.CallOption) (*RegisterModelResponse, error)
// PublishModel publishes the fine-tuned model. Used by job-manager-dispatcher and model-manager-loader.
PublishModel(ctx context.Context, in *PublishModelRequest, opts ...grpc.CallOption) (*PublishModelResponse, error)
// GetModelPath returns the path of the model. Used by inference-manager-engine and model-manager-loader.
GetModelPath(ctx context.Context, in *GetModelPathRequest, opts ...grpc.CallOption) (*GetModelPathResponse, error)
// GetModelAttributes returns the attributes of the model. Used by inference-manager-engine.
GetModelAttributes(ctx context.Context, in *GetModelAttributesRequest, opts ...grpc.CallOption) (*ModelAttributes, error)
// CreateBaseModel creates a new base model. Used by model-manager-loader.
CreateBaseModel(ctx context.Context, in *CreateBaseModelRequest, opts ...grpc.CallOption) (*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 *GetBaseModelPathRequest, opts ...grpc.CallOption) (*GetBaseModelPathResponse, error)
// CreateHFModelRepo creates a HuggingFace model repo.
CreateHFModelRepo(ctx context.Context, in *CreateHFModelRepoRequest, opts ...grpc.CallOption) (*HFModelRepo, error)
// GetHFModelRepo returns the HuggingFace model repo that has been downloaded. Used by model-manager-loader.
GetHFModelRepo(ctx context.Context, in *GetHFModelRepoRequest, opts ...grpc.CallOption) (*HFModelRepo, error)
// AcquireUnloadedBaseModel checks if there is any unloaded base model. If exists, update the loading status to LOADED,
// and return it. Used by model-manager-loader.
AcquireUnloadedBaseModel(ctx context.Context, in *AcquireUnloadedBaseModelRequest, opts ...grpc.CallOption) (*AcquireUnloadedBaseModelResponse, error)
// AcquireUnloadedModel checks if there is any unloaded model. If exists, update the loading status to LOADED,
// and return it. Used by model-manager-loader.
AcquireUnloadedModel(ctx context.Context, in *AcquireUnloadedModelRequest, opts ...grpc.CallOption) (*AcquireUnloadedModelResponse, error)
// UpdateBaseModelLoadingStatus updates the loading status. When the loading succeeded, it also
// updates the base model metadata. Used by model-manager-loader.
UpdateBaseModelLoadingStatus(ctx context.Context, in *UpdateBaseModelLoadingStatusRequest, opts ...grpc.CallOption) (*UpdateBaseModelLoadingStatusResponse, error)
// UpdateModelLoadingStatus updates the loading status. When the loading succeeded, it also
// updates the model metadata. Used by model-manager-loader.
UpdateModelLoadingStatus(ctx context.Context, in *UpdateModelLoadingStatusRequest, opts ...grpc.CallOption) (*UpdateModelLoadingStatusResponse, 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.
func NewModelsWorkerServiceClient ¶
func NewModelsWorkerServiceClient(cc grpc.ClientConnInterface) ModelsWorkerServiceClient
type ModelsWorkerServiceServer ¶
type ModelsWorkerServiceServer interface {
// CreateStorageConfig creates a new storage config. Used by model-manager-loader.
CreateStorageConfig(context.Context, *CreateStorageConfigRequest) (*StorageConfig, error)
// GetStorageConfig gets a storage config. Used by model-manager-loader.
GetStorageConfig(context.Context, *GetStorageConfigRequest) (*StorageConfig, error)
// GetModel gets a model. Used by inference-manager-engine.
GetModel(context.Context, *GetModelRequest) (*Model, error)
// ListModels lists all models. Used by inference-manager-engine.
// This RPC does not support pagination.
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
// RegisterModel registers a new fine-tuned model. Used by job-manager-dispatcher and model-manager-loader.
// The model is not published until PublishModel is called.
RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
// PublishModel publishes the fine-tuned model. Used by job-manager-dispatcher and model-manager-loader.
PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
// GetModelPath returns the path of the model. Used by inference-manager-engine and model-manager-loader.
GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
// GetModelAttributes returns the attributes of the model. Used by inference-manager-engine.
GetModelAttributes(context.Context, *GetModelAttributesRequest) (*ModelAttributes, error)
// CreateBaseModel creates a new base model. Used by model-manager-loader.
CreateBaseModel(context.Context, *CreateBaseModelRequest) (*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, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
// CreateHFModelRepo creates a HuggingFace model repo.
CreateHFModelRepo(context.Context, *CreateHFModelRepoRequest) (*HFModelRepo, error)
// GetHFModelRepo returns the HuggingFace model repo that has been downloaded. Used by model-manager-loader.
GetHFModelRepo(context.Context, *GetHFModelRepoRequest) (*HFModelRepo, error)
// AcquireUnloadedBaseModel checks if there is any unloaded base model. If exists, update the loading status to LOADED,
// and return it. Used by model-manager-loader.
AcquireUnloadedBaseModel(context.Context, *AcquireUnloadedBaseModelRequest) (*AcquireUnloadedBaseModelResponse, error)
// AcquireUnloadedModel checks if there is any unloaded model. If exists, update the loading status to LOADED,
// and return it. Used by model-manager-loader.
AcquireUnloadedModel(context.Context, *AcquireUnloadedModelRequest) (*AcquireUnloadedModelResponse, error)
// UpdateBaseModelLoadingStatus updates the loading status. When the loading succeeded, it also
// updates the base model metadata. Used by model-manager-loader.
UpdateBaseModelLoadingStatus(context.Context, *UpdateBaseModelLoadingStatusRequest) (*UpdateBaseModelLoadingStatusResponse, error)
// UpdateModelLoadingStatus updates the loading status. When the loading succeeded, it also
// updates the model metadata. Used by model-manager-loader.
UpdateModelLoadingStatus(context.Context, *UpdateModelLoadingStatusRequest) (*UpdateModelLoadingStatusResponse, error)
// contains filtered or unexported methods
}
ModelsWorkerServiceServer is the server API for ModelsWorkerService service. All implementations must embed UnimplementedModelsWorkerServiceServer for forward compatibility
type PublishModelRequest ¶
type PublishModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*PublishModelRequest) Descriptor
deprecated
func (*PublishModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishModelRequest.ProtoReflect.Descriptor instead.
func (*PublishModelRequest) GetId ¶
func (x *PublishModelRequest) GetId() string
func (*PublishModelRequest) ProtoMessage ¶
func (*PublishModelRequest) ProtoMessage()
func (*PublishModelRequest) ProtoReflect ¶
func (x *PublishModelRequest) ProtoReflect() protoreflect.Message
func (*PublishModelRequest) Reset ¶
func (x *PublishModelRequest) Reset()
func (*PublishModelRequest) String ¶
func (x *PublishModelRequest) String() string
type PublishModelResponse ¶
type PublishModelResponse struct {
// contains filtered or unexported fields
}
func (*PublishModelResponse) Descriptor
deprecated
func (*PublishModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishModelResponse.ProtoReflect.Descriptor instead.
func (*PublishModelResponse) ProtoMessage ¶
func (*PublishModelResponse) ProtoMessage()
func (*PublishModelResponse) ProtoReflect ¶
func (x *PublishModelResponse) ProtoReflect() protoreflect.Message
func (*PublishModelResponse) Reset ¶
func (x *PublishModelResponse) Reset()
func (*PublishModelResponse) String ¶
func (x *PublishModelResponse) String() string
type QuantizationType ¶
type QuantizationType int32
const ( QuantizationType_QUANTIZATION_TYPE_UNSPECIFIED QuantizationType = 0 QuantizationType_QUANTIZATION_TYPE_GGUF QuantizationType = 1 QuantizationType_QUANTIZATION_TYPE_AWQ QuantizationType = 2 )
func (QuantizationType) Descriptor ¶
func (QuantizationType) Descriptor() protoreflect.EnumDescriptor
func (QuantizationType) Enum ¶
func (x QuantizationType) Enum() *QuantizationType
func (QuantizationType) EnumDescriptor
deprecated
func (QuantizationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use QuantizationType.Descriptor instead.
func (QuantizationType) Number ¶
func (x QuantizationType) Number() protoreflect.EnumNumber
func (QuantizationType) String ¶
func (x QuantizationType) String() string
func (QuantizationType) Type ¶
func (QuantizationType) Type() protoreflect.EnumType
type RegisterModelRequest ¶
type RegisterModelRequest struct {
// id is the model name.
Id string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
BaseModel string `protobuf:"bytes,1,opt,name=base_model,json=baseModel,proto3" json:"base_model,omitempty"`
Suffix string `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"`
OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
Adapter AdapterType `protobuf:"varint,5,opt,name=adapter,proto3,enum=llmariner.models.server.v1.AdapterType" json:"adapter,omitempty"`
Quantization QuantizationType `` /* 127-byte string literal not displayed */
Path string `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterModelRequest) Descriptor
deprecated
func (*RegisterModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterModelRequest.ProtoReflect.Descriptor instead.
func (*RegisterModelRequest) GetAdapter ¶
func (x *RegisterModelRequest) GetAdapter() AdapterType
func (*RegisterModelRequest) GetBaseModel ¶
func (x *RegisterModelRequest) GetBaseModel() string
func (*RegisterModelRequest) GetId ¶ added in v0.119.0
func (x *RegisterModelRequest) GetId() string
func (*RegisterModelRequest) GetOrganizationId ¶
func (x *RegisterModelRequest) GetOrganizationId() string
func (*RegisterModelRequest) GetPath ¶ added in v0.119.0
func (x *RegisterModelRequest) GetPath() string
func (*RegisterModelRequest) GetProjectId ¶
func (x *RegisterModelRequest) GetProjectId() string
func (*RegisterModelRequest) GetQuantization ¶
func (x *RegisterModelRequest) GetQuantization() QuantizationType
func (*RegisterModelRequest) GetSuffix ¶
func (x *RegisterModelRequest) GetSuffix() string
func (*RegisterModelRequest) ProtoMessage ¶
func (*RegisterModelRequest) ProtoMessage()
func (*RegisterModelRequest) ProtoReflect ¶
func (x *RegisterModelRequest) ProtoReflect() protoreflect.Message
func (*RegisterModelRequest) Reset ¶
func (x *RegisterModelRequest) Reset()
func (*RegisterModelRequest) String ¶
func (x *RegisterModelRequest) String() string
type RegisterModelResponse ¶
type RegisterModelResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// path is the path where the model is stored.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterModelResponse) Descriptor
deprecated
func (*RegisterModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterModelResponse.ProtoReflect.Descriptor instead.
func (*RegisterModelResponse) GetId ¶
func (x *RegisterModelResponse) GetId() string
func (*RegisterModelResponse) GetPath ¶
func (x *RegisterModelResponse) GetPath() string
func (*RegisterModelResponse) ProtoMessage ¶
func (*RegisterModelResponse) ProtoMessage()
func (*RegisterModelResponse) ProtoReflect ¶
func (x *RegisterModelResponse) ProtoReflect() protoreflect.Message
func (*RegisterModelResponse) Reset ¶
func (x *RegisterModelResponse) Reset()
func (*RegisterModelResponse) String ¶
func (x *RegisterModelResponse) String() string
type SourceRepository ¶ added in v1.10.0
type SourceRepository int32
const ( SourceRepository_SOURCE_REPOSITORY_UNSPECIFIED SourceRepository = 0 SourceRepository_SOURCE_REPOSITORY_OBJECT_STORE SourceRepository = 1 SourceRepository_SOURCE_REPOSITORY_HUGGING_FACE SourceRepository = 2 SourceRepository_SOURCE_REPOSITORY_OLLAMA SourceRepository = 3 SourceRepository_SOURCE_REPOSITORY_FINE_TUNING SourceRepository = 4 )
func (SourceRepository) Descriptor ¶ added in v1.10.0
func (SourceRepository) Descriptor() protoreflect.EnumDescriptor
func (SourceRepository) Enum ¶ added in v1.10.0
func (x SourceRepository) Enum() *SourceRepository
func (SourceRepository) EnumDescriptor
deprecated
added in
v1.10.0
func (SourceRepository) EnumDescriptor() ([]byte, []int)
Deprecated: Use SourceRepository.Descriptor instead.
func (SourceRepository) Number ¶ added in v1.10.0
func (x SourceRepository) Number() protoreflect.EnumNumber
func (SourceRepository) String ¶ added in v1.10.0
func (x SourceRepository) String() string
func (SourceRepository) Type ¶ added in v1.10.0
func (SourceRepository) Type() protoreflect.EnumType
type StorageConfig ¶
type StorageConfig struct {
PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"`
// contains filtered or unexported fields
}
func (*StorageConfig) Descriptor
deprecated
func (*StorageConfig) Descriptor() ([]byte, []int)
Deprecated: Use StorageConfig.ProtoReflect.Descriptor instead.
func (*StorageConfig) GetPathPrefix ¶
func (x *StorageConfig) GetPathPrefix() string
func (*StorageConfig) ProtoMessage ¶
func (*StorageConfig) ProtoMessage()
func (*StorageConfig) ProtoReflect ¶
func (x *StorageConfig) ProtoReflect() protoreflect.Message
func (*StorageConfig) Reset ¶
func (x *StorageConfig) Reset()
func (*StorageConfig) String ¶
func (x *StorageConfig) String() string
type UnimplementedModelsServiceServer ¶
type UnimplementedModelsServiceServer struct {
}
UnimplementedModelsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedModelsServiceServer) ActivateModel ¶ added in v1.17.0
func (UnimplementedModelsServiceServer) ActivateModel(context.Context, *ActivateModelRequest) (*ActivateModelResponse, error)
func (UnimplementedModelsServiceServer) CreateModel ¶ added in v1.10.0
func (UnimplementedModelsServiceServer) CreateModel(context.Context, *CreateModelRequest) (*Model, error)
func (UnimplementedModelsServiceServer) DeactivateModel ¶ added in v1.17.0
func (UnimplementedModelsServiceServer) DeactivateModel(context.Context, *DeactivateModelRequest) (*DeactivateModelResponse, error)
func (UnimplementedModelsServiceServer) DeleteModel ¶
func (UnimplementedModelsServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
func (UnimplementedModelsServiceServer) GetModel ¶
func (UnimplementedModelsServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
func (UnimplementedModelsServiceServer) ListModels ¶
func (UnimplementedModelsServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (UnimplementedModelsServiceServer) UpdateModel ¶ added in v1.24.0
func (UnimplementedModelsServiceServer) UpdateModel(context.Context, *UpdateModelRequest) (*Model, error)
type UnimplementedModelsWorkerServiceServer ¶
type UnimplementedModelsWorkerServiceServer struct {
}
UnimplementedModelsWorkerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedBaseModel ¶ added in v1.10.0
func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedBaseModel(context.Context, *AcquireUnloadedBaseModelRequest) (*AcquireUnloadedBaseModelResponse, error)
func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedModel ¶ added in v1.14.0
func (UnimplementedModelsWorkerServiceServer) AcquireUnloadedModel(context.Context, *AcquireUnloadedModelRequest) (*AcquireUnloadedModelResponse, error)
func (UnimplementedModelsWorkerServiceServer) CreateBaseModel ¶
func (UnimplementedModelsWorkerServiceServer) CreateBaseModel(context.Context, *CreateBaseModelRequest) (*BaseModel, error)
func (UnimplementedModelsWorkerServiceServer) CreateHFModelRepo ¶ added in v1.4.0
func (UnimplementedModelsWorkerServiceServer) CreateHFModelRepo(context.Context, *CreateHFModelRepoRequest) (*HFModelRepo, error)
func (UnimplementedModelsWorkerServiceServer) CreateStorageConfig ¶
func (UnimplementedModelsWorkerServiceServer) CreateStorageConfig(context.Context, *CreateStorageConfigRequest) (*StorageConfig, error)
func (UnimplementedModelsWorkerServiceServer) GetBaseModelPath ¶
func (UnimplementedModelsWorkerServiceServer) GetBaseModelPath(context.Context, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
func (UnimplementedModelsWorkerServiceServer) GetHFModelRepo ¶ added in v1.4.0
func (UnimplementedModelsWorkerServiceServer) GetHFModelRepo(context.Context, *GetHFModelRepoRequest) (*HFModelRepo, error)
func (UnimplementedModelsWorkerServiceServer) GetModel ¶
func (UnimplementedModelsWorkerServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
func (UnimplementedModelsWorkerServiceServer) GetModelAttributes ¶
func (UnimplementedModelsWorkerServiceServer) GetModelAttributes(context.Context, *GetModelAttributesRequest) (*ModelAttributes, error)
func (UnimplementedModelsWorkerServiceServer) GetModelPath ¶
func (UnimplementedModelsWorkerServiceServer) GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
func (UnimplementedModelsWorkerServiceServer) GetStorageConfig ¶
func (UnimplementedModelsWorkerServiceServer) GetStorageConfig(context.Context, *GetStorageConfigRequest) (*StorageConfig, error)
func (UnimplementedModelsWorkerServiceServer) ListModels ¶ added in v1.18.0
func (UnimplementedModelsWorkerServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (UnimplementedModelsWorkerServiceServer) PublishModel ¶
func (UnimplementedModelsWorkerServiceServer) PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
func (UnimplementedModelsWorkerServiceServer) RegisterModel ¶
func (UnimplementedModelsWorkerServiceServer) RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
func (UnimplementedModelsWorkerServiceServer) UpdateBaseModelLoadingStatus ¶ added in v1.10.0
func (UnimplementedModelsWorkerServiceServer) UpdateBaseModelLoadingStatus(context.Context, *UpdateBaseModelLoadingStatusRequest) (*UpdateBaseModelLoadingStatusResponse, error)
func (UnimplementedModelsWorkerServiceServer) UpdateModelLoadingStatus ¶ added in v1.14.0
func (UnimplementedModelsWorkerServiceServer) UpdateModelLoadingStatus(context.Context, *UpdateModelLoadingStatusRequest) (*UpdateModelLoadingStatusResponse, error)
type UnsafeModelsServiceServer ¶
type UnsafeModelsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeModelsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModelsServiceServer will result in compilation errors.
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.
type UpdateBaseModelLoadingStatusRequest ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ProjectId string `protobuf:"bytes,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
// loading_result is the result of the model loading. Unset if the model is still loading.
//
// Types that are assignable to LoadingResult:
//
// *UpdateBaseModelLoadingStatusRequest_Success_
// *UpdateBaseModelLoadingStatusRequest_Failure_
LoadingResult isUpdateBaseModelLoadingStatusRequest_LoadingResult `protobuf_oneof:"loading_result"`
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateBaseModelLoadingStatusRequest) Descriptor
deprecated
added in
v1.10.0
func (*UpdateBaseModelLoadingStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBaseModelLoadingStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateBaseModelLoadingStatusRequest) GetFailure ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) GetFailure() *UpdateBaseModelLoadingStatusRequest_Failure
func (*UpdateBaseModelLoadingStatusRequest) GetId ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) GetId() string
func (*UpdateBaseModelLoadingStatusRequest) GetLoadingResult ¶ added in v1.10.0
func (m *UpdateBaseModelLoadingStatusRequest) GetLoadingResult() isUpdateBaseModelLoadingStatusRequest_LoadingResult
func (*UpdateBaseModelLoadingStatusRequest) GetProjectId ¶ added in v1.22.0
func (x *UpdateBaseModelLoadingStatusRequest) GetProjectId() string
func (*UpdateBaseModelLoadingStatusRequest) GetStatusMessage ¶ added in v1.23.0
func (x *UpdateBaseModelLoadingStatusRequest) GetStatusMessage() string
func (*UpdateBaseModelLoadingStatusRequest) GetSuccess ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) GetSuccess() *UpdateBaseModelLoadingStatusRequest_Success
func (*UpdateBaseModelLoadingStatusRequest) ProtoMessage ¶ added in v1.10.0
func (*UpdateBaseModelLoadingStatusRequest) ProtoMessage()
func (*UpdateBaseModelLoadingStatusRequest) ProtoReflect ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateBaseModelLoadingStatusRequest) Reset ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) Reset()
func (*UpdateBaseModelLoadingStatusRequest) String ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest) String() string
type UpdateBaseModelLoadingStatusRequest_Failure ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusRequest_Failure struct {
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateBaseModelLoadingStatusRequest_Failure) Descriptor
deprecated
added in
v1.10.0
func (*UpdateBaseModelLoadingStatusRequest_Failure) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBaseModelLoadingStatusRequest_Failure.ProtoReflect.Descriptor instead.
func (*UpdateBaseModelLoadingStatusRequest_Failure) GetReason ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Failure) GetReason() string
func (*UpdateBaseModelLoadingStatusRequest_Failure) ProtoMessage ¶ added in v1.10.0
func (*UpdateBaseModelLoadingStatusRequest_Failure) ProtoMessage()
func (*UpdateBaseModelLoadingStatusRequest_Failure) ProtoReflect ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Failure) ProtoReflect() protoreflect.Message
func (*UpdateBaseModelLoadingStatusRequest_Failure) Reset ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Failure) Reset()
func (*UpdateBaseModelLoadingStatusRequest_Failure) String ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Failure) String() string
type UpdateBaseModelLoadingStatusRequest_Failure_ ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusRequest_Failure_ struct {
Failure *UpdateBaseModelLoadingStatusRequest_Failure `protobuf:"bytes,3,opt,name=failure,proto3,oneof"`
}
type UpdateBaseModelLoadingStatusRequest_Success ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusRequest_Success struct {
// contains filtered or unexported fields
}
func (*UpdateBaseModelLoadingStatusRequest_Success) Descriptor
deprecated
added in
v1.10.0
func (*UpdateBaseModelLoadingStatusRequest_Success) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBaseModelLoadingStatusRequest_Success.ProtoReflect.Descriptor instead.
func (*UpdateBaseModelLoadingStatusRequest_Success) ProtoMessage ¶ added in v1.10.0
func (*UpdateBaseModelLoadingStatusRequest_Success) ProtoMessage()
func (*UpdateBaseModelLoadingStatusRequest_Success) ProtoReflect ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Success) ProtoReflect() protoreflect.Message
func (*UpdateBaseModelLoadingStatusRequest_Success) Reset ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Success) Reset()
func (*UpdateBaseModelLoadingStatusRequest_Success) String ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusRequest_Success) String() string
type UpdateBaseModelLoadingStatusRequest_Success_ ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusRequest_Success_ struct {
Success *UpdateBaseModelLoadingStatusRequest_Success `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}
type UpdateBaseModelLoadingStatusResponse ¶ added in v1.10.0
type UpdateBaseModelLoadingStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateBaseModelLoadingStatusResponse) Descriptor
deprecated
added in
v1.10.0
func (*UpdateBaseModelLoadingStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBaseModelLoadingStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateBaseModelLoadingStatusResponse) ProtoMessage ¶ added in v1.10.0
func (*UpdateBaseModelLoadingStatusResponse) ProtoMessage()
func (*UpdateBaseModelLoadingStatusResponse) ProtoReflect ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateBaseModelLoadingStatusResponse) Reset ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusResponse) Reset()
func (*UpdateBaseModelLoadingStatusResponse) String ¶ added in v1.10.0
func (x *UpdateBaseModelLoadingStatusResponse) String() string
type UpdateModelLoadingStatusRequest ¶ added in v1.14.0
type UpdateModelLoadingStatusRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// loading_result is the result of the model loading. Unset if the model is still loading.
//
// Types that are assignable to LoadingResult:
//
// *UpdateModelLoadingStatusRequest_Success_
// *UpdateModelLoadingStatusRequest_Failure_
LoadingResult isUpdateModelLoadingStatusRequest_LoadingResult `protobuf_oneof:"loading_result"`
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateModelLoadingStatusRequest) Descriptor
deprecated
added in
v1.14.0
func (*UpdateModelLoadingStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelLoadingStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateModelLoadingStatusRequest) GetFailure ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) GetFailure() *UpdateModelLoadingStatusRequest_Failure
func (*UpdateModelLoadingStatusRequest) GetId ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) GetId() string
func (*UpdateModelLoadingStatusRequest) GetLoadingResult ¶ added in v1.14.0
func (m *UpdateModelLoadingStatusRequest) GetLoadingResult() isUpdateModelLoadingStatusRequest_LoadingResult
func (*UpdateModelLoadingStatusRequest) GetStatusMessage ¶ added in v1.23.0
func (x *UpdateModelLoadingStatusRequest) GetStatusMessage() string
func (*UpdateModelLoadingStatusRequest) GetSuccess ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) GetSuccess() *UpdateModelLoadingStatusRequest_Success
func (*UpdateModelLoadingStatusRequest) ProtoMessage ¶ added in v1.14.0
func (*UpdateModelLoadingStatusRequest) ProtoMessage()
func (*UpdateModelLoadingStatusRequest) ProtoReflect ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateModelLoadingStatusRequest) Reset ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) Reset()
func (*UpdateModelLoadingStatusRequest) String ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest) String() string
type UpdateModelLoadingStatusRequest_Failure ¶ added in v1.14.0
type UpdateModelLoadingStatusRequest_Failure struct {
Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateModelLoadingStatusRequest_Failure) Descriptor
deprecated
added in
v1.14.0
func (*UpdateModelLoadingStatusRequest_Failure) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelLoadingStatusRequest_Failure.ProtoReflect.Descriptor instead.
func (*UpdateModelLoadingStatusRequest_Failure) GetReason ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Failure) GetReason() string
func (*UpdateModelLoadingStatusRequest_Failure) ProtoMessage ¶ added in v1.14.0
func (*UpdateModelLoadingStatusRequest_Failure) ProtoMessage()
func (*UpdateModelLoadingStatusRequest_Failure) ProtoReflect ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Failure) ProtoReflect() protoreflect.Message
func (*UpdateModelLoadingStatusRequest_Failure) Reset ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Failure) Reset()
func (*UpdateModelLoadingStatusRequest_Failure) String ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Failure) String() string
type UpdateModelLoadingStatusRequest_Failure_ ¶ added in v1.14.0
type UpdateModelLoadingStatusRequest_Failure_ struct {
Failure *UpdateModelLoadingStatusRequest_Failure `protobuf:"bytes,4,opt,name=failure,proto3,oneof"`
}
type UpdateModelLoadingStatusRequest_Success ¶ added in v1.14.0
type UpdateModelLoadingStatusRequest_Success struct {
// contains filtered or unexported fields
}
func (*UpdateModelLoadingStatusRequest_Success) Descriptor
deprecated
added in
v1.14.0
func (*UpdateModelLoadingStatusRequest_Success) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelLoadingStatusRequest_Success.ProtoReflect.Descriptor instead.
func (*UpdateModelLoadingStatusRequest_Success) ProtoMessage ¶ added in v1.14.0
func (*UpdateModelLoadingStatusRequest_Success) ProtoMessage()
func (*UpdateModelLoadingStatusRequest_Success) ProtoReflect ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Success) ProtoReflect() protoreflect.Message
func (*UpdateModelLoadingStatusRequest_Success) Reset ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Success) Reset()
func (*UpdateModelLoadingStatusRequest_Success) String ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusRequest_Success) String() string
type UpdateModelLoadingStatusRequest_Success_ ¶ added in v1.14.0
type UpdateModelLoadingStatusRequest_Success_ struct {
Success *UpdateModelLoadingStatusRequest_Success `protobuf:"bytes,3,opt,name=success,proto3,oneof"`
}
type UpdateModelLoadingStatusResponse ¶ added in v1.14.0
type UpdateModelLoadingStatusResponse struct {
// contains filtered or unexported fields
}
func (*UpdateModelLoadingStatusResponse) Descriptor
deprecated
added in
v1.14.0
func (*UpdateModelLoadingStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelLoadingStatusResponse.ProtoReflect.Descriptor instead.
func (*UpdateModelLoadingStatusResponse) ProtoMessage ¶ added in v1.14.0
func (*UpdateModelLoadingStatusResponse) ProtoMessage()
func (*UpdateModelLoadingStatusResponse) ProtoReflect ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateModelLoadingStatusResponse) Reset ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusResponse) Reset()
func (*UpdateModelLoadingStatusResponse) String ¶ added in v1.14.0
func (x *UpdateModelLoadingStatusResponse) String() string
type UpdateModelRequest ¶ added in v1.24.0
type UpdateModelRequest struct {
// model is the model to update.
//
// The model's id is used to identify the key to update.
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
// The list of fields to update.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateModelRequest) Descriptor
deprecated
added in
v1.24.0
func (*UpdateModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateModelRequest.ProtoReflect.Descriptor instead.
func (*UpdateModelRequest) GetModel ¶ added in v1.24.0
func (x *UpdateModelRequest) GetModel() *Model
func (*UpdateModelRequest) GetUpdateMask ¶ added in v1.24.0
func (x *UpdateModelRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateModelRequest) ProtoMessage ¶ added in v1.24.0
func (*UpdateModelRequest) ProtoMessage()
func (*UpdateModelRequest) ProtoReflect ¶ added in v1.24.0
func (x *UpdateModelRequest) ProtoReflect() protoreflect.Message
func (*UpdateModelRequest) Reset ¶ added in v1.24.0
func (x *UpdateModelRequest) Reset()
func (*UpdateModelRequest) String ¶ added in v1.24.0
func (x *UpdateModelRequest) String() string