PyTorch
A Python framework for machine learning from Meta. De facto standard for researchers: most neural networks are trained and run on it.
Why Popular
- Pythonic — written like regular code;
- Flexibility — suitable for both prototypes and production;
- GPU-acceleration — works with CUDA out of the box;
- Ecosystem — Hugging Face, TorchServe, Lightning.
What It Can Do
- build and train neural networks;
- work with tensors on CPU and GPU;
- autograd — automatic calculation of gradients.
PyTorch vs TensorFlow
PyTorch won the competition against TensorFlow in research and became the primary framework for LLM. TensorFlow remains in production for some companies.