Skip to main content

detect_moe_arch

Function detect_moe_arch 

Source
pub fn detect_moe_arch(path: &Path) -> bool
Expand description

Detect whether path is a Mixture-of-Experts model. Handles both a .gguf file (peek general.architecture from GGUF metadata) and a safetensors snapshot directory (read config.json and match architectures / model_type against moe, case-insensitive).