dynamic model training step with multiprocess for vector generation