Puppy food should be fed until a puppy stops growing, at which point they should transition to adult food.
In general, small breed pups mature faster than large or giant breeds, since they have less growing to do. A good rule of thumb for transitioning from puppy food to adult dog food is: