You may carry liquid or semi-solid baby food in the quantity necessary for the journey.
These exceptions are regulated by Implementing Regulation (EU) 2015/1998, which allows medicines and baby food to be carried in the cabin even if they exceed the usual 100 ml limit.