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

Small changes to HF repo update script #680

Merged
merged 5 commits into from
Oct 18, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions scripts/misc/update_hub_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,24 @@
from llmfoundry.utils.huggingface_hub_utils import \
edit_files_for_hf_compatibility

_ALL_MODELS = [
'mosaicml/mpt-7b',
'mosaicml/mpt-7b-instruct',
'mosaicml/mpt-7b-chat',
'mosaicml/mpt-30b',
'mosaicml/mpt-30b-chat',
'mosaicml/mpt-30b-instruct',
'mosaicml/mpt-7b-8k',
'mosaicml/mpt-7b-8k-instruct',
'mosaicml/mpt-7b-8k-chat',
'mosaicml/mpt-7b-storywriter',
]


def main(hf_repos_for_upload: List[str]):
if len(hf_repos_for_upload) == 1 and hf_repos_for_upload[0] == 'all':
hf_repos_for_upload = _ALL_MODELS

current_datetime = datetime.now()
formatted_datetime = current_datetime.strftime('%B %d, %Y %H:%M:%S')

Expand Down Expand Up @@ -62,6 +78,7 @@ def main(hf_repos_for_upload: List[str]):
)

print(f'PR opened: {result}')
print()
dakinggg marked this conversation as resolved.
Show resolved Hide resolved


if __name__ == '__main__':
Expand Down
Loading