Rack units are not the limiting factor
A cabinet can have unused rack units and still be at its electrical or thermal limit. GPU servers concentrate heat and power into a small footprint. Plan the rack around actual server draw, airflow, weight, depth and cable clearance rather than filling every available unit.