Netra Kernel revolutionizes GPU performance for production inference on AMD systems by compiling model operations into specialized raw-assembly kernels. This approach ensures high throughput and predictable serving for large language models, while maintaining flexibility and safety across various workloads.
Netra Kernel offers cutting-edge ahead-of-time GPU kernels optimized for production inference on AMD hardware. This project compiles model operations into fixed-contract raw-assembly kernels and allocates them as loadable Netra Engines, providing a streamlined experience similar to TensorRT's workflow for profiles, tactics, layout planning, static memory management, and engine construction.
The initial backend supports gfx950/wave64, focusing on high-throughput FP8 inference specifically designed for large language models like Qwen3.6-35B. Extensive validation has demonstrated significant performance achievements:
| Deployment | Result |
|---|---|
| 8× MI350X, DP8, dFlash | 78,498.66 output tokens/s mean |
| Exact request/input/output/token/cache checks | 15,360 / 15,360 passed |
Generated versus locked kernel .text | 18 / 18 identical |
The architecture of the Netra platform consists of multiple components:
Model or canonical graph
│
▼
Netra Compiler
contracts · profiles · layouts · tactics · memory plan
│
▼
Specialized raw assembly + Netra Engine
fixed symbols · fixed launches · graph recipe · fallbacks
│
▼
Netra Runtime
cached HIP handles · stable bindings · caller-owned stream
The project is structured to keep the public integration surface distinct from target-specific kernels and inference-engine adapters:
netra-kernel/
├── compiler/netra_compiler/ # AOT compiler, IR, planners, frontends, backends
│ ├── backends/gfx950/ # Target-specific compiler implementation
│ └── library_data/ # Packaged kernels, manifests, and schemas
├── python/netra_kernel/ # Bundle, runtime, CLI, and adapter APIs
│ ├── runtime/ # Framework-neutral Python FFI
│ ├── sglang/ # SGLang adapter and startup plugin only
│ └── assets/ # Deployment profiles and packaged overlays
├── include/netra/engine.h # Stable framework-neutral C ABI
├── runtime/ # Native runtime implementations
├── examples/reference_engine/ # Minimal C consumer with no framework dependency
├── kernels/ # Architecture-specific kernel sources
├── manifests/ # Model, deployment, and tactic contracts
├── schemas/ # Public JSON schemas
├── docker/sglang/ # Thin-plugin and accepted-source images
├── tools/ # Build, compiler, benchmark, and CI tooling
├── tests/ # Compiler, package, and GPU validation
└── docs/ # Integration guides and acceptance evidence
gfx950, wave64For developers interested in leveraging the capabilities of AMD GPUs for inference tasks, Netra Kernel represents a powerful and efficient strategy, providing solid foundations for both performance and flexibility in deployment.
No comments yet.
Sign in to be the first to comment.