Skip to content

Commit

Permalink
Small changes to HF repo update script (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg authored Oct 18, 2023
1 parent 2c5965e commit f11483f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion 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 @@ -61,7 +77,7 @@ def main(hf_repos_for_upload: List[str]):
create_pr=True,
)

print(f'PR opened: {result}')
print(f'PR opened: {result}\n')


if __name__ == '__main__':
Expand Down

0 comments on commit f11483f

Please sign in to comment.