PyTorch Mobile Build

I want to have PyTorch Mobile available on my mobile device, how it builds PyTorch Mobile from source? not needed to include a full-fledge PyTorch. If PyTroch is built then how to distinguishes during inference standard PyTorch vs. PyTorch Mobile?
Thank you.