• bitcoinBitcoin(BTC)$83,554.00-1.49%
  • ethereumEthereum(ETH)$2,689.17-0.72%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$769.65-1.40%
  • rippleXRP(XRP)$1.52-0.81%
  • usd-coinUSDC(USDC)$1.00-0.01%
  • solanaSolana(SOL)$120.07-2.79%
  • tronTRON(TRX)$0.3349780.29%
  • zcashZcash(ZEC)$1,593.83-3.92%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.00-5.78%
  • HyperliquidHyperliquid(HYPE)$90.31-2.77%
  • dogecoinDogecoin(DOGE)$0.094571-3.92%
  • chainlinkChainlink(LINK)$14.723.57%
  • moneroMonero(XMR)$533.58-3.38%
  • whitebitWhiteBIT Coin(WBT)$83.56-1.30%
  • USDSUSDS(USDS)$1.00-0.03%
  • cardanoCardano(ADA)$0.252630-1.65%
  • RainRain(RAIN)$0.012568-0.92%
  • leo-tokenLEO Token(LEO)$9.05-0.15%
  • stellarStellar(XLM)$0.2277905.12%
  • nearNEAR Protocol(NEAR)$5.200.35%
  • bitcoin-cashBitcoin Cash(BCH)$314.65-6.90%
  • uniswapUniswap(UNI)$9.06-7.79%
  • litecoinLitecoin(LTC)$70.92-0.87%
  • hedera-hashgraphHedera(HBAR)$0.12073827.30%
  • CantonCanton(CC)$0.133170-2.34%
  • avalanche-2Avalanche(AVAX)$10.57-3.33%
  • Ethena USDeEthena USDe(USDE)$1.000.00%
  • suiSui(SUI)$1.19-5.30%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.662.94%
  • daiDai(DAI)$1.000.03%
  • USD1USD1(USD1)$1.00-0.02%
  • BitwayBitway(BTW)$1.3013.22%
  • BittensorBittensor(TAO)$308.03-7.41%
  • quant-networkQuant(QNT)$237.2647.93%
  • crypto-com-chainCronos(CRO)$0.0691001.11%
  • shiba-inuShiba Inu(SHIB)$0.000006-3.60%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • tether-goldTether Gold(XAUT)$4,158.28-2.86%
  • paypal-usdPayPal USD(PYUSD)$1.00-0.01%
  • EthenaEthena(ENA)$0.269724-1.30%
  • MemeCoreMemeCore(M)$1.17-2.93%
  • OndoOndo(ONDO)$0.53-2.26%
  • Ripple USDRipple USD(RLUSD)$1.000.01%
  • okbOKB(OKB)$118.35-2.92%
  • Pump.funPump.fun(PUMP)$0.00531317.61%
  • Circle USYCCircle USYC(USYC)$1.140.01%
  • aaveAave(AAVE)$150.57-3.03%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.02%
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

Microsoft AI Research Open-Sources ONNX Script Library for Directly Authoring ONNX Models in Python

August 11, 2023
in AI & Technology
Reading Time: 4 mins read
A A
Microsoft AI Research Open-Sources ONNX Script Library for Directly Authoring ONNX Models in Python
ShareShareShareShareShare

In the ever-evolving landscape of machine learning, ONNX (Open Neural Network Exchange) models have emerged as a pivotal technology, offering a standardized and flexible representation that spans a diverse range of hardware platforms and runtime environments. From cloud-based supercomputers to resource-constrained edge devices like smartphones and web browsers, ONNX models empower seamless execution across the spectrum.

Central to ONNX’s power is its graph format, usually represented using the Protobuf format. However, ONNX is more than just a graph representation; it consists of a concise set of primitive operators, which are universally implemented by runtimes and hardware vendors. To maintain a broad ecosystem and minimize overhead, ONNX deliberately keeps its operator count low, encouraging modularity through ONNX functions.

While machine learning models are often conceived using high-level frameworks such as PyTorch and TensorFlow, deploying them to production necessitates a transition. Models are exported to ONNX using framework-provided tools, followed by optimization for specific targets using tools like Olive.

Meet ONNX Script, a novel open-source library designed by the Microsoft team to facilitate the direct creation of ONNX models using Python. ONNX Script prioritizes clean, idiomatic Python syntax and fosters composability through ONNX-native functions. This approach simplifies model authoring and facilitates integration with existing Python tooling, enhancing readability and productivity. Importantly, ONNX Script is the cornerstone upon which the future PyTorch ONNX exporter, supporting TorchDynamo, is being built.

