<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/pytorch/best-of/2024" -->

---
title: Best PyTorch posts of 2024 | daily.dev
description: The most upvoted PyTorch posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/pytorch/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/pytorch/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best PyTorch posts of 2024 | daily.dev
og:description: The most upvoted PyTorch posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of PyTorch — 2024

1. 1  
[](/posts/deploying-llms-with-torchserve-vllm-bdcvzonlx "Deploying LLMs with TorchServe + vLLM")  
[![pytorch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5fdab3d75a834a97a52d433d9c7e5ff9)](/sources/[source]/best-of/[year])  
11m read time • Oct 31, 2024  
### Deploying LLMs with TorchServe + vLLM  
The vLLM engine is optimized for executing large language models and can be easily deployed using the vllm serve command. For production environments, it's beneficial to pair vLLM with TorchServe, which offers essential features like custom metrics and model versioning. The post outlines steps to deploy the Llama-3.1-70B model using a custom Docker image, showcasing configurations for efficient GPU utilization and asynchronous request handling. Key functionalities of vLLM, such as PagedAttention and continuous batching, are highlighted along with the integration process with TorchServe.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1e9fe983d3406b3c9ac1a13d24004a42?_a=AQAEuj9)  
13
2. 2  
[](/posts/cuda-free-inference-for-llms-hoew9r5im "CUDA-Free Inference for LLMs")  
[![pytorch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5fdab3d75a834a97a52d433d9c7e5ff9)](/sources/[source]/best-of/[year])  
9m read time • Sep 04, 2024  
### CUDA-Free Inference for LLMs  
The post discusses achieving FP16 inference with popular LLM models like Meta’s Llama3-8B and IBM’s Granite-8B Code using 100% Triton Language, comparing its performance to CUDA-dominant workflows on Nvidia GPUs. Using Triton offers cross-GPU compatibility, higher abstraction, and faster kernel development. The post covers Triton-based kernel implementations, benchmarks showing up to 82% of CUDA performance, and future optimizations for better GPU utilization.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1e9fe983d3406b3c9ac1a13d24004a42?_a=AQAEuiZ)  
13  
1
3. 3  
[](/posts/quantization-aware-training-for-large-language-models-with-pytorch-lfj0dbwox "Quantization-Aware Training for Large Language Models with PyTorch")  
[![pytorch's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/5fdab3d75a834a97a52d433d9c7e5ff9)](/sources/[source]/best-of/[year])  
14m read time • Jul 30, 2024  
### Quantization-Aware Training for Large Language Models with PyTorch  
The post describes an end-to-end Quantization-Aware Training (QAT) process in PyTorch for large language models. It highlights how QAT can significantly improve accuracy and reduce perplexity degradation compared to post-training quantization (PTQ). Users can leverage QAT APIs in torchao for fine-tuning models in torchtune. Experimental results demonstrate substantial improvements in model performance when QAT is applied, particularly for the Llama3 model. The post also discusses future directions such as mixed-precision quantization, hyperparameter tuning, and extending QAT to other layers and more complex data types.

+5  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/1e9fe983d3406b3c9ac1a13d24004a42?_a=AQAEuiZ)  
13

[See all PyTorch archives](/sources/pytorch/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/pytorch/best-of/2024#page","url":"https://daily.dev/sources/pytorch/best-of/2024","name":"Best PyTorch Posts of 2024","description":"The most upvoted PyTorch posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/pytorch/best-of/2024#items","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/deploying-llms-with-torchserve-vllm-bdcvzonlx","name":"Deploying LLMs with TorchServe + vLLM"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/cuda-free-inference-for-llms-hoew9r5im","name":"CUDA-Free Inference for LLMs"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/quantization-aware-training-for-large-language-models-with-pytorch-lfj0dbwox","name":"Quantization-Aware Training for Large Language Models with PyTorch"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"PyTorch","item":"https://daily.dev/sources/pytorch"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/pytorch/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

