Skip to content
Proyek

Tentang

Hexagon-MLIR is a compiler toolchain for compiling and executing AI kernels and models on Qualcomm Hexagon Neural Processing Units (NPUs).

Bahasa pemrograman dan runtime

Cara angka ini diukur

293 bintang64 Fork +1 dalam 24 jam

Yang dapat Anda lakukan

  • Triton Kernel Compilation & Execution: Compile Triton kernels and execute on Hexagon NPU targets
  • PyTorch Model Compilation & Execution: Compile PyTorch models and execute on Hexagon NPU targets
  • StableHLO Model Compilation & Execution (experimental): Lower PyTorch models through StableHLO to Linalg and execute them on Hexagon NPU targets, see Torch to StableHLO to Hexagon-MLIR Workflow
  • Multi-threading: Hexagon-optimized parallel execution of operations for improved performance

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+3
dalam 15 hari
+5
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

Hexagon-MLIR

Hexagon‑MLIR is an open‑source AI compiler stack that lets you easily compile and run Triton kernels and PyTorch models on Qualcomm Hexagon Neural Processing Units (NPUs).

This initiative complements our commercial toolchains by exploring an open‑source MLIR‑based compilation stack, giving developers a path to advance AI compilation capabilities through a more flexible and transparent approach.

Table of Contents

Features

  • Triton Kernel Compilation & Execution: Compile Triton kernels and execute on Hexagon NPU targets
  • PyTorch Model Compilation & Execution: Compile PyTorch models and execute on Hexagon NPU targets
  • StableHLO Model Compilation & Execution (experimental): Lower PyTorch models through StableHLO to Linalg and execute them on Hexagon NPU targets, see Torch to StableHLO to Hexagon-MLIR Workflow
  • Performance Optimization: Leverage Hexagon-specific features for maximum performance, including:
    • Multi-threading: Hexagon-optimized parallel execution of operations for improved performance
    • Vector Processing: Optimized code generation targeting Hexagon Vector eXtensions (HVX) units
    • TCM Utilization: Leverage Tightly Coupled Memory (TCM) for reduced memory latency
    • DMA Optimization: Efficient DMA transfers between DDR and TCM memory spaces
    • Matrix Processing (experimental): Leverage Qualcomm's Hexagon Kernel Library for matrix multiplication
  • IR Inspection: Inspect and analyze IR lowering passes, helping you understand how your code is optimized

Documentation

  • 📖 User Guide - For instructions on how to download, setup our compiler and start running Triton kernels or PyTorch models on Hexagon NPUs
  • 🎓 Tutorials - A set of tutorials on Triton kernels and PyTorch models
  • ❓ FAQ - Frequently asked questions
  • 🏗️ Developer Guide - Insights on how to develop, debug and profile using our compiler toolchain for Triton kernels and PyTorch models

License

Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.


Built with ❤️ by the Hexagon-MLIR Team

Jelajahi proyek terkait

Memuat…