• bitcoinBitcoin(BTC)$84,421.00-0.04%
  • ethereumEthereum(ETH)$2,695.880.72%
  • tetherTether(USDT)$1.00-0.02%
  • binancecoinBNB(BNB)$779.341.57%
  • rippleXRP(XRP)$1.531.76%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$117.352.45%
  • tronTRON(TRX)$0.340584-0.03%
  • zcashZcash(ZEC)$1,559.042.87%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.58%
  • HyperliquidHyperliquid(HYPE)$94.240.65%
  • dogecoinDogecoin(DOGE)$0.0961563.95%
  • moneroMonero(XMR)$549.36-0.57%
  • whitebitWhiteBIT Coin(WBT)$84.61-0.18%
  • chainlinkChainlink(LINK)$13.187.21%
  • USDSUSDS(USDS)$1.00-0.01%
  • cardanoCardano(ADA)$0.2474883.74%
  • RainRain(RAIN)$0.012076-1.82%
  • leo-tokenLEO Token(LEO)$8.91-1.07%
  • stellarStellar(XLM)$0.2126384.76%
  • bitcoin-cashBitcoin Cash(BCH)$337.24-2.66%
  • nearNEAR Protocol(NEAR)$4.707.15%
  • uniswapUniswap(UNI)$9.291.07%
  • litecoinLitecoin(LTC)$71.0916.06%
  • Ethena USDeEthena USDe(USDE)$1.00-0.01%
  • avalanche-2Avalanche(AVAX)$10.451.24%
  • daiDai(DAI)$1.000.01%
  • CantonCanton(CC)$0.1142634.94%
  • USD1USD1(USD1)$1.00-0.02%
  • suiSui(SUI)$1.025.16%
  • hedera-hashgraphHedera(HBAR)$0.0925592.55%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.431.04%
  • shiba-inuShiba Inu(SHIB)$0.0000063.91%
  • BittensorBittensor(TAO)$303.524.23%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • crypto-com-chainCronos(CRO)$0.0634613.42%
  • BitwayBitway(BTW)$1.065.79%
  • MemeCoreMemeCore(M)$1.221.21%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • tether-goldTether Gold(XAUT)$4,269.99-0.40%
  • okbOKB(OKB)$119.711.33%
  • OndoOndo(ONDO)$0.5225.07%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • aaveAave(AAVE)$147.235.76%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.15-0.10%
  • mantleMantle(MNT)$0.694.64%
  • EthenaEthena(ENA)$0.2195596.38%
  • polkadotPolkadot(DOT)$1.176.46%
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

Hex-LLM: A New LLM Serving Framework Designed for Efficiently Serving Open LLMs on Google Cloud TPUs

October 9, 2024
in AI & Technology
Reading Time: 5 mins read
A A
Hex-LLM: A New LLM Serving Framework Designed for Efficiently Serving Open LLMs on Google Cloud TPUs
ShareShareShareShareShare

In the rapidly evolving world of artificial intelligence, large language models (LLMs) have become essential tools for a variety of applications, ranging from natural language understanding to content generation. While the capabilities of these models continue to expand, efficiently serving and deploying them remains a challenge, particularly when it comes to balancing cost, throughput, and latency. Recent advancements by Google and the introduction of Hex-LLM, a specialized serving framework, offer promising solutions for efficiently deploying open LLMs from Hugging Face on Google TPUs.

Hex-LLM: A Game-Changer for Serving Open LLMs on TPUs

Hex-LLM is Vertex AI’s in-house LLM serving framework that is designed and optimized for Google’s Cloud TPU hardware, which is available as part of AI Hypercomputer. It provides a high-performance, low-cost solution for deploying open-source models from Hugging Face. Developed to address the challenges of serving large models at scale, Hex-LLM stands out due to its advanced optimization techniques, which allow it to handle significant workloads with impressive efficiency.

YOU MAY ALSO LIKE

Congressman Calls for National Data Center Strategy

New York Times Cooking Is Coming To Meta’s AI And Display Glasses

Key Features and Innovations of Hex-LLM

