Internal transition is always easier, I have several colleagues went from SWE to ML related roles this year. One thing worth noting is that most of them work on building ML infra/platform rather than direct user facing ML features, so it is not drastically different from what they did previously.