Skip to content

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

Description

@toolgood

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions