pytocs icon indicating copy to clipboard operation
pytocs copied to clipboard

parser error. More than one keyword argument specifier.

Open toolgood opened this issue 3 years ago • 1 comments

url: https://github.com/huggingface/transformers file: transformers\examples\research_projects\rag\lightning_base.py(89)

        if config is None:
            self.config = AutoConfig.from_pretrained(
                self.hparams.config_name if self.hparams.config_name else self.hparams.model_name_or_path,
                **({"num_labels": num_labels} if num_labels is not None else {}),
                cache_dir=cache_dir,
                **config_kwargs,   #this
            )
        else:
            self.config: PretrainedConfig = config

toolgood avatar Feb 22 '23 05:02 toolgood

I think I have possible solution for this. it will take me a while to implement though. For now I recommend rewriting the Python so that the kwargs dictionary is filled in prior to the call.

uxmal avatar Mar 01 '23 21:03 uxmal