• bitcoinBitcoin(BTC)$80,123.000.26%
  • Midas Fasanara Global EuroMidas Fasanara Global Euro(MGLOEURO)$111,813.00-0.36%
  • ethereumEthereum(ETH)$2,325.610.59%
  • tetherTether(USDT)$1.00-0.05%
  • binancecoinBNB(BNB)$741.250.10%
  • rippleXRP(XRP)$1.311.63%
  • usd-coinUSDC(USDC)$1.00-0.05%
  • solanaSolana(SOL)$100.55-0.58%
  • tronTRON(TRX)$0.328048-0.81%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.042.24%
  • zcashZcash(ZEC)$1,266.583.52%
  • HyperliquidHyperliquid(HYPE)$79.122.16%
  • dogecoinDogecoin(DOGE)$0.0775850.80%
  • moneroMonero(XMR)$594.070.67%
  • USDSUSDS(USDS)$1.000.02%
  • whitebitWhiteBIT Coin(WBT)$76.960.13%
  • chainlinkChainlink(LINK)$11.34-0.71%
  • leo-tokenLEO Token(LEO)$8.990.15%
  • cardanoCardano(ADA)$0.203875-0.20%
  • nearNEAR Protocol(NEAR)$4.550.44%
  • stellarStellar(XLM)$0.168036-0.54%
  • bitcoin-cashBitcoin Cash(BCH)$283.632.37%
  • RainRain(RAIN)$0.007094-11.53%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • daiDai(DAI)$1.000.01%
  • uniswapUniswap(UNI)$7.081.86%
  • litecoinLitecoin(LTC)$56.32-0.25%
  • CantonCanton(CC)$0.098483-1.73%
  • USD1USD1(USD1)$1.000.01%
  • avalanche-2Avalanche(AVAX)$8.77-1.70%
  • suiSui(SUI)$0.920.72%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.22-0.05%
  • hedera-hashgraphHedera(HBAR)$0.076061-1.86%
  • tether-goldTether Gold(XAUT)$4,021.090.36%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • paypal-usdPayPal USD(PYUSD)$1.000.04%
  • BittensorBittensor(TAO)$249.12-0.78%
  • quant-networkQuant(QNT)$198.72-8.22%
  • shiba-inuShiba Inu(SHIB)$0.000005-0.33%
  • EthenaEthena(ENA)$0.2058500.09%
  • crypto-com-chainCronos(CRO)$0.052924-2.04%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.07%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • MemeCoreMemeCore(M)$1.046.63%
  • okbOKB(OKB)$108.700.12%
  • BitwayBitway(BTW)$1.460.06%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • aaveAave(AAVE)$131.88-2.48%
  • OndoOndo(ONDO)$0.411985-0.01%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

Meet vLLM: An Open-Source LLM Inference And Serving Library That Accelerates HuggingFace Transformers By 24x

June 25, 2023
in AI & Technology
Reading Time: 4 mins read
A A
Meet vLLM: An Open-Source LLM Inference And Serving Library That Accelerates HuggingFace Transformers By 24x
ShareShareShareShareShare

Large language models, or LLMs in short, have emerged as a groundbreaking advancement in the field of artificial intelligence (AI). These models, such as GPT-3, have completely revolutionalized natural language understanding. With the capacity of such models to interpret vast amounts of existing data and generate human-like texts, these models hold immense potential to shape the future of AI and open up new possibilities for human-machine interaction and communication. However, despite the massive success achieved by LLMs, one significant challenge often associated with such models is their computational inefficiency, leading to slow performance even on the most powerful hardware. Since these models comprise millions and billions of parameters, training such models demands extensive computational resources, memory, and processing power, which is not always accessible. Moreover, these complex architectures with slow response times can make LLMs impractical for real-time or interactive applications. As a result, addressing these challenges becomes essential in unlocking the full potential of LLMs and making their benefits more widely accessible. 

Tacking this problem statement, researchers from the University of California, Berkeley, have developed vLLM, an open-source library that is a simpler, faster, and cheaper alternative for LLM inference and serving. Large Model Systems Organization (LMSYS) is currently using the library to power their Vicuna and Chatbot Arena. By switching to vLLM as their backend, in contrast to the initial HuggingFace Transformers based backend, the research organization has managed to handle peak traffic efficiently (5 times more than before) while using limited computational resources and reducing high operational costs. Currently, vLLM supports several HuggingFace models like GPT-2, GPT BigCode, and LLaMA, to name a few. It achieves throughput levels that are 24 times higher than those of HuggingFace Transformers while maintaining the same model architecture and without necessitating any modifications.

