We study moduli spaces of (possibly non-nodal) curves (C,p1,…,pn) of arithmetic genus g with n smooth marked points, equipped with nonzero tangent vectors, such that 43c3f230d25c8f4d9f06d7" title="Click to view the MathML source">OC(p1+…+pn) is ample and H1(OC(a1p1+…+anpn))=0 for given integer weights a=(a1,…,an) such that ai≥0 and ∑ai=g. We show that each such moduli space 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 by the natural torus action and show that some of the corresponding stack quotients give modular compactifications of 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 43144cd211de7434c2f" title="Click to view the MathML source">n=1 corresponds to specifying the Weierstrass gap sequence at the marked point.