The change in puppies diet has to be gradual and not sudden ,that's the cause of your pup throwing up ,give him light food like puppy cerelac ,few kibbles of dog food ,some mix of home food and keep it light till he grows up and is fit enough to eat and digest readymade dog food