The fire line size is dictated by the local fire demand which is usually determined by the fire dept. that will service the units. Most likely, the residential fire demand will be 500 gpm and the commercial demand will be 1500 gpm.There will also be a minimum line pressure required, usually 20 psi.
In addition, there usually several other rules such as the distance between fire hydrants, maximum length of a dead end street and sometimes a water supply from two sources is required.
Also the fire demand required is in addition to the normal water demand