They absolutely did not spend millions to train it. Credible estimates place the cost for an entity like Meta at about 30-100k, probably less since Meta likely owns the 256 A100x8s needed to train it.
Even as an individual, it wouldn't cost you anywhere near a million if you only trained 13B and took advantage of volume pricing.