training script for single trigger model