As a part of their preliminary research, the Berkeley researchers determined that memory-related issues pose the primary constraint on the performance of LLMs. LLMs use input tokens to generate attention key and value tensors, which are then cached in GPU memory for generating subsequent tokens. These dynamic key and value tensors, known as KV cache, occupy a substantial portion of memory, and managing them becomes a cumbersome task. To address this challenge, the researchers introduced the innovative concept of PagedAttention, a novel attention algorithm that extends the conventional idea of paging in operating systems to LLM serving. PagedAttention offers a more flexible approach to managing key and value tensors by storing them in non-contiguous memory spaces, eliminating the requirement for continuous long memory blocks. These blocks can be independently retrieved using a block table during attention computation, leading to more efficient memory utilization. Adopting this clever technique reduces memory wastage to less than 4%, resulting in near-optimal memory usage. Moreover, PagedAttention can batch 5x more sequences together, thereby enhancing GPU utilization and throughput.

🔥 Unleash the power of Live Proxies: Private, undetectable residential and mobile IPs.

PagedAttention offers the additional benefit of efficient memory sharing. During parallel sampling, i.e., when multiple output sequences are created simultaneously from a single prompt, PagedAttention enables the sharing of computational resources and memory associated with that prompt. This is accomplished by utilizing a block table, where different sequences within PagedAttention can share blocks by mapping logical blocks to the same physical block. By employing this memory-sharing mechanism, PagedAttention not only minimizes memory usage but also ensures secure sharing. The experimental evaluations conducted by the researchers revealed that parallel sampling could reduce memory usage by a whopping 55%, resulting in a 2.2 times increase in throughput.

To summarize, vLLM effectively handles the management of attention key and value memory through the implementation of the PagedAttention mechanism. This results in exceptional throughput performance. Moreover, vLLM seamlessly integrates with well-known HuggingFace models and can be utilized alongside different decoding algorithms, such as parallel sampling. The library can be installed using a simple pip command and is currently available for both offline inference and online serving.


Check Out The Blog Article and Github. Don’t forget to join our 25k+ ML SubReddit, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more. If you have any questions regarding the above article or if we missed anything, feel free to email us at [email protected]

🚀 Check Out 100’s AI Tools in AI Tools Club


YOU MAY ALSO LIKE

IBM and Kaggle Partner on Continuous ScarfBench Migration Leaderboard – Unite.AI

NASA Plans To Launch Three Massive Rockets For The Artemis 3 Crewed Lunar Test Mission

Khushboo Gupta is a consulting intern at MarktechPost. She is currently pursuing her B.Tech from the Indian Institute of Technology(IIT), Goa. She is passionate about the fields of Machine Learning, Natural Language Processing and Web Development. She enjoys learning more about the technical field by participating in several challenges.


Credit: Source link

ShareTweetSendSharePin

Related Posts

IBM and Kaggle Partner on Continuous ScarfBench Migration Leaderboard – Unite.AI
AI & Technology

IBM and Kaggle Partner on Continuous ScarfBench Migration Leaderboard – Unite.AI

October 27, 2026
NASA Plans To Launch Three Massive Rockets For The Artemis 3 Crewed Lunar Test Mission
AI & Technology

NASA Plans To Launch Three Massive Rockets For The Artemis 3 Crewed Lunar Test Mission

October 27, 2026
Bitdefender Launches GravityZone Exposure Management to Map Attack Paths and Reduce Risk – Unite.AI
AI & Technology

Bitdefender Launches GravityZone Exposure Management to Map Attack Paths and Reduce Risk – Unite.AI

October 27, 2026
OpenAI Announces New Discoveries In Mathematics, Computer Science And Physics
AI & Technology

OpenAI Announces New Discoveries In Mathematics, Computer Science And Physics

October 27, 2026
Next Post
Intel’s Bob Swan Is Out, Pat Gelsinger Is In

Intel's Bob Swan Is Out, Pat Gelsinger Is In

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Macron slams foreign leaders’ France protest comments

Macron slams foreign leaders’ France protest comments

October 22, 2026
Records offer a picture of the Oregon school shooter’s tumultuous home life – NBC News

Records offer a picture of the Oregon school shooter’s tumultuous home life – NBC News

October 24, 2026
Rhode Island Sues Meta Over Its Approach To Scam Ads

Rhode Island Sues Meta Over Its Approach To Scam Ads

October 22, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!