Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.path.basename will get empty model_name if path is given end with "/" #1324

Open
Taogreen opened this issue Jan 9, 2025 · 0 comments
Open

Comments

@Taogreen
Copy link

Taogreen commented Jan 9, 2025

model_name = os.path.basename(model_name_or_path)

need change it make a minor change like "model_name_or_path.rstrip('/')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant