Skip to main content

map_with_table

Function map_with_table 

Source
pub fn map_with_table(name: &str, table: &[(&str, &str)]) -> Option<String>
Expand description

Exact-match helper for tensor_map.rs files.

Every model crate maps checkpoint names to GGUF names with a first exact-match block plus custom prefix/layer logic. This helper covers the exact part so each file keeps one TABLE instead of a 15-arm match.

Returns Some(mapped) on hit, None on miss (caller falls through to prefix logic or returns None for skips).