We study moduli spaces of (possibly non-nodal) curves 8be60be47e360f7" title="Click to view the MathML source">(C,p1,…,pn) of arithmetic genus g with n smooth marked points, equipped with nonzero tangent vectors, such that e8ff87843c3f230d25c8f4d9f06d7" title="Click to view the MathML source">OC(p1+…+pn) is ample and 99d9190492c9633f3a25fd33" title="Click to view the MathML source">H1(OC(a1p1+…+anpn))=0 for given integer weights a=(a1,…,an) such that 9f41d565f97a7b83ab48ec6b3b" title="Click to view the MathML source">ai≥0 and 8bea1ed0e" title="Click to view the MathML source">∑ai=g. We show that each such moduli space 8b9a84122ba9669"> is an affine scheme of finite type, and the Krichever map identifies it with the quotient of an explicit locally closed subscheme of the Sato Grassmannian by the free action of the group of changes of formal parameters. We study the GIT quotients of 8b9a84122ba9669"> by the natural torus action and show that some of the corresponding stack quotients give modular compactifications of e678" title="Click to view the MathML source">Mg,n with projective coarse moduli spaces. More generally, using similar techniques, we construct moduli spaces of curves with chains of divisors supported at marked points, with prescribed number of sections, which in the case e43144cd211de7434c2f" title="Click to view the MathML source">n=1 corresponds to specifying the Weierstrass gap sequence at the marked point.