gisting: ConfigValueError when Training smaller T5 Model according to READ.ME

The error:

ConfigValueError: Unions of containers are not supported:
generation_config: Union[str, Path, GenerationConfig]
    full_key: 
    object_type=None

How to reproduce: run the train command in README

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 26 (10 by maintainers)

Most upvoted comments

Can you give the full command you ran to produce this error? This seems to be a syntax issue with how arguments were specified in the CLI.

As a workaround you may be able to set

generation_config: Optional[str] = None

here: https://github.com/jayelm/gisting/blob/main/src/arguments.py#L137-L138

to change the type of generation_config and see if that satisfies the omegaconf typechecker.

do you mean that add “generation_config: Optional[str] = None” into the function you mentioned?(above or substitute the pass line)

As a workaround you may be able to set

generation_config: Optional[str] = None

here: https://github.com/jayelm/gisting/blob/main/src/arguments.py#L137-L138

to change the type of generation_config and see if that satisfies the omegaconf typechecker.