Skip to content

Model Reference API

ModelReference is the parsed form of the opaque user-facing --model input.

Normalized representation of a user-supplied model reference string.

parse classmethod

parse(raw_reference: str) -> Self

Parse a raw model reference into a structured form.

is_huggingface_reference

is_huggingface_reference() -> bool

Return whether the reference should be treated as a Hugging Face repo ID.

materialization_name

materialization_name() -> str

Return the directory name used for local materialization of this reference.