跳到主要內容

黃金級贊助商 - Skymizer 帶來 ONNC 通用的開放神經網路編譯器

「AI 創新需要開源生態系,而 ONNX 確保了 frameworks 之間的互通性,ONNC 的目標是將所有的 DLA ASIC 快速、簡單地與 ONNX 連結起來,確保所有的 DLA ASIC 都可以在 ONNX 上執行。」

由於 AI 的應用層面越來越廣,數百種新 AI 晶片將在不久的未來大量出現,目前市場上卻沒有一個能完整支援各家 DLA 的開源編譯器。根據統計,在 2018 年會有超過 34 家 IC 與 IP 廠商提供各式各樣的 AI 晶片與 deep learning accelerator (DLA) ASICs,因此急需一個開源的編譯器來支援各種不同的 AI 晶片。

成立於 2013 年的 Skymizer 一直都專注在 compiler 和 machine learning 領域,看到這個趨勢之後,建立了基於 ONNX 的編譯器 Open Nerual Network Compiler – ONNC,將所有的 AI 晶片與 ONNX 連結起來。

ONNX 是開放類神經網路交換格式,目前常見的 AI framework 如Caffe2、PyTorch…等等各有各的支持者,格式間互通性差,因此訓練出來的深度學習模型無法套用到別的 framework 上,但有了 ONNX,開發者可在不同格式之間輕鬆轉換。而透過 ONNX 支援多平台的特性,ONNC 可以支援各種不同的 AI frameworks,如 Caffe、Caffe2 與 PyTorch,幫助 DLA ASIC 廠商在短時間內就可以支援各種 AI frameworks,提升性能並縮短開發時間。  






想要更了解 ONNC,歡迎到 https://onnc.ai 追蹤最新的動態,
目前 ONNC 已在 GitHub https://repo.onnc.ai 釋出,而所有開發的相關討論,
將會在 mailing list 進行。


ONNC features:
Easy Backend Integration
ONNC is integrated with the LLVM bitcode runtime and compiler. If a DLA already supports the LLVM compiler, it can be connected to ONNC seamlessly. This helps most CPUs, GPUs, and DSPs ported to ONNC in a very short time. On the other hand, if a DLA has unique computation features and is not compatible to LLVM, ONNC also provides a modular framework to speed up the compiler development. DLA vendors can quickly customize an ONNC backend from a so called “vanilla” backend, which already provides some necessary optimization algorithms.


Reusable Compiler Optimizations
Two of ONNC’s contributions are dividing the AI compilation into several clear phases and giving the corresponding APIs for algorithm development.
There are five phases carefully defined, each of which is focused on a particular compiler problem: IR building, partitioning, scheduling, allocation, and code emitting.
ONNC also provides a series of optimization algorithms ready for use. They are general and reusable, including tensor selection, tensor liveness analysis, linear scan local memory allocation, etc. ONNC’s pass manager is flexible and similar to LLVM’s. AI researchers and engineers who are familiar with LLVM can intuitively contribute their general or target-specific optimization algorithms to ONNC.


Status and Future Work
Project ONNC is not mature yet.
Still, we have a lot to do and need the community together to make it better. In this preview release, we carefully designed the software architecture so as to simplify the future development and
maintenance.
The items we have done include:



  • Clear compilation phases and the corresponding APIs.
  • Well-defined and extensible intermediate representation (IR) of target-specific instructions.
  • A pass manager that supports automatic scheduling according to the dependency claimed by each pass.
  • A Sophon backend that supports BITMAIN AI ASIC.
  • Shim library such as ADT, Diagnostics, JSON, etc.

Project ONNC follows the “release early, release often” principle,
so the next release should come soon by the end of August.
We plan to finish the following items.

  • An x86 backend that enables the execution of AI models on an x86 machine. That backend should support both JIT and interpreter way of execution.
  • Improvements of memory allocation based on liveness analysis.

JOIN US
To keep up with the latest development or make suggestions, please join the ONNC mailing list. Also, please head over to the official website https://onnc.ai/ and GitHub https://repo.onnc.ai for more information.








留言

這個網誌中的熱門文章

COSCUP Lightning Talks - 2026 ⚡️

COSCUP 2026 閃電秀 / Lightning talks Photo by COSCUP 2025 紀錄組 閃電秀是一個由多場超短時的議程發表構成的一個表演性質居多的活動,通常會被放在獨佔時段,所有會眾都會聚集到這個會議廳觀賞這齣表演,稱之為閃電秀 (Lightning Talks)。 今年的閃電秀將於 2026 Aug 09 週日的下午 16:15 - 17:00 在 RB105 議程軌開講。 本次閃電秀的參加規則如下: 每個講題 3 分鐘,時間一到就會立刻切掉您的畫面,並邀請觀眾拍手掌聲鼓勵。 歡迎將您想曝光的 Projects、Idea 或小議題在這裡跟大家分享! 應遵守 COSCUP 的 CoC 規則 的原則之下進行發表演說,主持人有權基於本規則的判斷將不適合的發表暫停,並向大家說明理由。 需要再時限內完成報名 敬請自備筆電(和 HDMI 轉接器)上台 需要提早一場議程 (在結束前) 到 Main Hall (RB105) 報到 沒有限制發表語言,但建議可以使用英文或中文,大部分的現場觀眾能夠識別這兩種語言 *所有時區皆為 UTC+8 Lightning Talks is an event featuring multiple short speeches or presentations, typically held within an exclusive time slot. All attendees gather in the main hall to watch the show. This year, the Lightning talks is on Aug 09th from 16:15 - 17:00 (UCT+8) at Room RB105! Each talk is limited to 3 minutes. Once the time is up, your screen will be cut off immediately, and the audience will be invited to applaud and show encouragement. You're welcome to share any projects, ideas, or small topics you...

