Trainer evaluation loop can't be used with predict_with_generate
#729
Labels
bug
Something isn't working
predict_with_generate
#729
Environment info
adapters
version: 1.0.0.dev0 (latest main)Information
LoRAConfig(r=8, alpha=16)
To reproduce
Execute this example script:
Resulting error:
Explanation: In
generate()
, the method_validate_model_kwargs()
checks for any unused kwargs. Because we do not specifylabels
as parameter in the forward method of theAdapterModels
and only give it in kwargs this linein
_validate_model_kwargs()
will identifylabels
as unused, resulting in the thrown ValueError.Expected behavior
Execution of the evaluation loop with use of
generate()
method without the error.Current workaround: set
predict_with_generate=False
.The text was updated successfully, but these errors were encountered: