Skip to content

Commit 106a5b7

Browse files
authoredDec 19, 2024
Skip private mdoel loading test for external contributors (#1082)
1 parent cf3aad4 commit 106a5b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tests/openvino/test_modeling.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_load_from_hub_and_save_stable_diffusion_model(self):
395395
def test_load_model_from_hub_private_with_token(self):
396396
model_id = "optimum-internal-testing/tiny-random-phi-private"
397397
token = os.environ.get("HF_HUB_READ_TOKEN", None)
398-
if token is None:
398+
if not token:
399399
self.skipTest("Test requires a token `HF_HUB_READ_TOKEN` in the environment variable")
400400

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

0 commit comments

Comments
 (0)