Add a regression test for force_accelerate_hooks signature preservation (#48260)
* Add a regression test for force_accelerate_hooks signature preservation
Covers what the missing `functools.wraps` broke: `inspect.signature()` on a
method carrying the decorator, binding captured inputs against it, and the
`__name__` / `__doc__` metadata. Removing the `functools.wraps` line makes it
fail with
AssertionError: Lists differ: ['args', 'kwargs'] != ['hidden_states', ...]
* update tests
* update comments for reference
---------
Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com> L
lazymio committed
5fcf605fda6c7c3982f62807f2eda210aa37e9e1
Parent: 27e7f6c
Committed by GitHub <noreply@github.com>
on 8/26/2026, 8:44:16 AM