Skip to content

Commit ec9f193

Browse files
guangy10Guang Yang
andauthored
Skipp large gemma2 test on Linux CI (#84)
Co-authored-by: Guang Yang <[email protected]>
1 parent 51f3f1f commit ec9f193

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/models/test_modeling_gemma2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import logging
1818
import os
1919
import subprocess
20+
import sys
2021
import tempfile
2122
import unittest
2223

@@ -32,10 +33,14 @@
3233
from ..utils import check_causal_lm_output_quality
3334

3435

36+
is_linux_ci = sys.platform.startswith("linux") and os.environ.get("GITHUB_ACTIONS") == "true"
37+
38+
3539
@pytest.mark.skipif(
3640
parse(torchao.__version__) < parse("0.11.0.dev0"),
3741
reason="Only available on torchao >= 0.11.0.dev0",
3842
)
43+
@pytest.mark.skipif(is_linux_ci, reason="OOM on linux runner")
3944
class ExecuTorchModelIntegrationTest(unittest.TestCase):
4045
def __init__(self, *args, **kwargs):
4146
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)