snapshot

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HuggingFaceBaseURL = "https://huggingface.co"

HuggingFaceBaseURL is overridden by tests.

Functions

This section is empty.

Types

type File

type File struct {
	Path string `json:"path"`
	Size int64  `json:"size,omitempty"`
	Type string `json:"type,omitempty"`
	URI  string `json:"uri"`
	Dest string `json:"dest,omitempty"`
}

type Manifest

type Manifest struct {
	Version int    `json:"version"`
	Source  string `json:"source"`
	Repo    string `json:"repo"`
	Rev     string `json:"rev"`
	Prefix  string `json:"prefix,omitempty"`
	Files   []File `json:"files"`
}

func BuildHuggingFace

func BuildHuggingFace(ctx context.Context, cfg *config.Config, rawURI string, opts Options) (*Manifest, error)

func (*Manifest) Batch

func (m *Manifest) Batch() *batch.File

func (*Manifest) JSON

func (m *Manifest) JSON() ([]byte, error)

type Options

type Options struct {
	Rev      string
	Includes []string
	Excludes []string
	DestDir  string
	MaxFiles int
}

Jump to

Keyboard shortcuts

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