UK neocloud Nscale agreed to buy Anyscale, maker of the open-source Ray platform, for about $1.65 billion to build a vertically integrated AI cloud.