mlfoundations/open_lm

Factor out parameter error checking

sagadre opened this issue · 2 comments

Currently parameter error checking and throwing is done on-the-fly in main.py. This means we may do some heavy weight initialization (e.g., of model) only to throw if a user passed incompatible flags. Having an error checking function, called after argparse, will alleviate this and also clean up code.

@achalddave looking into this

#153 closes this