Skip to content

Commit

Permalink
Skip private mdoel loading test for external contributors (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix authored Dec 19, 2024
1 parent cf3aad4 commit 106a5b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_load_from_hub_and_save_stable_diffusion_model(self):
def test_load_model_from_hub_private_with_token(self):
model_id = "optimum-internal-testing/tiny-random-phi-private"
token = os.environ.get("HF_HUB_READ_TOKEN", None)
if token is None:
if not token:
self.skipTest("Test requires a token `HF_HUB_READ_TOKEN` in the environment variable")

model = OVModelForCausalLM.from_pretrained(model_id, token=token, revision="openvino")
Expand Down

0 comments on commit 106a5b7

Please sign in to comment.