• bitcoinBitcoin(BTC)$77,283.000.54%
  • ethereumEthereum(ETH)$2,246.041.93%
  • tetherTether(USDT)$1.000.06%
  • binancecoinBNB(BNB)$708.973.04%
  • rippleXRP(XRP)$1.264.00%
  • usd-coinUSDC(USDC)$1.000.07%
  • solanaSolana(SOL)$96.363.34%
  • tronTRON(TRX)$0.325608-7.95%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-0.24%
  • zcashZcash(ZEC)$1,280.925.28%
  • HyperliquidHyperliquid(HYPE)$89.840.08%
  • dogecoinDogecoin(DOGE)$0.0762804.03%
  • moneroMonero(XMR)$597.98-2.65%
  • USDSUSDS(USDS)$1.000.28%
  • chainlinkChainlink(LINK)$11.6512.41%
  • whitebitWhiteBIT Coin(WBT)$74.261.10%
  • leo-tokenLEO Token(LEO)$9.44-0.10%
  • cardanoCardano(ADA)$0.1960015.95%
  • stellarStellar(XLM)$0.1710147.41%
  • bitcoin-cashBitcoin Cash(BCH)$295.7511.15%
  • nearNEAR Protocol(NEAR)$4.3510.46%
  • daiDai(DAI)$1.000.02%
  • Ethena USDeEthena USDe(USDE)$1.000.08%
  • uniswapUniswap(UNI)$7.2213.48%
  • RainRain(RAIN)$0.006285-4.16%
  • litecoinLitecoin(LTC)$55.884.43%
  • CantonCanton(CC)$0.0986177.72%
  • USD1USD1(USD1)$1.000.09%
  • avalanche-2Avalanche(AVAX)$8.596.00%
  • suiSui(SUI)$0.917.90%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.183.87%
  • hedera-hashgraphHedera(HBAR)$0.0729667.29%
  • tether-goldTether Gold(XAUT)$3,881.43-3.01%
  • Global DollarGlobal Dollar(USDG)$1.000.04%
  • paypal-usdPayPal USD(PYUSD)$1.000.23%
  • shiba-inuShiba Inu(SHIB)$0.0000056.36%
  • quant-networkQuant(QNT)$193.599.61%
  • BittensorBittensor(TAO)$239.465.93%
  • crypto-com-chainCronos(CRO)$0.0519113.07%
  • EthenaEthena(ENA)$0.19125013.94%
  • Ripple USDRipple USD(RLUSD)$1.000.05%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.24%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • okbOKB(OKB)$111.934.38%
  • MemeCoreMemeCore(M)$0.95-5.29%
  • pepePepe(PEPE)$0.00000511.56%
  • OndoOndo(ONDO)$0.41910614.20%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • aaveAave(AAVE)$131.0011.89%
  • Pump.funPump.fun(PUMP)$0.0041889.62%
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

This AI Paper Introduces Relax: A Compiler Abstraction for Optimizing End-to-End Dynamic Machine Learning Workloads

November 13, 2023
in AI & Technology
Reading Time: 4 mins read
A A
This AI Paper Introduces Relax: A Compiler Abstraction for Optimizing End-to-End Dynamic Machine Learning Workloads
ShareShareShareShareShare

Optimizing machine learning models with dynamic shapes can be crucial for achieving better performance and flexibility. Dynamic shapes refer to the ability of a model to handle input data with varying dimensions during runtime. Users utilize frameworks that support dynamic computation graphs, such as TensorFlow’s eager execution or PyTorch. These frameworks allow building models that can adapt to variable input sizes during runtime.

There are many challenges in optimizing machine learning models with dynamic shapes, as many traditional optimizations depend on static shape analysis. The missing information from dynamic dimensions can significantly affect the optimizations one can perform across operators and functions. Models with dynamic shapes need to handle varying batch sizes. Optimizing for different batch sizes can be more challenging than optimizing for a fixed batch size, particularly in production settings.

