mlflow

package
v0.1.2-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MlFlowClient

type MlFlowClient struct {
	// contains filtered or unexported fields
}

func NewMlFlowRegistry

func NewMlFlowRegistry(mlflowClient *client.DatabricksClient) (MlFlowClient, error)

func (*MlFlowClient) PullModelByName

func (mlfr *MlFlowClient) PullModelByName(
	ctx context.Context,
	modelName string,
	modelVersion string,
	destSrc string,
) (string, error)

Pull latest modelVersion if `modelVersion` is nil

type MlflowProvider

type MlflowProvider struct {
	// contains filtered or unexported fields
}

MlflowProvider implements the modelprovider.Provider interface for Mlflow

func New

func New() *MlflowProvider

New creates a new ModelScope provider instance

func (*MlflowProvider) CheckAuth

func (p *MlflowProvider) CheckAuth() error

CheckAuth verifies that the user is authenticated with MlFlow

func (*MlflowProvider) DownloadModel

func (p *MlflowProvider) DownloadModel(
	ctx context.Context,
	modelURL, destDir string,
) (string, error)

DownloadModel downloads a model from ModelScope using the modelscope CLI

func (*MlflowProvider) Name

func (p *MlflowProvider) Name() string

Name returns the name of this provider

func (*MlflowProvider) SupportsURL

func (p *MlflowProvider) SupportsURL(url string) bool

SupportsURL checks if this provider can handle the given URL Supports experiments url (runs), model-registry(models) For short-form repo identifiers (owner/repo), users must explicitly specify --provider mlflow

type S3StorageBackend

type S3StorageBackend struct {
	// contains filtered or unexported fields
}

func (*S3StorageBackend) DownloadModel

func (s3back *S3StorageBackend) DownloadModel(
	ctx context.Context,
	path string,
	destPath string,
) error

type StorageBackend

type StorageBackend interface {
	DownloadModel(ctx context.Context, path string, destPath string) error
}

Jump to

Keyboard shortcuts

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