IBM Interview Question

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