maxtext icon indicating copy to clipboard operation
maxtext copied to clipboard

Add main and replace argparse with flags to run sharding on g3

Open michelle-yooh opened this issue 1 year ago • 1 comments

michelle-yooh avatar Sep 25 '23 20:09 michelle-yooh

These are the changes:

  1. Adding main function as blaze requires the use of main.
  2. Replacing argparse with with flags as a workaround to avoid issues in inputs
  3. Re-ordering imports and adding some lints following google3 guideline

I've tested this runs on clodutop with blaze + CPU I've also run following the conventional way of using multihost_runner + cloud TPU

michelle-yooh avatar Sep 25 '23 20:09 michelle-yooh