mlfoundations / open_lm

A repository for research on medium sized language models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factor out parameter error checking

sagadre opened this issue · 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