The chipmaker’s AI-inference agreement with startup Groq indicates growing competition for top talent and technology.