將 Vision AI 部署到全美上千家得來速:Berry AI 的大規模落地挑戰

將 Vision AI 部署到全美上千家得來速:Berry AI 的大規模落地挑戰 在美國開車經過得來速,多數人不會注意窗口旁那台計時器。但對店家而言,那串數字幾乎等同營收:服務速度決定一條車道每小時能服務的車輛數,車流一旦回堵,顧客就會流失。 Berry AI(華捷智能)以 Vision AI 量測得來速各環節的耗時、定位流程瓶頸,再將數據轉化為店長可即時使用的判斷依據:哪個環節最慢、人力該如何調配。 這件事乍看只是個計時器。但一個能做出 demo 的模型,和一個讓上千家門市每天賴以決策的系統,中間隔著四道關卡。 挑戰一:未曾見的場景,也必須維持準確率 攝影機的架設高度、角度、車道幾何,每家門市都不同,光線與天氣也持續變化。在單一門市的高準確率,不代表在其餘的數百家門市同樣成立。逐店手動調參不可規模化,因此重點落在資料品質與評估方法。如何對未見過的場景維持穩定泛化,是我們投入最深、也仍在持續解決的問題。 挑戰二:在運算資源有限的邊緣裝置上做即時推理 在雲端能運行,與在算力與功耗受限的邊緣裝置上即時完成推論,是截然不同的工程。模型量化與壓縮、吞吐與延遲的取捨、影像串流的接取與解碼、程序記憶體的配置與壓縮,每一項優化都至關重要。 挑戰三:把上百萬筆事件,變成可靠的每日報表 破千家門市每天產生上百萬筆事件,記錄每一台車的進場、排隊、取餐、離場。要將它們即時轉化為上千份準確的報表,需處理高吞吐的事件接取、亂序與遲到事件的補正,以及可重現、跨店一致的彙整邏輯。 挑戰四:上千套 AI 系統,要每天都準確運作、穩定運行 上千台物聯網電腦與攝影機遍佈全美各地。硬體故障、網路中斷、攝影機失焦或視角偏移都會發生,要在規模下維持準確率與妥善率,可觀測性至關重要:逐店、逐裝置追蹤系統健康狀態,主動偵測並自動處置異常,是需要長期投入的系統工程。 關於我們 Berry AI 於 2019 年自上市公司飛捷科技獨立,兼具新創的敏捷,以及母公司在硬體與資金上的支持。2022 年在美國啟動試營運,2025 年簽訂炸雞連鎖 Zaxby's 的全品牌導入合約(近千家門市),2026 年 5 月再宣布與破千間門市的 Culver's 全品牌合作。目前 Berry AI 是全美 QSR 產業部署最廣的 Vision AI 系統,導入速度仍在加快,2025 年營收首度突破億元、年增近兩倍...

【攤位大地遊戲(開源巔峰挑戰賽)】Booth Reward Activity! 2026

/English Below/ 來啊,造訪攤位掃 QRCode,集點數換 2026 年限定贈品啊! 一年只有這一檔,錯過要再等一年! 在找工作嗎?想認識不同的社群嗎?想獲得 COSCUP 2026 專屬的限量贈品嗎? 利用空餘時間去各個攤位聊聊天、看一看,就可以參與大地遊戲拿獎品喲! 大地遊戲怎麼玩:​​ (歡迎順路參與 COSCUP x UbuCon Asia 預先登記,推倒售票亭啟動 ),至活動現場出示報名 QR code 即可登錄兌換紀念品點數,並下載與登入 OPass App 。 前往 TR 309、312、409-1 逛各攤位。 在攤位前打開 OPass 的「我的票卷」,秀出 OPass QRcode 讓攤位人員掃描取得點數。 到 TR 413-1 與 TR 413-2 教室外的走廊「紀念品攤位」兌換贈品,數量有限! 造訪每個攤位掃描後,可獲得數點,今年有 40 攤。 造訪每個議程教室掃描後,可獲得數點,今年有 25 間議程教室。 擔任講者,可享福利數點(請以收到的登入連結進入,每名講者限領取乙次)。 今年的紀念品除了可以現金購買,也可以用點數兌換呦! ≡≡≡≡ 集點方法 ≡≡≡≡ 上方每ㄧ個方框,都是ㄧ個攤位或者ㄧ個小任務,每當你造訪完成任務後,即可打開「我的票券」中顯示你的 QRcode 給關主獲取點數,您可以在上方看到您的戰果點數。當您心滿意足準備離開大會會場前,記得到下述地方將您的點數兌換成滿滿的回憶! ≡≡≡ 點數兌換處 ≡≡≡ 【TR 413-1 與 TR 413-2 教室外走廊:紀念品攤位】 1 點即是 1 元,您可以在大會攤位上購置各種精美紀念品,包含運動涼感毛巾與伸縮扣證件套! ≡≡≡ 點數兌換規則 ≡≡≡ 您可以於【紀念品攤位】旁的點數兌換區把點數...