pub fn detect_format(path: &Path) -> ModelFormat
Detect the on-disk format of a model directory or file.