To efficiently serve LLMs on TPUs, Hex-LLM integrates a variety of key features and optimization techniques, which significantly enhance performance:

  1. Token-Based Continuous Batching: One of the standout features of Hex-LLM is token-based continuous batching. This method allows for efficient utilization of TPU resources by processing incoming tokens in a continuous stream. By handling requests in this manner, Hex-LLM maximizes throughput, significantly reducing the cost per token served. This approach ensures that no TPU cycles are wasted, resulting in an overall boost in efficiency.
  2. XLA-Optimized PagedAttention Kernels: Hex-LLM employs XLA (Accelerated Linear Algebra) optimized PagedAttention kernels, which are crucial for managing the attention mechanism of transformer models. These kernels are tailored to exploit the full potential of TPU hardware, minimizing the latency and computational load associated with the attention calculations. By leveraging XLA-optimized kernels, Hex-LLM achieves low-latency inference, which is essential for applications requiring real-time or near-real-time responses.
  3. Tensor Parallelism: Another critical feature of Hex-LLM is tensor parallelism, which enables the distribution of model computations across multiple TPU cores. This parallelism is particularly beneficial for serving large models like Llama 2 70B, as it allows for the workload to be split effectively, ensuring that the TPUs operate at peak efficiency without being bottlenecked by single-threaded tasks.
  4. Dynamic LoRA Adapters and Quantization: Hex-LLM supports the use of Dynamic Low-Rank Adaptation (LoRA) adapters, which offer a flexible way to fine-tune models for specific tasks without retraining the entire model. Additionally, Hex-LLM supports quantization techniques, including BNB (Billion-scale Neural Basis) and AWQ (Adaptive Weight Quantization), allowing models to run with lower precision, thereby reducing memory usage and increasing inference speed without compromising performance.

Integration with Hugging Face Hub

Hex-LLM integrates directly with the Hugging Face Hub, allowing developers to easily load and serve models from the extensive library of open LLMs available. This seamless integration simplifies the process of deploying models on Google TPUs, making it more accessible for those who may not have extensive experience with TPU infrastructure. By directly pulling models from Hugging Face, users can quickly experiment with different LLMs and deploy them in production environments without the need for extensive manual configuration.

Performance Metrics: Speed and Cost

The performance of Hex-LLM is impressive, particularly when serving large models. For instance, Hex-LLM achieves a throughput of 1510 output tokens per second for Llama 2 70B in int8 precision on a single TPU v5e-8, with an approximate cost of $9.60 per hour. This translates to a latency of 26 milliseconds per token, which is remarkable for a model of this size. These metrics demonstrate that Hex-LLM is not only capable of serving large models with high efficiency but also does so at a cost that is feasible for many applications.

Availability in Vertex AI Model Garden

Hex-LLM is available as part of the Vertex AI Model Garden, a platform that offers a wide variety of pre-trained models and tools for machine learning. By including Hex-LLM in the Model Garden, Google provides users with a straightforward way to access and deploy open LLMs on TPUs, complete with the optimizations offered by the Hex-LLM framework. This availability ensures that users can leverage the power of TPUs for LLM deployment without needing to set up the infrastructure from scratch.

Conclusion

Hex-LLM represents a significant step forward in the efficient serving of open LLMs, particularly for users looking to deploy large models on Google TPUs. With features like token-based continuous batching, XLA-optimized PagedAttention kernels, tensor parallelism, and direct integration with Hugging Face, Hex-LLM offers a powerful and cost-effective solution for LLM deployment. While its current status as a closed-source framework may limit its accessibility, the performance gains and cost reductions it provides make it an attractive option for organizations seeking to leverage the power of large language models in their applications.


Check out the Details here and LInkedIn Post. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter.. Don’t Forget to join our 50k+ ML SubReddit

[Upcoming Event- Oct 17 202] RetrieveX – The GenAI Data Retrieval Conference (Promoted)


Asif Razzaq is the CEO of Marktechpost Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.

[Upcoming Event- Oct 17 202] RetrieveX – The GenAI Data Retrieval Conference: Join over 300 GenAI executives from Bayer, Microsoft, Flagship Pioneering to learn how to build fast, accurate AI search on object storage. (Promoted)


Credit: Source link

ShareTweetSendSharePin

Related Posts

Congressman Calls for National Data Center Strategy
AI & Technology

Congressman Calls for National Data Center Strategy

September 24, 2026
New York Times Cooking Is Coming To Meta’s AI And Display Glasses
AI & Technology

New York Times Cooking Is Coming To Meta’s AI And Display Glasses

September 24, 2026
Trump-Xi Summit Puts Global AI Race in Focus
AI & Technology

Trump-Xi Summit Puts Global AI Race in Focus

September 24, 2026
Google Takes on Apple, Microsoft With AI-Powered Laptops
AI & Technology

Google Takes on Apple, Microsoft With AI-Powered Laptops

September 24, 2026
Next Post
Military ‘tap out’ tradition celebrates service members

Military 'tap out' tradition celebrates service members

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Man shot by ICE says he was put in detention with bullet lodged near spine – The Washington Post

Man shot by ICE says he was put in detention with bullet lodged near spine – The Washington Post

September 22, 2026
Ratko Mladić, ‘Butcher of Bosnia’, dies in prison

Ratko Mladić, ‘Butcher of Bosnia’, dies in prison

September 22, 2026
Times Square stabbing victim identified as Bank of America VP

Times Square stabbing victim identified as Bank of America VP

September 20, 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!