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

Add better support for HuggingFace-style dataclasses #172

Merged
merged 10 commits into from
Jan 10, 2023

Conversation

lebrice
Copy link
Owner

@lebrice lebrice commented Oct 20, 2022

Fixes #169

TODOs left:

  • Test that the "help" entry gets used as the "--help" message
  • Test for that weird enum issue with the SchedulerType enum.
    • Unable to reproduce it, for some reason!
  • Test that this work with the TrainingArguments class from Huggingface. Potentially make an extra CI test job with it.
  • Add support for the "choices" in the metadata. Not sure if that's what they do
  • Fix the entire docstring of TrainingArguments being used in the help text. Fields should get those instead (related to "Attributes:" Google-style docstring support for automatic help string #166 )

Signed-off-by: Fabrice Normandin fabrice.normandin@gmail.com

@lebrice lebrice changed the title Add support for HuggingFace-style help strings Add better support for HuggingFace-style dataclasses Oct 25, 2022
Fixes #169

Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
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

Successfully merging this pull request may close these issues.

Interop with HuggingFace: Use help entry from field metadata dict
1 participant