Skip to main content

is_embedding_arch

Function is_embedding_arch 

Source
pub fn is_embedding_arch(arch: &str) -> bool
Expand description

True when general.architecture names an encoder / embedding model rather than something with an output head.

This is the question a server asks before it decides which loader a checkpoint path goes to: an encoder can never reach the decoder path, so routing it there produces a refusal about a missing tensor instead of “this is an embedding model”. The answer comes from the capability registry’s own crate::capability::ArchScope and not from a second list beside [NOT_YET], because two lists of the same architectures is the copy this repo has already paid for seven times — a row added to the registry is covered here the moment it lands.

true does not mean ferrox can serve it. It means EmbeddingModel::from_gguf_path is the loader that will either build it or refuse it by name.