modeldownloader

package
v0.300.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

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

D is a downloader.

func New

func New(modelDir string, s3Client s3Client) *D

New returns a new Manager.

func (*D) Download

func (d *D) Download(
	ctx context.Context,
	modelName string,
	resp *mv1.GetBaseModelPathResponse,
	format mv1.ModelFormat,
	destPath string,
) error

Download downloads the model.

Jump to

Keyboard shortcuts

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