huggingface / peft

🤗 PEFT: State-of-the-art Parameter-Efficient Fine-Tuning.
https://huggingface.co/docs/peft
Apache License 2.0
16.53k stars 1.64k forks source link

TST: Skip test on multi-GPU as DataParallel fails #2234

Open BenjaminBossan opened 19 hours ago

BenjaminBossan commented 19 hours ago

This test fails in multi-GPU setting because transformers.Trainer switches to DataParallel. As this is not a commonly used parallelization strategy, it should be okay to just skip this. The test will still be run on single GPU and CPU.

https://github.com/huggingface/peft/actions/runs/12002085686/job/33453519249#step:6:45046

Unfortunately, once this test fails, all subsequent tests also fail with

RuntimeError: CUDA error: device-side assert triggered

so it's important to fix this test fast, as it may mask other failures on multi-GPU.

HuggingFaceDocBuilderDev commented 19 hours ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.