maxtext
maxtext copied to clipboard
Add main and replace argparse with flags to run sharding on g3
These are the changes:
- Adding main function as blaze requires the use of main.
- Replacing argparse with with flags as a workaround to avoid issues in inputs
- 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