mark_forward_method
does not work with ModelParallelStrategy
#20710
Labels
mark_forward_method
does not work with ModelParallelStrategy
#20710
Bug description
When using the
ModelParallelStrategy
, methods annotated withmark_forward_method
raise an exception if the function signature does not match that of the module'sforward
method. This fails specifically when the number of args/kwargs differ between the functions.For calling
generate
here would fail in an FSDP2 setting with the errorTypeError: Model.forward got an unexpected keyword argument cfg
What version are you seeing the problem on?
v2.5
Error messages and logs
Environment
Current environment
More info
No response
The text was updated successfully, but these errors were encountered: