The answer depends on the criteria. Guinea pigs are small farm animals raised for meat and fur. Bantam chickens are miniature breeds suited to small spaces. Quail are even smaller and popular for egg production. Some duck breeds, such as the Indian Runner, are also relatively small.
Weight, height, and overall body size all factor into determining the "smallest" farm animal.