Skip to content

Commit 48c557e

Browse files
fix parsing args (#2264)
* fix parsing args * fix parsing args * [CI] build eora for test
1 parent a72941c commit 48c557e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/unit_tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ env:
7171
BUILD_QQQ: 1
7272
BUILD_EORA: 1
7373
GPTQMODEL_BUILD_EXLLAMA_V1: 1
74+
GPTQMODEL_BUILD_EORA: 1
7475
LEGACY_TESTS: "models/test_internlm.py,models/test_internlm2_5.py,models/test_xverse.py"
7576
IGNORED_TEST_FILES: "test_tgi.py,test_gptneox.py,models/test_mixtral.py,models/test_phi_3_moe.py,test_bits_new.py"
7677
GPTQMODEL_FORCE_BUILD: 1

tests/test_cpu_gpu_memory_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def main():
105105
parser.add_argument("--gpu", type=int, default=0, help="GPU id to test against")
106106
parser.add_argument("--total-gib", type=float, default=40.0, help="Total GiB to stream per direction per mode")
107107
parser.add_argument("--chunk-gib", type=float, default=1.0, help="Chunk size GiB per copy")
108-
args = parser.parse_args()
108+
args, _ = parser.parse_known_args()
109109

110110
if not torch.cuda.is_available():
111111
raise SystemExit("CUDA not available.")

tests/test_gpu_gpu_memory_copy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
parser.add_argument("--dst", type=int, default=1, help="destination GPU id")
7878
parser.add_argument("--total-gib", type=float, default=40.0, help="total GiB to stream per direction")
7979
parser.add_argument("--chunk-gib", type=float, default=1.0, help="chunk size GiB per copy")
80-
args = parser.parse_args()
80+
args, _ = parser.parse_known_args()
8181

8282
if not torch.cuda.is_available() or torch.cuda.device_count() < 2:
8383
raise SystemExit("Need at least 2 CUDA devices.")

0 commit comments

Comments
 (0)