I just happen to have a spreadsheet that covers compute density for all models of dell, HPE, and supermicro…
Your cost/density sweet spot is going to be the 2u/4 node platform from Dell or supermicro that use the xeon e5-2600v4 or scalable v2. There’s a wide selection on eBay for this stuff, so it’s definitely available. At 16 cores/CPU, 128 cores/2u unit, you’ll need 6 units.
For the dell fx2s with 4 x fx630 nodes, 256gb memory/node, 32 cores/node, I spec’d one out for $2400 before storage and GPU
Air gapped, no Internet access. I don’t use Internet services for any of my stuff though so I can get away without direct Internet access