Millimeter-sized dielectric solid armatures have been accelerated in a compact railgun system. It is shown that application of an external pulsed magnetic field can solve the problem of catastrophic erosion of electrodes at the initial stage and accelerate small armatures up to a velocity of about 6 km/s.