Skip to content

Skip fp16 ZeroPP tests on accelerators without fp16 support - #8610

Merged
delock merged 2 commits into
deepspeedai:masterfrom
jinyouzhi:zeropp_cpu
Sep 22, 2026
Merged

delock merged 2 commits into
deepspeedai:masterfrom
jinyouzhi:zeropp_cpu

Conversation

@jinyouzhi

@jinyouzhi jinyouzhi commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Follow up #8381 @delock

Fix zeropp 9 (sequential) in #8381 (comment)

unit/runtime/zero/test_zeropp.py
image

passed in https://github.com/deepspeedai/DeepSpeed/actions/runs/35571162595/job/106242965025

This pull request updates the tests/unit/runtime/zero/test_zeropp.py test suite to ensure that certain tests are only run on accelerators that support FP16 precision. This prevents test failures on hardware that does not support FP16.

Test robustness improvements:

  • Added @pytest.mark.skipif decorators to the test, test_eval, and test_gradient_accumulation methods in TestZeroPPConfigSweep and a test method in another test class, so these tests are skipped if the accelerator does not support FP16. This uses get_accelerator().is_fp16_supported() to check hardware capability. [1] [2] [3] [4]
  • Imported get_accelerator from deepspeed.accelerator to enable the FP16 support check.

Signed-off-by: Jin, Youzhi <youzhi.jin@intel.com>
Signed-off-by: Jin, Youzhi <youzhi.jin@intel.com>
@delock
delock self-requested a review September 22, 2026 02:48
@delock
delock enabled auto-merge September 22, 2026 05:19
@delock
delock added this pull request to the merge queue Sep 22, 2026
Merged via the queue into deepspeedai:master with commit 2a4ee92 Sep 22, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants