File size: 6,594 Bytes
a050906
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
```CODE: 
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("FlashLabs/Chroma-4B", trust_remote_code=True, dtype="auto")
```

ERROR: 
Traceback (most recent call last):
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status
    response.raise_for_status()
    ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/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/FlashLabs/Chroma-4B/resolve/main/config.json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 479, in cached_files
    hf_hub_download(
    ~~~~~~~~~~~~~~~^
        path_or_repo_id,
        ^^^^^^^^^^^^^^^^
    ...<10 lines>...
        local_files_only=local_files_only,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download
    return _hf_hub_download_to_cache_dir(
        # Destination
    ...<14 lines>...
        force_download=force_download,
    )
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/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 "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1655, in _raise_on_head_call_error
    raise head_call_error
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error
    metadata = get_hf_file_metadata(
        url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint
    )
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata
    r = _request_wrapper(
        method="HEAD",
    ...<5 lines>...
        timeout=timeout,
    )
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper
    response = _request_wrapper(
        method=method,
    ...<2 lines>...
        **params,
    )
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper
    hf_raise_for_status(response)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 419, in hf_raise_for_status
    raise _format(GatedRepoError, message, response) from e
huggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: Root=1-697714ed-60f3ddfb65f03a652c82f782;525420a9-33a0-4768-83a1-b13df8fbe156)

Cannot access gated repo for url https://huggingface.co/FlashLabs/Chroma-4B/resolve/main/config.json.
Access 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.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/FlashLabs_Chroma-4B_14Gp8jG.py", line 25, in <module>
    model = AutoModel.from_pretrained("FlashLabs/Chroma-4B", trust_remote_code=True, dtype="auto")
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 549, in from_pretrained
    config, kwargs = AutoConfig.from_pretrained(
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        pretrained_model_name_or_path,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        **kwargs,
        ^^^^^^^^^
    )
    ^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/models/auto/configuration_auto.py", line 1332, in from_pretrained
    config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/configuration_utils.py", line 662, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
                          ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/configuration_utils.py", line 721, in _get_config_dict
    resolved_config_file = cached_file(
        pretrained_model_name_or_path,
    ...<10 lines>...
        _commit_hash=commit_hash,
    )
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 322, in cached_file
    file = cached_files(path_or_repo_id=path_or_repo_id, filenames=[filename], **kwargs)
  File "/tmp/.cache/uv/environments-v2/78bfeaa12e6fea46/lib/python3.13/site-packages/transformers/utils/hub.py", line 543, in cached_files
    raise OSError(
    ...<2 lines>...
    ) from e
OSError: You are trying to access a gated repo.
Make sure to have access to it at https://huggingface.co/FlashLabs/Chroma-4B.
403 Client Error. (Request ID: Root=1-697714ed-60f3ddfb65f03a652c82f782;525420a9-33a0-4768-83a1-b13df8fbe156)

Cannot access gated repo for url https://huggingface.co/FlashLabs/Chroma-4B/resolve/main/config.json.
Access 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.