FAILED tests/models/speecht5/test_modeling_speecht5.py::SpeechT5ModelTest::test_peft_gradient_checkpointing_enable_disable - AttributeError: 'NoneType' object has no attribute 'register_forward_hook'
FAILED tests/models/speecht5/test_modeling_speecht5.py::SpeechT5ForSpeechToSpeechTest::test_peft_gradient_checkpointing_enable_disable - AttributeError: 'NoneType' object has no attribute 'register_forward_hook'
System Info
transformers
version: 4.45.0.dev0Who can help?
@amyeroberts @ylacombe
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
see https://github.com/huggingface/transformers/pull/33194 which adds test test_peft_gradient_checkpointing_enable_disable.
pytest tests/models/speecht5/test_modeling_speecht5.py -k "peft"
FAILED tests/models/speecht5/test_modeling_speecht5.py::SpeechT5ModelTest::test_peft_gradient_checkpointing_enable_disable - AttributeError: 'NoneType' object has no attribute 'register_forward_hook' FAILED tests/models/speecht5/test_modeling_speecht5.py::SpeechT5ForSpeechToSpeechTest::test_peft_gradient_checkpointing_enable_disable - AttributeError: 'NoneType' object has no attribute 'register_forward_hook'
Expected behavior
test pass.