You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(cli): intrinsic_uploader builds path_in_repo with os.path.join, producing backslashes on Windows #1870
As noted in #1814, \cli/alora/intrinsic_uploader.py\ constructs \path_in_repo\ using \os.path.join(model_name, base_model_path, type). On Windows this produces backslashes (e.g. \�dapter\base\alora) rather than POSIX forward slashes expected by Hugging Face Hub repositories.
Reproduction on Windows
Running \pytest test/cli/test_alora_upload.py --no-cov -v\ on Windows fails in \ est_upload_intrinsic_token_lookup[test-token-not-a-real-credential]:
\
AssertionError: assert 'adapter\\base\\alora' == 'adapter/base/alora'
\\
Expected behavior
\path_in_repo\ should always use POSIX forward slashes (/) regardless of the host OS (e.g., \posixpath.join\ or \PurePosixPath). Happy to submit a follow-up PR with a fix and cross-platform test coverage.
Yes please a PR would be good. We don't test on windows - if you find any other issues please do raise similar - though path separator is the most likely case
Activity
planetf1 commentedon Nov 25, 2026
Yes please a PR would be good. We don't test on windows - if you find any other issues please do raise similar - though path separator is the most likely case