From 163ded4cd78b1e8f57640efb539898738e3700b0 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Fri, 5 Sep 2025 11:39:59 +0200 Subject: [PATCH] [test-all] tests --- utils/fetch_hub_objects_for_ci.py | 112 ++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/utils/fetch_hub_objects_for_ci.py b/utils/fetch_hub_objects_for_ci.py index 54cf006fd3ca..349fd8ed58cd 100644 --- a/utils/fetch_hub_objects_for_ci.py +++ b/utils/fetch_hub_objects_for_ci.py @@ -56,6 +56,118 @@ def url_to_local_path(url, return_url_if_not_found=True): _ = datasets.load_dataset("hf-internal-testing/fixtures_image_utils", split="test", revision="refs/pr/1") _ = hf_hub_download(repo_id="nateraw/video-demo", filename="archery.mp4", repo_type="dataset") + hf_hub_download("Narsil/asr_dummy", filename="hindi.ogg", repo_type="dataset") + hf_hub_download(repo_id="hf-internal-testing/bool-masked-pos", filename="bool_masked_pos.pt") + hf_hub_download( + repo_id="hf-internal-testing/fixtures_docvqa", + filename="nougat_pdf.png", + repo_type="dataset", + revision="ec57bf8c8b1653a209c13f6e9ee66b12df0fc2db", + ) + hf_hub_download( + repo_id="hf-internal-testing/image-matting-fixtures", filename="image.png", repo_type="dataset" + ) + hf_hub_download( + repo_id="hf-internal-testing/image-matting-fixtures", filename="trimap.png", repo_type="dataset" + ) + hf_hub_download( + repo_id="hf-internal-testing/spaghetti-video", filename="eating_spaghetti.npy", repo_type="dataset" + ) + hf_hub_download( + repo_id="hf-internal-testing/spaghetti-video", + filename="eating_spaghetti_32_frames.npy", + repo_type="dataset", + ) + hf_hub_download( + repo_id="hf-internal-testing/spaghetti-video", + filename="eating_spaghetti_8_frames.npy", + repo_type="dataset", + ) + hf_hub_download( + repo_id="hf-internal-testing/tourism-monthly-batch", filename="train-batch.pt", repo_type="dataset" + ) + hf_hub_download(repo_id="huggyllama/llama-7b", filename="tokenizer.model") + hf_hub_download( + repo_id="nielsr/audio-spectogram-transformer-checkpoint", filename="sample_audio.flac", repo_type="dataset" + ) + hf_hub_download(repo_id="nielsr/example-pdf", repo_type="dataset", filename="example_pdf.png") + hf_hub_download( + repo_id="nielsr/test-image", + filename="llava_1_6_input_ids.pt", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/test-image", + filename="llava_1_6_pixel_values.pt", + repo_type="dataset", + ) + hf_hub_download(repo_id="nielsr/textvqa-sample", filename="bus.png", repo_type="dataset") + hf_hub_download( + repo_id="raushan-testing-hf/images_test", + filename="emu3_image.npy", + repo_type="dataset", + ) + hf_hub_download(repo_id="raushan-testing-hf/images_test", filename="llava_v1_5_radar.jpg", repo_type="dataset") + hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="sample_demo_1.mp4", repo_type="dataset") + hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="video_demo.npy", repo_type="dataset") + hf_hub_download(repo_id="raushan-testing-hf/videos-test", filename="video_demo_2.npy", repo_type="dataset") + hf_hub_download( + repo_id="shumingh/perception_lm_test_images", + filename="14496_0.PNG", + repo_type="dataset", + ) + hf_hub_download( + repo_id="shumingh/perception_lm_test_videos", + filename="GUWR5TyiY-M_000012_000022.mp4", + repo_type="dataset", + ) + repo_id = "nielsr/image-segmentation-toy-data" + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="instance_segmentation_image_1.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="instance_segmentation_image_2.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="instance_segmentation_annotation_1.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="instance_segmentation_annotation_2.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="semantic_segmentation_annotation_1.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="semantic_segmentation_annotation_2.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="semantic_segmentation_image_1.png", + repo_type="dataset", + ) + hf_hub_download( + repo_id="nielsr/image-segmentation-toy-data", + filename="semantic_segmentation_image_2.png", + repo_type="dataset", + ) + hf_hub_download("shi-labs/oneformer_demo", "ade20k_panoptic.json", repo_type="dataset") + + hf_hub_download( + repo_id="nielsr/audio-spectogram-transformer-checkpoint", filename="sample_audio.flac", repo_type="dataset" + ) + # Need to specify the username on the endpoint `hub-ci`, otherwise we get # `fatal: could not read Username for 'https://hub-ci.huggingface.co': Success` # But this repo. is never used in a test decorated by `is_staging_test`.