question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[config] no param naming validation

See original GitHub issue

I have noticed that one could make a typo in the config file and DeepSpeed silently ignores it. e.g. I did:

    "gradient_clipp1ng": 1

and got no errors.

Not sure if it should validate the value as well, as float is expected, but I guess int is fine as it’s just converted to float.

This lack of validation could lead to user errors which could be hard to notice.

Nothing urgent, but at some point it’d be good to tell the user if they added a config entry which is invalid.

Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
stas00commented, Jan 13, 2021

I was going to suggest YAML, but I thought that something better must have been invented since then. YAML is from around 2001 if I remember correctly.

I have never used https://hjson.github.io/, but it does look like the most straightforward solution as it was created to overcome limitations of json for human use. May be that’s all is needed.

I don’t know how your user/developer community works, perhaps throwing the net wider would give practical feedback from users who may have used hjson already and can tell how good it is in practice.

1reaction
jeffracommented, Jan 13, 2021

Thanks @stas00, JSON validation I think is on our radar and definitely something we should add in the short term. Also agree JSON isn’t the most user-friendly of formats. We’ll have to look into alternatives. I have heard good things about hjson. It allows commas/comments but I don’t think supports numbers in the way you describe unfortunately. YAML might also be a reasonable option but also comes with difficulties haha

It appears YAML supports numbers like 5_000_000_000 and comments. We’ll have to look into this further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resolve the "Parameter validation failed" error in ...
1. Open the AWS CloudFormation console. · 2. In the navigation pane, choose Stacks. · 3. Form the Stack name column, choose the...
Read more >
Validating parameters (“input rules”)
Type a unique name that can be referenced in other parts of the configuration. Do not use spaces or special characters. The maximum...
Read more >
How to avoid no-param-reassign when setting a property ...
Personally, I would just use the "no-param-reassign": ["error", { "props": false }] approach a couple of other answers mentioned. Modifying a property of...
Read more >
Validating RequestParams and PathVariables in Spring
Learn how to validate request parameters and path variables with Spring ... public class ClientWebConfigJava implements WebMvcConfigurer ...
Read more >
Change validation parameters
Configuring Advanced Change Validation Strictness ... By default, a discrepancy in object names will not cause validation to fail.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found