The deal will give OpenAI access to AWS’s large-scale AI infrastructure, which includes clusters of more than 500,000 chips.