Hello!,
I had the same concern as you some time ago, I had used windows and linux previously (I mean 2021 where was the MBP M1).
To tell the truth a MBP14 M4 is an excellent machine and the implementation of environments with conda or pip for Python as well as Pytorch and Tensorflow works really good for installing and doing initial code locally. There are tutorials and it is even possible to install tensorflow 2.17, keras 3.8 and python 3.12 without major problems, even so you should use an additional library tensorflow-metal 1.1 or more recent versions to perform GPU usage on your MacBook.
If you require more compute capacity for ML/AI/NLP/LLM's a MBP14 M4 will run out of capacity, due to the amount of GPU's.
I hope to help with your inquiry
Topic:
Machine Learning & AI
SubTopic:
General