Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix two issues that prevent tests in servable_lm_model_test.py from w…
…orking with auto-sharding: 1. Reshard model vars based on shardings inferred by the auto-sharding pass. In PAX, we create model vars and initialize them based on the shardings inferred. In SAX, we need to re-shard them as they are created before we run auto-sharding (say when the model is loaded from a checkpoint). 2. Ensure that an empty resharding cost vector (which can arise when an arguments to an HLO is an empty tuple) is not considered as a tuple of infinite costs. Also enable tests that have been fixed in previous CLs in this chain. A couple remain unfixed. PiperOrigin-RevId: 535459455
- Loading branch information