debugged extrapolation and smoothing for t5 model