Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update examples with our new GCP downloader features.
Code changes from @ajaysaini725
Confirmed it worked:
Downloading model from path: gs://mosaicml-mcloud-tests/sg_test Downloading /tmp/mpt/local_model/checkpoints-1671246524-rare-albatross-ep0-ba12-rank0.pt... Converting model to FT format Traceback (most recent call last): File "/code/inference_go/downloader.py", line 83, in <module> download_func(**model_config.download_parameters) File "/code/examples/examples/inference-deployments/mpt/mpt_ft_handler.py", line 122, in download_convert convert_mpt_to_ft(model_name_or_path, LOCAL_CHECKPOINT_DIR, gpus, File "/code/llm-foundry/scripts/inference/convert_hf_mpt_to_ft.py", line 200, in convert_mpt_to_ft model = transformers.AutoModelForCausalLM.from_pretrained( File "/usr/lib/python3/dist-packages/transformers/models/auto/auto_factory.py", line 441, in from_pretrained config, kwargs = AutoConfig.from_pretrained( File "/usr/lib/python3/dist-packages/transformers/models/auto/configuration_auto.py", line 908, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) File "/usr/lib/python3/dist-packages/transformers/configuration_utils.py", line 573, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) File "/usr/lib/python3/dist-packages/transformers/configuration_utils.py", line 628, in _get_config_dict resolved_config_file = cached_file( File "/usr/lib/python3/dist-packages/transformers/utils/hub.py", line 380, in cached_file raise EnvironmentError( OSError: /tmp/mpt/local_model does not appear to have a file named config.json. Checkout 'https://huggingface.co//tmp/mpt/local_model/None' for available files.