Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser error. More than one keyword argument specifier. #98

Open
toolgood opened this issue Feb 22, 2023 · 1 comment
Open

parser error. More than one keyword argument specifier. #98

toolgood opened this issue Feb 22, 2023 · 1 comment

Comments

@toolgood
Copy link
Contributor

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
@uxmal
Copy link
Owner

uxmal commented Mar 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants