Investors are driving big gains in companies making components vital to AI infrastructure.