From 131129f350d0c69798bfc01d6ab6a18b486dc5d8 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 29 Aug 2026 10:42:19 +0800 Subject: [PATCH 1/2] fix: torch importorskip in the stitch test (CI has no torch) --- tests/test_stitch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_stitch.py b/tests/test_stitch.py index 5939d4a..786e86e 100644 --- a/tests/test_stitch.py +++ b/tests/test_stitch.py @@ -2,9 +2,11 @@ config, preserving the top singular subspace (the microkimi closed-form bridge).""" -import torch +import pytest -from src.gpu.modal_distill import svd_stitch_state +pytest.importorskip("torch") + +from src.gpu.modal_distill import svd_stitch_state # noqa: E402 def _wide_narrow(): From a1b6bd596fcbd1ddc5903b0537d35364cdb120f0 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 29 Aug 2026 10:42:52 +0800 Subject: [PATCH 2/2] fix: import torch after the skip guard --- tests/test_stitch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_stitch.py b/tests/test_stitch.py index 786e86e..59e76db 100644 --- a/tests/test_stitch.py +++ b/tests/test_stitch.py @@ -5,6 +5,7 @@ import pytest pytest.importorskip("torch") +import torch # noqa: E402 from src.gpu.modal_distill import svd_stitch_state # noqa: E402