model-metadata/code_execution_files
025k
1```CODE: 2import torch3from diffusers import DiffusionPipeline4 5# switch to "mps" for apple devices6pipe = DiffusionPipeline.from_pretrained("fal/FLUX.2-Tiny-AutoEncoder", dtype=torch.bfloat16, device_map="cuda")7 8prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"9image = pipe(prompt).images[0]10```11 12ERROR: 13Traceback (most recent call last):14 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 402, in hf_raise_for_status15 response.raise_for_status()16 ~~~~~~~~~~~~~~~~~~~~~~~~~^^17 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status18 raise HTTPError(http_error_msg, response=self)19requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/fal/FLUX.2-Tiny-AutoEncoder/resolve/main/model_index.json20 21The above exception was the direct cause of the following exception:22 23Traceback (most recent call last):24 File "/tmp/fal_FLUX.2-Tiny-AutoEncoder_02Av89c.py", line 27, in <module>25 pipe = DiffusionPipeline.from_pretrained("fal/FLUX.2-Tiny-AutoEncoder", dtype=torch.bfloat16, device_map="cuda")26 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn27 return fn(*args, **kwargs)28 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 833, in from_pretrained29 cached_folder = cls.download(30 pretrained_model_name_or_path,31 ...<14 lines>...32 **kwargs,33 )34 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn35 return fn(*args, **kwargs)36 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/diffusers/pipelines/pipeline_utils.py", line 1490, in download37 config_file = hf_hub_download(38 pretrained_model_name,39 ...<5 lines>...40 token=token,41 )42 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn43 return fn(*args, **kwargs)44 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1007, in hf_hub_download45 return _hf_hub_download_to_cache_dir(46 # Destination47 ...<14 lines>...48 force_download=force_download,49 )50 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1070, in _hf_hub_download_to_cache_dir51 (url_to_download, etag, commit_hash, expected_size, xet_file_data, head_call_error) = _get_metadata_or_catch_error(52 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^53 repo_id=repo_id,54 ^^^^^^^^^^^^^^^^55 ...<10 lines>...56 relative_filename=relative_filename,57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^58 )59 ^60 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1543, in _get_metadata_or_catch_error61 metadata = get_hf_file_metadata(62 url=url, proxies=proxies, timeout=etag_timeout, headers=headers, token=token, endpoint=endpoint63 )64 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn65 return fn(*args, **kwargs)66 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 1460, in get_hf_file_metadata67 r = _request_wrapper(68 method="HEAD",69 ...<5 lines>...70 timeout=timeout,71 )72 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 283, in _request_wrapper73 response = _request_wrapper(74 method=method,75 ...<2 lines>...76 **params,77 )78 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/file_download.py", line 307, in _request_wrapper79 hf_raise_for_status(response)80 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^81 File "/tmp/.cache/uv/environments-v2/a52288703729baf8/lib/python3.13/site-packages/huggingface_hub/utils/_http.py", line 413, in hf_raise_for_status82 raise _format(EntryNotFoundError, message, response) from e83huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-693134c2-4d00324f60135ae759adad11;d0cdd16b-8175-43d3-b06b-e70fa965d004)84 85Entry Not Found for url: https://huggingface.co/fal/FLUX.2-Tiny-AutoEncoder/resolve/main/model_index.json.86 