Meta is going to lay off over 3,000 employees as a part of its push to expand hiring for machine learning engineers.