-
Notifications
You must be signed in to change notification settings - Fork 536
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
Add model downloading from oras #857
Conversation
# This shouldn't actually download any files if the cache server download was successful, but should address | ||
# a non-deterministic bug where the symlinks aren't repaired properly by the time the model is initialized. | ||
log.info('Repairing Hugging Face cache symlinks') | ||
if args.fallback == 'hf': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jerrychen109 is it okay to condition on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we condition on the save_dir being the HF cache? symlinks are just for the HF cache, right?
] | ||
|
||
cmd_to_run_no_password = get_oras_cmd_to_run(ORAS_PASSWD_PLACEHOLDER) | ||
log.info(f'CMD for oras cli to run: {cmd_to_run_no_password}') |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information High
sensitive data (password)
This expression logs
sensitive data (password)
This expression logs
sensitive data (password)
# This shouldn't actually download any files if the cache server download was successful, but should address | ||
# a non-deterministic bug where the symlinks aren't repaired properly by the time the model is initialized. | ||
log.info('Repairing Hugging Face cache symlinks') | ||
if args.fallback == 'hf': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if args.fallback == 'hf': | |
if args.fallback == 'hf' and args.save_dir == HUGGINGFACE_HUB_CACHE: |
closing in favor of #881 |
Manual tests
ift-mpt-7b-harbor-download-i8vxl8