Course Code: canntiktvm
Duration: 14 hours
Prerequisites:
  • 深入了解AI模型的内部结构及算子级计算
  • 具备Python和Linux开发环境的经验
  • 熟悉神经网络编译器或图级优化器

目标受众

  • 从事AI工具链开发的编译器工程师
  • 专注于底层AI优化的系统开发人员
  • 开发自定义算子或针对新型AI工作负载的开发者
Overview:

CANN TIK (Tensor Instruction Kernel) 和 Apache TVM 能够为 Huawei Ascend 硬件实现 AI 模型算子的高级优化和定制。

这门由讲师指导的培训(线上或线下)面向希望使用 CANN 的 TIK 编程模型和 TVM 编译器集成来构建、部署和调优 AI 模型自定义算子的高级系统开发者。

培训结束后,参与者将能够:

  • 使用 TIK DSL 为 Ascend 处理器编写和测试自定义 AI 算子。
  • 将自定义算子集成到 CANN 运行时和执行图中。
  • 使用 TVM 进行算子调度、自动调优和基准测试。
  • 调试和优化自定义计算模式的指令级性能。

课程形式

  • 互动讲座和演示。
  • 使用 TIK 和 TVM 管道进行算子编码实践。
  • 在 Ascend 硬件或模拟器上进行测试和调优。

课程定制选项

  • 如需为此课程定制培训,请联系我们安排。
Course Outline:

自定義運算元開發簡介

  • 為何要建立自定義運算元?使用案例與限制
  • CANN 運行時結構與運算元整合點
  • 華為 AI 生態中的 TBE、TIK 和 TVM 概述

使用 TIK 進行低階運算元 Programming

  • 理解 TIK 編程模型與支援的 API
  • TIK 中的記憶體管理與分塊策略
  • 使用 CANN 創建、編譯與註冊自定義運算元

測試與驗證自定義運算元

  • 圖中運算元的單元測試與整合測試
  • 調試核心級性能問題
  • 可視化運算元執行與緩衝區行為

基於 TVM 的排程與優化

  • TVM 作為張量運算元編譯器的概述
  • 在 TVM 中為自定義運算元編寫排程
  • TVM 調優、基準測試與 Ascend 的代碼生成

與框架和模型的整合

  • 為 MindSpore 和 ONNX 註冊自定義運算元
  • 驗證模型完整性與回退行為
  • 支援混合精度的多運算元圖

案例研究與專項優化

  • 案例研究:針對小輸入形狀的高效卷積
  • 案例研究:記憶體感知的注意力運算元優化
  • 跨設備自定義運算元部署的最佳實踐

總結與下一步

Sites Published:

United Arab Emirates - Building Custom AI Operators with CANN TIK and TVM

Qatar - Building Custom AI Operators with CANN TIK and TVM

Egypt - Building Custom AI Operators with CANN TIK and TVM

Saudi Arabia - Building Custom AI Operators with CANN TIK and TVM

South Africa - Building Custom AI Operators with CANN TIK and TVM

Brasil - Building Custom AI Operators with CANN TIK and TVM

Canada - Building Custom AI Operators with CANN TIK and TVM

中国 - Building Custom AI Operators with CANN TIK and TVM

香港 - Building Custom AI Operators with CANN TIK and TVM

澳門 - Building Custom AI Operators with CANN TIK and TVM

台灣 - Building Custom AI Operators with CANN TIK and TVM

USA - Building Custom AI Operators with CANN TIK and TVM

Österreich - Building Custom AI Operators with CANN TIK and TVM

Schweiz - Building Custom AI Operators with CANN TIK and TVM

Deutschland - Building Custom AI Operators with CANN TIK and TVM

Czech Republic - Building Custom AI Operators with CANN TIK and TVM

Denmark - Building Custom AI Operators with CANN TIK and TVM

Estonia - Building Custom AI Operators with CANN TIK and TVM

Finland - Building Custom AI Operators with CANN TIK and TVM

Greece - Building Custom AI Operators with CANN TIK and TVM

Magyarország - Building Custom AI Operators with CANN TIK and TVM

