The layoffs followed the completion of a $500 million funding round from investors including AMD, Salesforce, Oracle, and NVIDIA that valued the company at $5.5 billion, more than doubling its valuation from last year.