Eating too much
Babies will vomit if they eat too much, as their stomachs fill, and then their esophagus, and then they vomit.
If you are feeding
the child more than 2 oz at a feeding decrease it to that level for a few days, then try increasing. If not better, have the child seen.