trlx
trlx copied to clipboard
8-bit inference
🐛 Describe the bug
When using 8-bit inference, there is a hook function that is created by the accelerate
library and that replaces the forward
method. When using inspect.getfullargspec
to set self.forward_kwargs
with the arguments of forward
, we actually inspect the arguments of the hook instead of the arguments of the real forward
function called by the hook.
Which trlX version are you using?
0.7.0
Additional system and package information
No response