Cerebras Systems reported better-than-expected second-quarter revenue and and raised its full-year guidance.