It's also possible that your puppy is eating dirt because she's bored.
You need to learn the cause of your dog's interest in eating dirt and rocks, which can be a choking hazard, before you can work to change the behavior.
Your puppy could also be eating dirt because she's hungry.