Minor update of `run_call_with_unpacked_inputs` (#18541)
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
8cb5ecd912
commit
6bea7b8178
|
@ -398,7 +398,7 @@ def unpack_inputs(func):
|
|||
fn_args_and_kwargs.update(dict(zip(func.__code__.co_varnames[1:], args)))
|
||||
|
||||
# Encoder Decoder models delegate the application of the configuration options to their inner models.
|
||||
if "encoder_decoder" in str(self).lower():
|
||||
if "EncoderDecoder" in self.__class__.__name__:
|
||||
config = None
|
||||
else:
|
||||
config = self.config
|
||||
|
|
Loading…
Reference in New Issue