• bitcoinBitcoin(BTC)$78,694.00-0.40%
  • ethereumEthereum(ETH)$2,493.710.31%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$754.332.04%
  • rippleXRP(XRP)$1.421.97%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$103.750.09%
  • tronTRON(TRX)$0.3392371.42%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.040.00%
  • zcashZcash(ZEC)$1,181.813.64%
  • HyperliquidHyperliquid(HYPE)$85.500.51%
  • dogecoinDogecoin(DOGE)$0.090853-0.14%
  • RainRain(RAIN)$0.016218-0.37%
  • USDSUSDS(USDS)$1.000.01%
  • whitebitWhiteBIT Coin(WBT)$81.556.65%
  • chainlinkChainlink(LINK)$12.53-1.73%
  • moneroMonero(XMR)$498.44-3.67%
  • leo-tokenLEO Token(LEO)$9.210.34%
  • cardanoCardano(ADA)$0.2208820.16%
  • stellarStellar(XLM)$0.188649-2.46%
  • bitcoin-cashBitcoin Cash(BCH)$259.60-0.11%
  • daiDai(DAI)$1.000.01%
  • Ethena USDeEthena USDe(USDE)$1.000.01%
  • CantonCanton(CC)$0.1087722.49%
  • USD1USD1(USD1)$1.00-0.01%
  • uniswapUniswap(UNI)$6.78-1.08%
  • litecoinLitecoin(LTC)$54.45-1.66%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.401.12%
  • hedera-hashgraphHedera(HBAR)$0.079335-3.17%
  • avalanche-2Avalanche(AVAX)$8.03-0.53%
  • suiSui(SUI)$0.820.63%
  • Global DollarGlobal Dollar(USDG)$1.00-0.01%
  • shiba-inuShiba Inu(SHIB)$0.0000050.55%
  • nearNEAR Protocol(NEAR)$2.351.60%
  • crypto-com-chainCronos(CRO)$0.0610377.27%
  • paypal-usdPayPal USD(PYUSD)$1.000.01%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • MemeCoreMemeCore(M)$1.235.05%
  • tether-goldTether Gold(XAUT)$4,351.34-1.44%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • BittensorBittensor(TAO)$260.140.79%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • okbOKB(OKB)$114.15-2.33%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.32%
  • polkadotPolkadot(DOT)$1.2517.64%
  • mantleMantle(MNT)$0.642.40%
  • AsterAster(ASTER)$0.75-2.28%
  • aaveAave(AAVE)$129.40-2.12%
  • pax-goldPAX Gold(PAXG)$4,355.44-1.42%
  • OndoOndo(ONDO)$0.377182-1.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

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

Sierra Open-Sources Hyper-τ-Bench, a Benchmark for Agent Construction

SpaceX’s Recovered Starship 40 Will Take Months To Get Back To Texas

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

Sierra Open-Sources Hyper-τ-Bench, a Benchmark for Agent Construction
AI & Technology

Sierra Open-Sources Hyper-τ-Bench, a Benchmark for Agent Construction

September 8, 2026
SpaceX’s Recovered Starship 40 Will Take Months To Get Back To Texas
AI & Technology

SpaceX’s Recovered Starship 40 Will Take Months To Get Back To Texas

September 8, 2026
What Is Roku’s Secret Menu And How Do You Unlock It?
AI & Technology

What Is Roku’s Secret Menu And How Do You Unlock It?

September 8, 2026
NVIDIA Announces CUDA Rust with cuda-oxide (SIMT) and cutile-rs (Tile) for Compile-Time-Safe GPU Kernels
AI & Technology

NVIDIA Announces CUDA Rust with cuda-oxide (SIMT) and cutile-rs (Tile) for Compile-Time-Safe GPU Kernels

September 8, 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
Sailor rescued after being adrift at sea for weeks

Sailor rescued after being adrift at sea for weeks

September 4, 2026
What Is Considered Good Speed For Home Internet And How Can You Test It?

What Is Considered Good Speed For Home Internet And How Can You Test It?

September 8, 2026
White House says Saudi Arabia nuclear deal contingent on joining Abraham Accords

White House says Saudi Arabia nuclear deal contingent on joining Abraham Accords

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