Skip to content

Commit

Permalink
Skip private model loading for external contributors (#2130)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Dec 19, 2024
1 parent 21de42f commit 34b3d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/onnxruntime/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def test_stable_diffusion_model_on_rocm_ep_str(self):
def test_load_model_from_hub_private(self):
token = os.environ.get("HF_HUB_READ_TOKEN", None)

if token is None:
if not token:
self.skipTest(
"Test requires a read access token for optimum-internal-testing in the environment variable `HF_HUB_READ_TOKEN`."
)
Expand Down

0 comments on commit 34b3d8b

Please sign in to comment.