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