You need to add an appropriate liquid that forms an azeotrope "constant boiling mixture" with DMF after the reaction is finished.
DMF forms an azeotrope with toluene or n-heptane so you can try one of them to help in lowering the evaporation temperature. Evaporation under reduced pressure will help as well if this can be done in your laboratory.