@made @firefoxwebdevs There's already lots of work for on-device ML: https://searchfox.org/firefox-main/search?q=toolkit%2Fcomponents%2Fml
Integrating models into a finalized product with the wide spectrum of end-user devices is tricky though, so it has to be done with care.