Skip to main content

HuggingFaceModelSpec

Type Alias HuggingFaceModelSpec 

Source
pub type HuggingFaceModelSpec = ModelSpec;
Expand description

Hugging Face-oriented compatibility alias for callers migrating to ModelSpec.

Aliased Type§

pub struct HuggingFaceModelSpec {
    pub name: String,
    pub task: ModelTask,
    pub source: ModelSource,
    pub files: Vec<ModelFileRequest>,
    pub metadata: BTreeMap<String, String>,
    pub repo_id: String,
    pub revision: String,
}

Fields§

§name: String

Human-readable name for this value.

§task: ModelTask

The task value.

§source: ModelSource

The model source value.

§files: Vec<ModelFileRequest>

The files value.

§metadata: BTreeMap<String, String>

Caller-defined model metadata.

§repo_id: String
👎Deprecated:

use ModelSpec::source or ModelSpec::repo_id() instead

Deprecated compatibility field for Hugging Face model identifiers.

§revision: String
👎Deprecated:

use ModelSpec::source or ModelSpec::revision() instead

Deprecated compatibility field for Hugging Face revisions.