Pass pmap axis specs optionally to make_model_info.
Pass pmap axis specs optionally to make_model_info.

This helps outputting correct shapes from jax.lax.all_gather.

PiperOrigin-RevId: 485625883

deepmind/dm-haiku,deepmind/dm-haiku