loader_for_config

Function loader_for_config 

Source
pub fn loader_for_config(
    config: &ModelConfig,
) -> Result<Box<dyn ModelWeightLoader>>
Expand description

Select the weight loader for a given model config.

This is the ONLY place model_type strings are matched. All downstream code is model-agnostic.