Team Ai
Datasetpublic

model-metadata/code_execution_files

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes25kdownloads
FlashLabs_Chroma-4B_1.txt104 linesDownload Raw Back to root
1```CODE: 2# Load model directly3from transformers import AutoModel4model = AutoModel.from_pretrained("FlashLabs/Chroma-4B", trust_remote_code=True, dtype="auto")5```6 7ERROR: 8Traceback (most recent call last):9  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 657, in hf_raise_for_status10    response.raise_for_status()11    ~~~~~~~~~~~~~~~~~~~~~~~~~^^12  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/httpx/_models.py", line 829, in raise_for_status13    raise HTTPStatusError(message, request=request, response=self)14httpx.HTTPStatusError: Client error '403 Forbidden' for url 'https://huggingface.co/FlashLabs/Chroma-4B/resolve/main/config.json'15For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/40316 17The above exception was the direct cause of the following exception:18 19Traceback (most recent call last):20  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 419, in cached_files21    hf_hub_download(22    ~~~~~~~~~~~~~~~^23        path_or_repo_id,24        ^^^^^^^^^^^^^^^^25    ...<9 lines>...26        local_files_only=local_files_only,27        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^28    )29    ^30  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn31    return fn(*args, **kwargs)32  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1024, in hf_hub_download33    return _hf_hub_download_to_cache_dir(34        # Destination35    ...<15 lines>...36        dry_run=dry_run,37    )38  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1175, in _hf_hub_download_to_cache_dir39    _raise_on_head_call_error(head_call_error, force_download, local_files_only)40    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^41  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1804, in _raise_on_head_call_error42    raise head_call_error43  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1691, in _get_metadata_or_catch_error44    metadata = get_hf_file_metadata(45        url=url,46    ...<4 lines>...47        retry_on_errors=retry_on_errors,48    )49  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 89, in _inner_fn50    return fn(*args, **kwargs)51  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1614, in get_hf_file_metadata52    response = _httpx_follow_relative_redirects(53        method="HEAD", url=url, headers=hf_headers, timeout=timeout, retry_on_errors=retry_on_errors54    )55  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 309, in _httpx_follow_relative_redirects56    hf_raise_for_status(response)57    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^58  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 677, in hf_raise_for_status59    raise _format(GatedRepoError, message, response) from e60huggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: Root=1-697b0b35-590a7d06780ad1c744734b19;c05efcf6-e212-4de8-b75b-c60e510650be)61 62Cannot access gated repo for url https://huggingface.co/FlashLabs/Chroma-4B/resolve/main/config.json.63Access to model FlashLabs/Chroma-4B is restricted and you are not in the authorized list. Visit https://huggingface.co/FlashLabs/Chroma-4B to ask for access.64 65The above exception was the direct cause of the following exception:66 67Traceback (most recent call last):68  File "/tmp/FlashLabs_Chroma-4B_1294R6S.py", line 25, in <module>69    model = AutoModel.from_pretrained("FlashLabs/Chroma-4B", trust_remote_code=True, dtype="auto")70  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 317, in from_pretrained71    config, kwargs = AutoConfig.from_pretrained(72                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^73        pretrained_model_name_or_path,74        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^75    ...<4 lines>...76        **kwargs,77        ^^^^^^^^^78    )79    ^80  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1356, in from_pretrained81    config_dict, unused_kwargs = PreTrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)82                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^83  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/configuration_utils.py", line 569, in get_config_dict84    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)85                          ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^86  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/configuration_utils.py", line 624, in _get_config_dict87    resolved_config_file = cached_file(88        pretrained_model_name_or_path,89    ...<9 lines>...90        _commit_hash=commit_hash,91    )92  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 276, in cached_file93    file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)94  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 483, in cached_files95    raise OSError(96    ...<2 lines>...97    ) from e98OSError: You are trying to access a gated repo.99Make sure to have access to it at https://huggingface.co/FlashLabs/Chroma-4B.100403 Client Error. (Request ID: Root=1-697b0b35-590a7d06780ad1c744734b19;c05efcf6-e212-4de8-b75b-c60e510650be)101 102Cannot access gated repo for url https://huggingface.co/FlashLabs/Chroma-4B/resolve/main/config.json.103Access to model FlashLabs/Chroma-4B is restricted and you are not in the authorized list. Visit https://huggingface.co/FlashLabs/Chroma-4B to ask for access.104