[config] no param naming validation
See original GitHub issueI 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:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.