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

Add model downloading from oras #857

Closed
wants to merge 5 commits into from
Closed

Conversation

irenedea
Copy link
Contributor

@irenedea irenedea commented Jan 11, 2024

Manual tests

ift-mpt-7b-harbor-download-i8vxl8

@irenedea irenedea requested a review from jerrychen109 January 11, 2024 02:14
# 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':
Copy link
Contributor Author

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?

Copy link
Contributor Author

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?

@irenedea irenedea requested a review from jbloxham January 11, 2024 02:56
]

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

This expression logs
sensitive data (password)
as clear text.
This expression logs
sensitive data (password)
as clear text.
This expression logs
sensitive data (password)
as clear text.
# 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':
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if args.fallback == 'hf':
if args.fallback == 'hf' and args.save_dir == HUGGINGFACE_HUB_CACHE:

@irenedea
Copy link
Contributor Author

closing in favor of #881

@irenedea irenedea closed this Jan 23, 2024
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

Successfully merging this pull request may close these issues.

1 participant