CNBC’s Jim Cramer said investors should be more selective when investing in the semiconductor rally.

Cerebras Systems Inc. raised $5.55 billion in its US initial public offering, as the artificial intelligence chipmaker seizes on the surging demand for semiconductors.

Cerebras raised $5.55 billion in its IPO, and with the chipmaker's offering, investors are gearing up for some even bigger AI deals later this year.