✓ Initialized. View run at https://modal.com/apps/alexcodeplace/main/ap-6mUKnCITxoenAkHNUQ7K0a Building image im-u0WGCytZXj1xymKmEsLlgR => Step 0: running function 'download_model' Downloading google/translategemma-4b-it to image... Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status response.raise_for_status() File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://huggingface.co/google/translategemma-4b-it/resolve/main/config.json The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error metadata = get_hf_file_metadata( ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata r = _request_wrapper( ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper response = _request_wrapper( ^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper hf_raise_for_status(response) File "/usr/local/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 466, in hf_raise_for_status raise _format(HfHubHTTPError, message, response) from e huggingface_hub.errors.HfHubHTTPError: (Request ID: Root=1-696bcba6-6ed47baf29de8ab21a9bc123;ac0df6ad-5181-4a26-a5eb-afd566e4aa5b) 403 Forbidden: Please enable access to public gated repositories in your fine-grained token settings to view this repository.. Cannot access content at: https://huggingface.co/google/translategemma-4b-it/resolve/main/config.json. Make sure your token has the correct permissions. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/transformers/utils/hub.py", line 402, in cached_file resolved_file = hf_hub_download( ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download return _hf_hub_download_to_cache_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1114, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1658, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/pkg/modal/_runtime/container_io_manager.py", line 947, in handle_input_exception yield File "/pkg/modal/_container_entrypoint.py", line 171, in run_input_sync values = io_context.call_function_sync() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/pkg/modal/_runtime/container_io_manager.py", line 225, in call_function_sync expected_value_or_values = self.finalized_function.callable(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/gemmatranslate_test_only.py", line 36, in download_model tokenizer = AutoTokenizer.from_pretrained(model_name, token=HF_TOKEN, cache_dir=cache_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/transformers/models/auto/tokenization_auto.py", line 854, in from_pretrained config = AutoConfig.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/transformers/models/auto/configuration_auto.py", line 976, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/transformers/configuration_utils.py", line 632, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/transformers/configuration_utils.py", line 689, in _get_config_dict resolved_config_file = cached_file( ^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/transformers/utils/hub.py", line 445, in cached_file raise EnvironmentError( OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like google/translategemma-4b-it is not the path to a directory containing a file named config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'. Saving image... Image saved, took 1.05s Finished image build for im-u0WGCytZXj1xymKmEsLlgR Stopping app - uncaught exception raised locally: RemoteError('Image build for im-u0WGCytZXj1xymKmEsLlgR failed with the exception:\nOSError("We couldn\'t connect to \'https://huggingface.co\' to load this file, couldn\'t find it in the cached files and it looks like google/translategemma-4b-it is not the path to a directory containing a file named config.json.\\nCheckout your internet connection or see how to run the library in offline mode at \'https://huggingface.co/docs/transformers/installation#offline-mode\'.")'). ╭─ Error ──────────────────────────────────────────────────────────────────────╮ │ Image build for im-u0WGCytZXj1xymKmEsLlgR failed with the exception: │ │ OSError("We couldn't connect to 'https://huggingface.co' to load this file, │ │ couldn't find it in the cached files and it looks like │ │ google/translategemma-4b-it is not the path to a directory containing a file │ │ named config.json.\nCheckout your internet connection or see how to run the │ │ library in offline mode at │ │ 'https://huggingface.co/docs/transformers/installation#offline-mode'.") │ ╰──────────────────────────────────────────────────────────────────────────────╯