The livestock industry has long been a hotspot environment for antibiotic resistance genes, with smallholder farming still holding a significant position in pig farming. However, the microbial antibiotic resistance and pathogen risks in pigs under the smallholder farming model remain unclear. We systematically analyzed the antibiotic resistance and microbial composition of pig feces from smallholder and large-scale farming models in Sichuan. The results indicated a lower abundance of antibiotic resistance genes (ARGs) and similar microbial composition in smallholder farming compared to large-scale farming. Beneficial bacteria were more abundant in small-scale farming, whereas large-scale farming exhibited more ARGs, virulence genes, and human pathogenic bacteria (HPBs), including ESBL Escherichia coli strains closely related to human strains, indicating higher zoonotic risk. The findings suggest that smallholder farming presents a relatively better microbial composition and resistance profile, highlighting its advantages over large-scale farming in terms of pig and human health. It is noteworthy that a considerable proportion of HPBs carrying ARGs still exist in the feces from smallholder farming, and given the openness of fecal handling, there remains a high risk of transmitting ARGs and pathogens to humans.