IBM interview question

What is the difference between a decoder only model and an encoder only model.