flagos-ai/FlagTree
FlagTree is a unified compiler supporting multiple AI chip backends for custom Deep Learning operations, which is forked from triton-lang/triton.
What it solves
FlagTree addresses the fragmentation of AI software stacks across different hardware accelerators. It eliminates the need to rewrite AI workloads for every specific chip, reducing the cost of porting and maintaining models while unlocking hardware-specific performance gains.
How it works
FlagTree acts as a unified compiler for multiple AI chips, building upon and extending the Triton ecosystem. It provides a single-repository, multi-backend support system where different hardware backends (such as NVIDIA, AMD, Huawei Ascend, and others) are integrated. To bridge the gap between portable code and hardware-specific tuning, it introduces Triton Language Extensions (TLE), which allow developers to move from portable usage to raw, hardware-oriented tuning through layered abstractions (Lite, Struct, and Raw).
Who it’s for
- Model users who want to compile and run their AI models across diverse AI accelerators without rewriting code.
- Chip manufacturers looking for a standardized way to integrate their hardware into the Triton ecosystem.
Highlights
- Broad Hardware Support: Supports a wide array of backends including NVIDIA, AMD, Huawei Ascend, and various other AI accelerators.
- Triton Language Extensions (TLE): Provides progressive abstraction levels for deeper performance tuning of memory access and execution patterns.
- Unified Compilation: Enables a "develop once, run anywhere" workflow for AI workloads.
- Performance Gains: Achieves speedups in real-world models (e.g., Qwen) without requiring modifications to the original Triton operator code.
Related
- Project
- Project
- Project
- Dispatch
- Project