There are differences in the breed size, and the individual dog's needs differ. However, the best general rule is to keep puppies on puppy food for 12 months. Apart from that, the guidance varies slightly, depending on breed. Since small dogs typically are done growing within a year, while large breeds may continue to grow.
One important thing is that you shouldn't put food too much; you should put a little food. Thanks to avoiding waste or accidentally you harm them.