Text this: A Data-driven M Dwarf Model and Detailed Abundances for ​​​​​​∼17,000 M Dwarfs in SDSS-V