Expand description
Modality/capability hints derived from a Hugging Face model’s config.json:
a first guess (architecture list, a vision block, or a few speech config keys)
at what a downloaded model can do, before full identification. A diffusers
model_index.json is hinted through the pipeline-family registry
(from_model_index).
Structs§
- Hint
- A best-effort guess at a model’s shape from its config metadata.
Enums§
- Sentence
Transformers Layout - What a sentence-transformers layout in a snapshot is.
Functions§
- audio_
hint - A speech-to-text (transcription) model.
- embedding_
hint - An embedding model.
- from_
config - The hint for a parsed
config.jsonvalue: a vision-language model (avision_configblock plus a matching architecture), else the first architecture that matches an [architecture_hint] rule, else a speech model recognized by its config keys, elseNone. - from_
config_ json - The hint for a Hugging Face
config.jsonfile, orNoneif it is unreadable, unparseable, or matches no rule. - from_
model_ index - The hint for a diffusers
model_index.json: its pipeline family’s modality and capabilities as a job. An unknown or absent_class_nameyields an empty job hint (still a job — a diffusers bundle is never a streaming model). - gguf_
hint - The default hint for a bare GGUF weight (text chat/completion).
- reranker_
hint - A reranker: text in, a relevance score out. It chats with no one and embeds nothing, so it claims no capability of its own; the runtime that can serve it supplies what it does.
- sentence_
transformers_ layout - The sentence-transformers layout in
dir, if there is one. Both kinds ship aconfig_sentence_transformers.json; only itsmodel_typetells a cross-encoder from an embedder, and one read as the other is served nonsense. - speech_
hint - A text-to-speech model.
- text_
hint - A text chat/completion model.
- vision_
chat_ hint - A vision-capable chat model.
- whisper_
bin_ hint - The default hint for a whisper
.bin(transcription).