trlx icon indicating copy to clipboard operation
trlx copied to clipboard

8-bit inference

Open glerzing opened this issue 1 year ago • 0 comments

🐛 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

glerzing avatar Jun 24 '23 01:06 glerzing