training of a model or a slave