SPW has a helpful series on cable sizing. The first part focuses on inverter output conductors and recommends designing for true AC output ampere requirements and not wasting money, which may include thinking outside of NEC parameters. The second part focuses on safely reducing cable sizes to maximize project returns – recommending understanding anticipated year-long variations in PV system behavior.