Neural Magic Blog
neuralmagic.com · Company blog · on HN since 2021
Neural Magic's team writes about sparsifying and quantizing neural networks for faster inference on CPUs, plus vLLM optimizations.
What HN saysCommenters link it for sparsification of ML models on CPUs and for DeepSeek MLA support in vLLM, and an employee has replied to benchmark questions.
18HN people shared it
9linked it in comments
19stories submitted
389story points
2 years agolast shared
2021people per year2026
Most-shared posts
- 1Homepage3 people · first shared 2021
- 2YOLOv5 on CPUs: Sparsifying to Achieve GPU-Level Performance2 people · 121 points · first shared 2021 · 53 comments on HN
- 3SparseGPT: Remove 100B Parameters for Free2 people · 4 points · first shared 2023 · 1 comments on HN
- 4Enhancing DeepSeek Models with MLA and FP8 Optimizations in VLLM2 people · 2 points · first shared 2025 · discussion on HN
- 5CHART Llama2 Sparse Fine tuned GSM8k Text Generation Performance 005 1 1536x1000.png2 people · first shared 2023
- 6What happens if we remove 50 percent of Llama?1 people · 231 points · first shared 2024 · 132 comments on HN
- 7We Ran Over Half a Million Evaluations on Quantized LLMs1 people · 12 points · first shared 2024 · 2 comments on HN
- 8Using compound sparsification for faster BERT on CPUs with better accuracy1 people · 4 points · first shared 2021 · discussion on HN
- 9Pushing the Boundaries of Mixed-Precision LLM Inference with Marlin1 people · 2 points · first shared 2024 · discussion on HN
- 10Neural Network inference on commodity CPUs using sparsity1 people · 2 points · first shared 2022 · 3 comments on HN
- 11A Software Architecture for the Future of ML1 people · 2 points · first shared 2021 · discussion on HN
- 12Sparsify Image Classification Models Faster with SparseML and Deep Lake1 people · 1 points · first shared 2023 · discussion on HN
- 13YOLOv8 Detection 10x Faster with DeepSparse1 people · 1 points · first shared 2023 · discussion on HN
- 14Accelerate Customer Review Classification with Sparse Transformers1 people · 1 points · first shared 2022 · 1 comments on HN
- 15Multimodal Model Quantization Support Through LLM Compressor by Neural Magic1 people · 1 points · first shared 2025 · discussion on HN
What HN people wrote when they linked it
refibrillator · 2025-02-24
vLLM supports MLA for Deepseek models as of 3 weeks ago. 3x higher generation throughput and 10x token memory capacity.
https://github.com/vllm-project/vllm/releases/tag/v0.7.1
MHA is still faster in low QPS regime apparently.
https://neuralmagic.com/blog/enhancing-deepseek-models-with-mla-and-fp…
Also published this month was theoretical proof showing that for the same KV Cache overhead, MLA consistently offers greater expressive power than GQA. Furthermore, widely used GQA-based pre-trained models (e.g. LLaMA, Qwen, Mixtral) can be converted into MLA-based models.
https://arxiv.org/pdf/2502.07864
pumanoir · 2023-02-27
Look into sparsification of ML models: https://neuralmagic.com/
If your cpu has avx512 it can make it even faster.
37ef_ced3 · 2021-01-25
I asked the author to compare the NN-512 dense convolver (https://NN-512.com) in his benchmark, as an alternative to Intel's closed source OpenVINO
Neural Magic (https://neuralmagic.com/) is also doing very sophisticated sparse convolution (closed source) on CPUs, and they benchmark against NN-512
Neural Magic achieves astonishing performance by exploiting sparsity
markurtz · 2021-09-11
Disclosure: I work for Neural Magic.
Hi ml_hardware, we report results for both throughput and latency in the blog. As you noted, the throughput performance for GPUs does beat out our implementations by a bit, but we did improve the throughput performance on CPUs by over 10x. Our goal is to enable better flexibility and performance for deployments through more commonly available CPU servers.
For throughput costs, this flexibility becomes essential. The user could scale down to even one core if they wanted to, with a much more significant increase in the cost performance. We walk through these comparisons in more depth in our YOLOv3 blog: https://neuralmagic.com/blog/benchmark-yolov3-on-cpus-with-deepsparse/
INT8 wasn't run on GPUs because we have issues with operator support on the conversion from PyTorch graphs to TensorRT (PyTorch currently doesn't have support for INT8 on GPU). We are actively working on this, though, so stay tuned as we run those comparisons!
The models we're shipping will see performance gains on the A100s, as well, due to their support for semi-structured sparsity. Note, though, A100s are priced more expensive than the commonly available V100s and T4s, which will need to be considered. We generally keep our current benchmarks limited to what is available in the top cloud services to represent what is deployable for most people on servers. This usability is why we don't consider ML Perf a great source for most users. ML Perf has done a great job in…
littlestymaar · 2023-11-23
They do. It's on the third graph: https://neuralmagic.com/wp-content/uploads/2023/11/CHART-Llama2-Sparse…
yunohn · 2023-11-23
I think you are missing something, or I am.
If we observe the performance comparison graph (1), 2.8->9 tok/s is achieved via quantization, but the remaining jumps from 9->16.6->24.6 tok/s are achieved from the sparse fine-tuning.
(1) https://neuralmagic.com/wp-content/uploads/2023/11/CHART-Llama2-Sparse…
NM_Ricky · 2023-05-03
For anyone interested in SparseGPT, on May 25th, the author of the SparseGPT paper will show you how you can download an optimized and open-sourced LLM and run it on CPUs at GPU speeds using DeepSparse.
Confirm your spot: https://neuralmagic.com/unlock-faster-and-more-efficient-language-mode…
mwitiderrick · 2022-11-22
Language models have a limit on the length of text they can process.
For instance, 512 for BERT and 4096 for models such as Longformer and Big Bird.
However, documents in the real world can be arbitrarily long. For instance, reviews from customers.
Classifying these reviews fast can help a business in engaging with its customers quickly. Fort instance, flagging negative reviews to reduce churn and customer complaints.
The problem?
Language models are usually very large making them slow at inference and difficult to deploy. These models are usually overprecise and over-parameterized. You can drop some of the weight connections in these networks to achieve a small model while maintaining accuracy. This is known as sparsification. Furthermore, you can reduce the precision of the floating points in the network to reduce its size further.
In my latest article, I explore how to perform text classification on long documents using sparse Hugging Face Transformers. I illustrate that it’s possible to use a 90% sparse transformer model— meaning that 90 percent of the model's weights are removed, and the rest of the parameters quantized— and still achieve accuracy similar to a dense model.
Using a sparse transformer achieves a 4.8X increase in performance over the dense baseline. It also results in a smaller model which is easy to deploy on commodity CPUs, hence no expensive accelerator hardware is required.
Try it yourself…
danielcampos93 · 2021-11-02
Neural Magic | Machine Learning Engineer, Full Stack Engineer, Product Manager, ML Ops Engineer | Somerville, MA | https://www.neuralmagic.com
Neural Magic is a software company challenging the notion that specialized hardware like GPUs is needed for Deep Learning inference. We have created novel technologies that sparsify and quantize deep learning networks and allow them to run on commodity CPUs – at GPU speeds and better. Data scientists no longer have to compromise on model design and input size or deal with scarce and costly GPU resources. Their ground-breaking discovery became the foundation of Neural Magic. Having just closed our 30M Series A (https://neuralmagic.com/blog/neural-magic-series-a/), we are expanding our team and hiring across most disciplines.
Some of our recent work has focused on compressing vision systems like YOLO and NLP systems like BERT.
https://neuralmagic.com/blog/benchmark-yolov5-on-cpus-with-deepsparse/
https://neuralmagic.com/blog/sparsify-hugging-face-bert-for-better-cpu…
* Senior Systems Software Engineer | https://apply.workable.com/neural-magic/j/85853A87F8/
* Machine Learning Engineer | https://apply.workable.com/neural-magic/j/4509AD76E3/
* Senior Machine Learning Engineer | https://apply.workable.com/neural-magic/j/3EA60B5DA4/
* Product Manager | https://apply.workable.com/neural-magic/j/1BB929F472/
* ML Ops | https://apply.workable.com/neural-magic/j/3E54400904/
* Full Stack Software Enginner |…