Skip to content

Commit 1965405

Browse files
Skip smollm3 tests in tests-bwd (#821)
## Summary <!--- This is a required section; please describe the main purpose of this proposed code change. ---> Skip smollm3 tests in tests-bwd as it is only available for transformers>=4.53.0. This will help fix tests-bwd on nvidia. <!--- ## Details This is an optional section; is there anything specific that reviewers should be aware of? ---> ## Testing Done <!--- This is a required section; please describe how this change was tested. ---> <!-- Replace BLANK with your device type. For example, A100-80G-PCIe Complete the following tasks before sending your PR, and replace `[ ]` with `[x]` to indicate you have done them. --> - Hardware Type: <BLANK> - [x] run `make test` to ensure correctness - [x] run `make checkstyle` to ensure code style - [ ] run `make test-convergence` to ensure convergence
1 parent 0ab432e commit 1965405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/transformers/test_monkey_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,7 @@ def test_apply_liger_kernel_to_instance_for_glm4():
16341634
pytest.fail(f"An exception occured in extra_expr: {type(e).__name__} - {e}")
16351635

16361636

1637+
@pytest.mark.skipif(not is_smollm3_available(), reason="smollm3 module not available")
16371638
def test_apply_liger_kernel_to_instance_for_smollm3():
16381639
# Ensure any monkey patching is cleaned up for subsequent tests
16391640
with patch("transformers.models.smollm3.modeling_smollm3"):

0 commit comments

Comments
 (0)