  We introduce generalized global Weyl modules and relate their graded characters to nonsymmetric Macdonald polynomials and nonsymmetric $q$-Whittaker functions. In particular, we show that the series part of the nonsymmetric $q$-Whittaker function is a generating function for the graded characters of generalized global Weyl modules. 
Generalized Weyl modules and nonsymmetric $q$-Whittaker functions