At least 8 weeks, and I prefer 10-12 weeks for toy breeds.
A lot of people think that when the pup is weaned it's ready to go home, but that's not true. Even after eating on its own, a puppy has a lot of things to learn about being a dog from its mother and littermates.