Skip to content
6 changes: 3 additions & 3 deletions tests/slow/test_grpo_slow.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ def test_training_with_transformers_paged(self, model_name):

release_memory(model, trainer)

@require_flash_attn
@require_bitsandbytes
@require_peft
@parameterized.expand(
[
("HuggingFaceTB/SmolVLM-Instruct",), # Only test the smaller model to avoid OOM
]
)
@require_flash_attn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok so @require_X must be after parametrized. For consistency, can you also modify

  • test_training_vlm_and_vllm (it's deactivated but still, it's good to have it right)
  • test_training_with_judge
  • test_training_with_transformers_paged
  • test_xpo_trainer_judge_training

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, also for:

  • test_dpo_trainer_with_liger

@require_bitsandbytes
@require_peft
def test_vlm_training(self, model_name):
"""
Test VLM training with aggressive memory optimization.
Expand Down