Current machine learning (ML) compilers usually lower programs to hardware in a traditional single-shot lowering flow, applying one optimization after the other, typically rewriting the program into a lower-level representation. This approach often results in losing shape and additional information between abstraction layers, making it harder to perform incremental optimizations across boundaries.

Researchers present Relax. It is a compiler abstraction for optimizing end-to-end dynamic machine learning workloads. It has first-class symbolic shape annotations to track dynamic shape computations globally across the program. It also has a cross-level abstraction that encapsulates computational graphs, loop-level tensor programs, and library calls in a single representation to enable cross-level optimizations. It is an end-to-end compilation framework to optimize dynamic shape models.

Researchers adopt a forward deduction method that deduces the annotation of an expression based on its input components. Forward deduction is simple and local, and one can obtain annotations for temporary variables during compiler passes. Additionally, when shapes cannot be inferred automatically, the forward deduction can use the results of a user-inserted match cast to continue inferring later annotations.

Researchers say all optimizations in Relax are performed as composable dynamic shape–aware transformations. This incrementally optimizes or partially lowers portions of the computation using different approaches. It considers analysis from other levels and incorporates further optimizations that assume dynamic shape relations.

Experimental results show that Relax compiles and optimizes emerging LLMs onto diverse hardware backends, delivering competitive performance to heavily optimized platform-specific solutions. Additionally, Relax supports LLMs on a broad set of devices and environments, including mobile phones, embedded devices, and web browsers through WebAssembly and WebGPU.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to join our 32k+ ML SubReddit, 41k+ Facebook Community, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more.

If you like our work, you will love our newsletter..

We are also on Telegram and WhatsApp.


YOU MAY ALSO LIKE

Apple Brings First Apple Intelligence Features to China in iOS 27.3 – Unite.AI

Powerlattice Raises $86M in Equity Offering, SEC Filing Shows – Unite.AI

Arshad is an intern at MarktechPost. He is currently pursuing his Int. MSc Physics from the Indian Institute of Technology Kharagpur. Understanding things to the fundamental level leads to new discoveries which lead to advancement in technology. He is passionate about understanding the nature fundamentally with the help of tools like mathematical models, ML models and AI.


🔥 Meet Retouch4me: A Family of Artificial Intelligence-Powered Plug-Ins for Photography Retouching

Credit: Source link

ShareTweetSendSharePin

Related Posts

Apple Brings First Apple Intelligence Features to China in iOS 27.3 – Unite.AI
AI & Technology

Apple Brings First Apple Intelligence Features to China in iOS 27.3 – Unite.AI

October 30, 2026
Powerlattice Raises M in Equity Offering, SEC Filing Shows – Unite.AI
AI & Technology

Powerlattice Raises $86M in Equity Offering, SEC Filing Shows – Unite.AI

October 30, 2026
Meta Settles Another Social Media Addiction Case Just Before Trial
AI & Technology

Meta Settles Another Social Media Addiction Case Just Before Trial

October 30, 2026
Bluesky Now Has A Dedicated ‘Moderation Inbox’
AI & Technology

Bluesky Now Has A Dedicated ‘Moderation Inbox’

October 30, 2026
Next Post
Netanyahu calls for ‘different authority’ to govern Gaza after war is over

Netanyahu calls for ‘different authority’ to govern Gaza after war is over

Leave a Reply Cancel reply

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

Search

No Result
View All Result
Project Suncatcher’s Orbiting TPU Delivers Its First AI-Generated Haiku – Unite.AI

Project Suncatcher’s Orbiting TPU Delivers Its First AI-Generated Haiku – Unite.AI

October 30, 2026
Packers' Christian Watson makes stunning 'TNF' return after hospital trip – USA Today

Packers' Christian Watson makes stunning 'TNF' return after hospital trip – USA Today

October 30, 2026
Mike Ditka’s 1996 reflections on the Super Bowl

Mike Ditka’s 1996 reflections on the Super Bowl

October 28, 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!