Hacker ApprovedDepartments

PyTorch

Hacker Approved

The 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%
Each figure is 2 people. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. 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”
  • 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”
  • 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”
  • 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”
  • 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”
  • 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.

PyTorch compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
PyTorchThis page1314774%12—Approved
MLX752476%12—Approved
JAX49689%12—Approved
OpenCV461674%11—Approved
tinygrad401671%9—Approved
See all 19 machine learning libraries, ranked

What 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++”

MixedComment from 27 Oct 2026 in “Python's experimental JIT to be removed”

“for the good they did releasing Torch, FastText vectors, and the LLaMa models among others for free”

RecommendsComment from 20 Oct 2026 in “Facebook Pages require paid subscription to post more than two links per month”

“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”

CriticizesComment from 30 Sep 2026 in “PSSA: A non-transformer language model written from scratch in Rust”

“most have decent support for AMD, it's not that different from CUDA once you get it working”

RecommendsComment from 29 Sep 2026 in “World Labs is Joining AMD”

“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”

CriticizesComment from 25 Aug 2026 in “Apple introduces M6 and M5 Ultra”

“Meta initiated both pytorch and llama which have had profoundly positive effects on AI research”

RecommendsComment from 10 Aug 2026 in “Mark Zuckerberg attacks 'closed' AI rivals as Meta returns to open models”

“It has, along with Python, become something of a linga franca for research in the field.”

RecommendsComment from 28 Jul 2026 in “PyTorch: A Reference Language”

“PyTorch is obviously a huge (huge undersells it) contribution that shouldn’t be forgotten.”

RecommendsComment from 21 Jul 2026 in “Meta's AI Models Are Powering the First Wave of Genesis Mission Projects”

“you have to remember to install dependencies like pytorch from an alternate repo”

CriticizesComment from 7 Jul 2026 in “AMD Ryzen AI Halo – $4k AI Dev Kit”

“Pytorch is widely accepted as the de facto ML framework in both research and industry.”

RecommendsComment from 27 Jun 2026 in “Modern GPU Programming for MLSys”

“The value of PyTorch lies more in utilizing accelerators like GPUs while offering a nice abstraction.”

RecommendsComment from 25 Jun 2026 in “The annotated PyTorch training loop”

“It captures the complexity to allow you to make a whole GPT model with it, running on your GPU, and keep the code readable.”

RecommendsComment from 25 Jun 2026 in “The annotated PyTorch training loop”

“The pytorch ecosystem and initial push to open weight models, I consider a pretty good thing for the world”

RecommendsComment from 24 Jun 2026 in “Meta Pauses Employee-Tracking Program Following Internal Data Leak”

“Meta assigned hundreds of engineers to work PyTorch. That is only going to happen at a handful of companies.”

RecommendsComment from 16 Jun 2026 in “Why is Meta destroying its engineering organization?”

“a lot of ML frameworks (Tensorflow, PyTorch, etc) by default use the GPU relatively suboptimally”

CriticizesComment from 25 May 2026 in “Bytecode VMs in surprising places (2024)”

“Throwing away libraries like ablumentations and pytorch because you move to a different ecosystem is a real loss.”

RecommendsComment from 21 Apr 2026 in “Clojure: Transducers”

“Pytorch is such a maddening mess of half implemented research features in a state of Heisen-deprecation”

CriticizesComment from 1 Apr 2026 in “Jax's true calling: Ray-Marching renderers on WebGL”

“To increase your chances of anyone actually clicking on your GH link, use good old Pytorch.”

RecommendsComment from 30 Mar 2026 in “Ask HN: Release Path for 'Transformers Alternatives'?”

“low level libraries like pytorch as well as higher level tools like Ollama all seamlessly support multiple GPUs”

RecommendsComment from 27 Mar 2026 in “Apple discontinues the Mac Pro with no plans for future hardware”

“NumPy, PyTorch, JAX have non-trivial overhead, and might even be slower than vanilla Python”

MixedComment from 15 Mar 2026 in “Python: The Optimization Ladder”

“You can just take Pytorch, JAX, CuPy or whatnot and accelerate your numpy code”

RecommendsComment from 19 Feb 2026 on Hacker News

“Facebook was the primary contributor behind Pytorch, which basically set the stage for early GPT implementations.”

RecommendsComment from 17 Feb 2026 in “Claude Sonnet 4.6 System Card”

“via torch or arrayfire or whatever, you could dispatch it to both CPU and GPU at will”

RecommendsComment from 28 Jan 2026 in “Rust's Standard Library on the GPU”

“If you are doing any serious work with torch or local LLMs, you still run into issues where wheels aren't available”

MixedComment from 27 Jan 2026 in “The C-Shaped Hole in Package Management”

“Pytorch is fairly efficient, but python as an ecosystem can have some blind spots or bottlenecks”

MixedComment from 18 Jan 2026 in “Flux 2 Klein pure C inference”

“A simple kernel in torch is hundreds to thousands of LOCs, with much worse style.”

CriticizesComment from 31 Dec 2025 in “Five Years of Tinygrad”

“magic error telling that tensorflow version they are installing is not compatible with pytorch version”

CriticizesComment from 27 Dec 2025 in “How uv got so fast”

“where you can add two tensors by hand, or have your whole network as a single nn.Module”

RecommendsComment from 22 Dec 2025 in “Rue: Higher level than Rust, lower level than Go”

“I ended up sticking with PT and am extremely grateful for all the work put into it”

RecommendsComment from 8 Nov 2025 in “Leaving Meta and PyTorch”

“It is hard to overstate how much Pytorch has accelerated ML/AI development, across the board.”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“PyTorch felt friendlier and more Pythonic, and it came with a comprehensive library of prebuilt components for deep learning in torch.nn”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“PT has a unique level of broad support that few other open source technology can reach.”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“it has made it possible for me to play with ideas that I would have only dreamed of”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“the PyTorch approach was such a huge improvement that there had been an immediate shift”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“It is a wildly successful project which has acquired ton of code over the years.”

MixedComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“PyTorch offered a more reasonable level of abstraction along with excellent API documentation and tutorials”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“eager evaluation that made it possible to debug every step in the network forward/backward passes”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“I switched to PyTorch for my next project which was more "batteries included".”

RecommendsComment 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.”

RecommendsComment from 7 Nov 2025 in “Leaving Meta and PyTorch”

“Move your performance critical kernels outside Python. Numpy, Pytorch, external databases, Golang microservice, etc.”

RecommendsComment from 6 Nov 2025 in “How often does Python allocate?”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.