Before ONNX Script’s advent, crafting ONNX models demanded a deep understanding of the specification and serialization format. While a helper API improved this process, it required familiarity with ONNX’s intricacies. ONNX Script takes a different approach by embedding deeply within Python on two levels:

Build your personal brand with Taplio! 🚀 The 1st AI-powered tool to grow on LinkedIn (Sponsored)

1. Strongly Typed API for Operators: ONNX Script offers a strongly typed API for all 186 operators as of opset 19. This allows standard Python tooling, linters, and IDEs to provide valuable feedback and enforce correctness.

2. Natural Python Constructs: ONNX Script supports Python language features, including conditionals, loops, binary and unary operators, slicing, and more. In Python, expressions like ‘a + b` correspond to the ONNX operator `Add(a, b)` in ONNX Script.

ONNX Script’s integration with the PyTorch ONNX exporter responds to the evolving landscape. The advent of PyTorch 2.0 and TorchDynamo marks a transition from TorchScript, necessitating a major overhaul of the ONNX exporter. ONNX Script was conceived as the foundation for this transformation, reimagining the fundamentals of the exporter’s architecture. The development of Torchlib—a pure ONNX implementation of PyTorch operators—simplifies the exporter’s role by translating FX graph nodes into ONNX graph nodes without operator-level concerns.

Furthermore, ONNX Script enables augmenting PyTorch model code with custom ONNX functions as specialized operators, enhancing the model’s flexibility and functionality.

ONNX Script promotes easy testing and debugging by seamlessly integrating within the Python ecosystem. With built-in support for NumPy, debugging through standard Python tooling or advanced IDEs like Visual Studio Code becomes seamless.

ONNX Script’s future is promising. It streamlines ONNX model authoring and opens doors to extending the ONNX standard itself. Core operators and higher-order functions contributing to the ONNX standard can be authored in ONNX Script, expediting the standard’s evolution. In the coming months, ONNX Script will support converting ONNX into ONNX Script, enabling smoother editing of existing models and facilitating optimization passes. The goal is to propose ONNX Script’s inclusion within the ONNX GitHub organization, solidifying its place in the machine learning landscape.


Check out the Microsoft Blog and GitHub. All Credit For This Research Goes To the Researchers on This Project. Also, don’t forget to join our 28k+ ML SubReddit, 40k+ Facebook Community, Discord Channel, and Email Newsletter, where we share the latest AI research news, cool AI projects, and more.


YOU MAY ALSO LIKE

A Modular, Repairable GPS Watch Is A Good First Step

Fireworks AI Releases Ember-1: A Post-Trained Kimi K3 That Uses About 40% Fewer Tokens

Niharika is a Technical consulting intern at Marktechpost. She is a third year undergraduate, currently pursuing her B.Tech from Indian Institute of Technology(IIT), Kharagpur. She is a highly enthusiastic individual with a keen interest in Machine learning, Data science and AI and an avid reader of the latest developments in these fields.


🔥 Use SQL to predict the future (Sponsored)

Credit: Source link

ShareTweetSendSharePin

Related Posts

A Modular, Repairable GPS Watch Is A Good First Step
AI & Technology

A Modular, Repairable GPS Watch Is A Good First Step

September 28, 2026
Fireworks AI Releases Ember-1: A Post-Trained Kimi K3 That Uses About 40% Fewer Tokens
AI & Technology

Fireworks AI Releases Ember-1: A Post-Trained Kimi K3 That Uses About 40% Fewer Tokens

September 28, 2026
You Can Now Preorder The Tiny Boox Picco Ereader
AI & Technology

You Can Now Preorder The Tiny Boox Picco Ereader

September 28, 2026
20 Agentic Use Cases of TypeSafe AI’s Jev
AI & Technology

20 Agentic Use Cases of TypeSafe AI’s Jev

September 28, 2026
Next Post
Why Apple Is Sitting Out the Shift to 5G

Why Apple Is Sitting Out the Shift to 5G

Leave a Reply Cancel reply

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

Search

No Result
View All Result
2014: Dolly Parton reflects on releasing her 42nd album

2014: Dolly Parton reflects on releasing her 42nd album

September 24, 2026
Fans honor Dolly Parton at her hometown statue

Fans honor Dolly Parton at her hometown statue

September 24, 2026
Plane crash in remote region of Alaska leaves 8 dead

Plane crash in remote region of Alaska leaves 8 dead

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