In brief:
When a process is being characterized, MOSFETs of different W/L's are fabricated and various voltages and currents applied and their responses measured using high precision equipment. The captured data is then used to build compact models (BSIM3 for MOSFETs etc) using tools like Agilent IC-CAP.