Fix cached lookup filepath on windows for hub (#19178)
* Update hub.py commit_hash extraction
Add safety mechanism for windows systems to unify logic (replace double backslashes with /)
* Fix string quotetype
* Aaaa circleci is messing with me.
* Switch to using as_posix() method from pathlib
* Update src/transformers/utils/hub.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Update src/transformers/utils/hub.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>