Description
On Windows, TribeModel.from_pretrained("facebook/tribev2", ...) fails with huggingface_hub.errors.HFValidationError because the Hugging Face repo id is built from str(Path(checkpoint_dir)) after wrapping the string in pathlib.Path. On Windows that produces backslashes (e.g. facebook\tribev2), which is not a valid Hub repo id.
Environment
- OS: Windows 10/11
- Python: 3.10+ (reproduced with 3.13)
tribev2 installed from Git (current main as of reporting)
Minimal reproduction
from tribev2 import TribeModel
TribeModel.from_pretrained("facebook/tribev2", cache_folder="./cache")
Description
On Windows,
TribeModel.from_pretrained("facebook/tribev2", ...)fails withhuggingface_hub.errors.HFValidationErrorbecause the Hugging Face repo id is built fromstr(Path(checkpoint_dir))after wrapping the string inpathlib.Path. On Windows that produces backslashes (e.g.facebook\tribev2), which is not a valid Hub repo id.Environment
tribev2installed from Git (currentmainas of reporting)Minimal reproduction