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: StringHuman-readable name for this value.
task: ModelTaskThe task value.
source: ModelSourceThe 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.