PyTorch
Hacker ApprovedThe most recommended of 19 machine learning libraries
The de facto deep learning framework, praised for its Pythonic, debuggable design, easy GPU acceleration and huge ecosystem; critics cite installation headaches with GPU/CPU wheels and Python overhead.
The de facto deep learning framework, praised for its Pythonic, debuggable design, easy GPU acceleration and huge ecosystem; critics cite installation headaches with GPU/CPU wheels and Python overhead.
178 people gave an opinion
- recommend it
- 131
- criticize it
- 47
- approval share
- 74%
Recommended in 12 of 13 months
- November 2025: recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: recommended
- July 2026: recommended
- August 2026: recommended
- September 2026: recommended
- October 2026: recommended
- November 2026: not recommended (month in progress)
Why it carries the badge
- 131 people recommend itNeeds 10 or more, met.
- 2.8 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 12 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Industry and research standard
“It is hard to overstate how much Pytorch has accelerated ML/AI development, across the board.”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch” “To increase your chances of anyone actually clicking on your GH link, use good old Pytorch.”
Comment from 30 Mar 2026 in “Ask HN: Release Path for 'Transformers Alternatives'?” “It has, along with Python, become something of a linga franca for research in the field.”
Comment from 28 Jul 2026 in “PyTorch: A Reference Language” - Comment from 7 Nov 2025 in “Leaving Meta and PyTorch”
- Comment from 7 Nov 2025 in “Leaving Meta and PyTorch”
- Comment from 27 Jun 2026 in “Modern GPU Programming for MLSys”
Pythonic, readable, easy to understand
“PyTorch felt friendlier and more Pythonic, and it came with a comprehensive library of prebuilt components for deep learning in torch.nn”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch” “PyTorch is one of those tools that’s so simple and easy to take apart that you feel like you might’ve been able to make it yourself.”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch” “It captures the complexity to allow you to make a whole GPT model with it, running on your GPU, and keep the code readable.”
Comment from 25 Jun 2026 in “The annotated PyTorch training loop” - Comment from 7 Nov 2025 in “Leaving Meta and PyTorch”
- Comment from 22 Dec 2025 in “Rue: Higher level than Rust, lower level than Go”
Simple GPU acceleration
“low level libraries like pytorch as well as higher level tools like Ollama all seamlessly support multiple GPUs”
Comment from 27 Mar 2026 in “Apple discontinues the Mac Pro with no plans for future hardware” “The value of PyTorch lies more in utilizing accelerators like GPUs while offering a nice abstraction.”
Comment from 25 Jun 2026 in “The annotated PyTorch training loop” “via torch or arrayfire or whatever, you could dispatch it to both CPU and GPU at will”
Comment from 28 Jan 2026 in “Rust's Standard Library on the GPU” - Comment from 19 Feb 2026 on Hacker News
Prebuilt components, batteries included
“PyTorch felt friendlier and more Pythonic, and it came with a comprehensive library of prebuilt components for deep learning in torch.nn”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch” “I switched to PyTorch for my next project which was more "batteries included".”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch”
What people warn about
Each mark is one comment
Painful installs and missing wheels
“you have to install the same package, torch, but from different Python indexes in order to install the cpu version or gpu version, on Linux”
Comment from 30 Sep 2026 in “PSSA: A non-transformer language model written from scratch in Rust” “If you are doing any serious work with torch or local LLMs, you still run into issues where wheels aren't available”
Comment from 27 Jan 2026 in “The C-Shaped Hole in Package Management” “magic error telling that tensorflow version they are installing is not compatible with pytorch version”
Comment from 27 Dec 2025 in “How uv got so fast” - Comment from 7 Jul 2026 in “AMD Ryzen AI Halo – $4k AI Dev Kit”
Overhead and suboptimal performance
“when using PyTorch I wanted to try to speed up my NN kernel by 2x by just using half precision and haven't noticed any speedup at all”
Comment from 25 Aug 2026 in “Apple introduces M6 and M5 Ultra” “a lot of ML frameworks (Tensorflow, PyTorch, etc) by default use the GPU relatively suboptimally”
Comment from 25 May 2026 in “Bytecode VMs in surprising places (2024)” “Pytorch is fairly efficient, but python as an ecosystem can have some blind spots or bottlenecks”
Comment from 18 Jan 2026 in “Flux 2 Klein pure C inference” - Comment from 15 Mar 2026 in “Python: The Optimization Ladder”
Messy, sprawling codebase
“Pytorch is such a maddening mess of half implemented research features in a state of Heisen-deprecation”
Comment from 1 Apr 2026 in “Jax's true calling: Ray-Marching renderers on WebGL” “A simple kernel in torch is hundreds to thousands of LOCs, with much worse style.”
Comment from 31 Dec 2025 in “Five Years of Tinygrad” “It is a wildly successful project which has acquired ton of code over the years.”
Comment from 7 Nov 2025 in “Leaving Meta and PyTorch”
Other machine learning libraries people recommend
The four most recommended other machine learning libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
See all 19 machine learning libraries, rankedWhat people said
40 of the 201 comments that mention it, newest first. Each links to the original comment.
“PyTorch in C++ naturally gets little use, because most people don't want to use C++”
“for the good they did releasing Torch, FastText vectors, and the LLaMa models among others for free”
“you have to install the same package, torch, but from different Python indexes in order to install the cpu version or gpu version, on Linux”
“most have decent support for AMD, it's not that different from CUDA once you get it working”
“when using PyTorch I wanted to try to speed up my NN kernel by 2x by just using half precision and haven't noticed any speedup at all”
“Meta initiated both pytorch and llama which have had profoundly positive effects on AI research”
“It has, along with Python, become something of a linga franca for research in the field.”
“PyTorch is obviously a huge (huge undersells it) contribution that shouldn’t be forgotten.”
“you have to remember to install dependencies like pytorch from an alternate repo”
“Pytorch is widely accepted as the de facto ML framework in both research and industry.”
“The value of PyTorch lies more in utilizing accelerators like GPUs while offering a nice abstraction.”
“It captures the complexity to allow you to make a whole GPT model with it, running on your GPU, and keep the code readable.”
“The pytorch ecosystem and initial push to open weight models, I consider a pretty good thing for the world”
“Meta assigned hundreds of engineers to work PyTorch. That is only going to happen at a handful of companies.”
“a lot of ML frameworks (Tensorflow, PyTorch, etc) by default use the GPU relatively suboptimally”
“Throwing away libraries like ablumentations and pytorch because you move to a different ecosystem is a real loss.”
“Pytorch is such a maddening mess of half implemented research features in a state of Heisen-deprecation”
“To increase your chances of anyone actually clicking on your GH link, use good old Pytorch.”
“low level libraries like pytorch as well as higher level tools like Ollama all seamlessly support multiple GPUs”
“NumPy, PyTorch, JAX have non-trivial overhead, and might even be slower than vanilla Python”
“You can just take Pytorch, JAX, CuPy or whatnot and accelerate your numpy code”
“Facebook was the primary contributor behind Pytorch, which basically set the stage for early GPT implementations.”
“via torch or arrayfire or whatever, you could dispatch it to both CPU and GPU at will”
“If you are doing any serious work with torch or local LLMs, you still run into issues where wheels aren't available”
“Pytorch is fairly efficient, but python as an ecosystem can have some blind spots or bottlenecks”
“A simple kernel in torch is hundreds to thousands of LOCs, with much worse style.”
“magic error telling that tensorflow version they are installing is not compatible with pytorch version”
“where you can add two tensors by hand, or have your whole network as a single nn.Module”
“I ended up sticking with PT and am extremely grateful for all the work put into it”
“It is hard to overstate how much Pytorch has accelerated ML/AI development, across the board.”
“PyTorch felt friendlier and more Pythonic, and it came with a comprehensive library of prebuilt components for deep learning in torch.nn”
“PT has a unique level of broad support that few other open source technology can reach.”
“it has made it possible for me to play with ideas that I would have only dreamed of”
“the PyTorch approach was such a huge improvement that there had been an immediate shift”
“It is a wildly successful project which has acquired ton of code over the years.”
“PyTorch offered a more reasonable level of abstraction along with excellent API documentation and tutorials”
“eager evaluation that made it possible to debug every step in the network forward/backward passes”
“I switched to PyTorch for my next project which was more "batteries included".”
“PyTorch is one of those tools that’s so simple and easy to take apart that you feel like you might’ve been able to make it yourself.”
“Move your performance critical kernels outside Python. Numpy, Pytorch, external databases, Golang microservice, etc.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.