I wouldn't give it to a tiny puppy. It probably wouldn't hurt on an occasional basis to give it to a bigger yorkie. I would just make the recipe without it, and that is only if your breeder thinks the treats would be ok for a new puppy.
Perhaps most revealing is the study published in the American Journal of Veterinary Research in November 2000. Four dogs were given measured amounts of garlic and four dogs received none. After only seven days, blood tests on the dogs taking garlic revealed decreased levels in hemoglobin, hematocrit, and red blood cell values. Heinz body formation, an increase in erythrocyte-reduced glutathione concentration, and eccentrocytes were also detected, although none of the dogs developed hemolytic anemia.
Veterinarians conducting the study concluded that garlic has the potential to cause hemolytic anemia and that food containing garlic should not be given to dogs.
You can read this link:
Is Garlic Good or Bad for Dogs?: Veterinarians Explain Garlic?s Benefits and Dangers
This link will show you the foods that they shouldn't have:
Homemade Dog Food Dangers: Table Foods That Harm Dogs