warpfront/hipfire

RDNA-native LLM inference engine in Rust.

What it solves

hipfire is a high-performance, AMD-native LLM inference engine designed to maximize the potential of AMD GPUs (RDNA and CDNA architectures). It eliminates the overhead associated with Python, PyTorch, and CUDA translation layers by providing its own Rust-based runtime, HIP kernels, and quantization formats, offering an "Ollama-style" user experience for AMD hardware users.

How it works

The project uses a custom Rust runtime and dynamically loads ROCm to execute models. Key technical components include:

  • Redline: A dispatch and retained-replay substrate that records kernel graphs and derives resource dependencies to remove launch overhead after a graph is proven safe.
  • Saddle: A substrate layer being developed to provide first-class compute backends for RDNA, CDNA, and potentially XDNA.
  • Custom Quantization: Supports various MQ formats (e.g., MQ4, MQ4R) and HF4 to optimize throughput and quality.
  • Architecture Tuning: Implements architecture-specific kernels (such as WMMA paths for RDNA3/4) with portable fallbacks for older GPUs (Vega/CDNA).

Who it’s for

Users with AMD GPUs (ranging from consumer RDNA1-4 to professional CDNA/MI300X) who want fast, local LLM and image generation inference without the complexity of a Python-heavy stack.

Highlights

  • AMD-Native: Built with Rust + HIP, removing Python from the hot path for maximum efficiency.
  • Broad GPU Support: Optimized for RDNA3/4, with support for RDNA1/2 and Vega/CDNA architectures.
  • OpenAI-Compatible API: The daemon exposes an API on port 11435 for easy integration with existing clients.
  • Curated Model Registry: Includes over 80 curated model entries, including Qwen, DeepSeek, and FLUX for image generation.
  • C-style CLI: Simple commands for pulling, serving, and chatting with models (e.g., hipfire pull, hipfire chat).

Related

  • Project
  • Project
  • Project
  • Project
  • Project