DMF for carbon fiber production