use PipelineSpec and PipeModBase in AddReduce