Ireland - Building Custom AI Operators with CANN TIK and TVM

Luxembourg - Building Custom AI Operators with CANN TIK and TVM

Latvia - Building Custom AI Operators with CANN TIK and TVM

España - Building Custom AI Operators with CANN TIK and TVM

Italia - Building Custom AI Operators with CANN TIK and TVM

Lithuania - Building Custom AI Operators with CANN TIK and TVM

Nederland - Building Custom AI Operators with CANN TIK and TVM

Norway - Building Custom AI Operators with CANN TIK and TVM

Portugal - Building Custom AI Operators with CANN TIK and TVM

România - Building Custom AI Operators with CANN TIK and TVM

Sverige - Building Custom AI Operators with CANN TIK and TVM

Türkiye - Building Custom AI Operators with CANN TIK and TVM

Malta - Building Custom AI Operators with CANN TIK and TVM

Belgique - Building Custom AI Operators with CANN TIK and TVM

France - Building Custom AI Operators with CANN TIK and TVM

日本 - Building Custom AI Operators with CANN TIK and TVM

Australia - Building Custom AI Operators with CANN TIK and TVM

Malaysia - Building Custom AI Operators with CANN TIK and TVM

New Zealand - Building Custom AI Operators with CANN TIK and TVM

Philippines - Building Custom AI Operators with CANN TIK and TVM

Singapore - Building Custom AI Operators with CANN TIK and TVM

Thailand - Building Custom AI Operators with CANN TIK and TVM

Vietnam - Building Custom AI Operators with CANN TIK and TVM

India - Building Custom AI Operators with CANN TIK and TVM

Argentina - Building Custom AI Operators with CANN TIK and TVM

Chile - Building Custom AI Operators with CANN TIK and TVM

Costa Rica - Building Custom AI Operators with CANN TIK and TVM

Ecuador - Building Custom AI Operators with CANN TIK and TVM

Guatemala - Building Custom AI Operators with CANN TIK and TVM

Colombia - Building Custom AI Operators with CANN TIK and TVM

México - Building Custom AI Operators with CANN TIK and TVM

Panama - Building Custom AI Operators with CANN TIK and TVM

Peru - Building Custom AI Operators with CANN TIK and TVM

Uruguay - Building Custom AI Operators with CANN TIK and TVM

Venezuela - Building Custom AI Operators with CANN TIK and TVM

Polska - Building Custom AI Operators with CANN TIK and TVM

United Kingdom - Building Custom AI Operators with CANN TIK and TVM

South Korea - Building Custom AI Operators with CANN TIK and TVM

Pakistan - Building Custom AI Operators with CANN TIK and TVM

Sri Lanka - Building Custom AI Operators with CANN TIK and TVM

Bulgaria - Building Custom AI Operators with CANN TIK and TVM

Bolivia - Building Custom AI Operators with CANN TIK and TVM

Indonesia - Building Custom AI Operators with CANN TIK and TVM

Kazakhstan - Building Custom AI Operators with CANN TIK and TVM

Moldova - Building Custom AI Operators with CANN TIK and TVM

Morocco - Building Custom AI Operators with CANN TIK and TVM

Tunisia - Building Custom AI Operators with CANN TIK and TVM

Kuwait - Building Custom AI Operators with CANN TIK and TVM

Oman - Building Custom AI Operators with CANN TIK and TVM

Slovakia - Building Custom AI Operators with CANN TIK and TVM

Kenya - Building Custom AI Operators with CANN TIK and TVM

Nigeria - Building Custom AI Operators with CANN TIK and TVM

Botswana - Building Custom AI Operators with CANN TIK and TVM

Slovenia - Building Custom AI Operators with CANN TIK and TVM

Croatia - Building Custom AI Operators with CANN TIK and TVM

Serbia - Building Custom AI Operators with CANN TIK and TVM

Bhutan - Building Custom AI Operators with CANN TIK and TVM

Nepal - Building Custom AI Operators with CANN TIK and TVM

Uzbekistan - Building Custom AI Operators with CANN TIK and TVM