pub fn checkpoint_id_of(dir: &str) -> Option<String>Expand description
2026-09-29: The checkpoint id a directory holds, from its path: the Hugging Face cache
layout (.../models--<org>--<name>/snapshots/<rev>) or, failing that, the last two path
components (.../<org>/<name>).