Skip to content

argparse (used by hf_argparser) explicitly passes all defaults #2

@angus-lherrou

Description

@angus-lherrou

Python 3.8, argparse.py:1793:

# add any parser defaults that aren't present
for dest in self._defaults:
    if not hasattr(namespace, dest):
        setattr(namespace, dest, self._defaults[dest])

This causes all parameters to be passed explicitly, including defaults.

Want to account for this for the transformers.hf_argparser use case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions