TokForge TokForge

Vulkan vs OpenCL vs CPU: Which Backend and When

Understand GPU acceleration options and how TokForge auto-detects the fastest path for your device.

Run this on your own phone

TokForge is free. Android is live on Google Play; iPhone and iPad are in public beta on TestFlight. No account, and it works with the network off once a model is downloaded.

Get it on Google Play iPhone beta on TestFlight

Reading on a computer? Check which models fit your phone, or see real measured speeds on the phone-speed leaderboard.

Five Acceleration Paths

TokForge doesn't ask you to choose a backend. Instead, ForgeLab auto-detects your chipset's capabilities and selects the fastest path automatically. Here are the five acceleration paths available:

These are not backends you manually switch between. TokForge's inference engine handles the selection, and ForgeLab shows you what's running under the hood.

ForgeLab detects your device's GPU capabilities automatically

ForgeLab detects your device's GPU capabilities automatically

Two Inference Backends

It's important to distinguish acceleration paths from inference backends. TokForge uses two backends:

The backend you use determines whether the model loads via MNN (GPU optimized) or llama.cpp (CPU optimized). The acceleration path is chosen within that backend.

GPU Path Comparison

Here's how the five paths compare in real-world scenarios:

Path Best For Chipsets Speed Boost Notes
CPU Universal fallback All Baseline Always works
OpenCL Broad GPU compute Adreno, Mali, PowerVR Varies by device and model Most compatible GPU path
Vulkan Dedicated GPU Mali (Dimensity/Exynos), Adreno Varies by device and model Best for Mali, tuned NHWC4 GEMV kernels
QNN Snapdragon NPU Snapdragon 8 Gen 2+ Variable Hexagon DSP/NPU, experimental prefill
Vulkan CoopMat Cooperative matrices Mali (Dimensity 9400/9300) Ships on by default (D9400/D9300 class) Newest, requires latest drivers

Which Chipset Uses What

Device manufacturers use different SoCs (System-on-Chip). Here's how TokForge handles each major category:

Snapdragon 8 Gen 3 / 8 Elite

Latest flagship from Qualcomm. TokForge prioritizes:

Snapdragon 8 Gen 2

Still prevalent in 2024-2025 flagships. Uses:

MediaTek Dimensity 9400 / 9300

Premium MediaTek. Excellent Vulkan support:

MediaTek Dimensity 8000 Series

Mid-range MediaTek. Best performance:

Exynos 2400 / Samsung Flagship

Samsung's in-house flagship chip (Galaxy S24 series):

Budget & Mid-Range Phones

Snapdragon 6-7 series, Dimensity 6000-7000:

KleidiAI: ARM CPU Acceleration

Not all devices have strong GPU support. That's where KleidiAI comes in. It's ARM's CPU-side acceleration for mobile inference.

What Does KleidiAI Do?

KleidiAI accelerates the i8mm (integer 8-bit matrix multiply) instruction set available on ARM Cortex-A78 and newer. When available, it provides:

When to Use KleidiAI

KleidiAI is the default path when:

In the GGUF backend, just load a Q4_0 quantized model and KleidiAI activates automatically on supporting chips.

How to Check Your Acceleration Path

Curious what your device is running? ForgeLab shows it:

  1. Open TokForge appForgeLab
  2. Go to Device Capabilities tab
  3. View all detected acceleration paths in order of priority
  4. Run a test benchmark to see which was actually used
  5. Check the Benchmark Report: it shows the exact backend and path
Pro Tip: If you're unhappy with the selected path, you can manually override it in Settings → Advanced → Backend Selection. But we recommend letting TokForge auto-select first.
MNN Backend Controls: choose between Auto, CPU, OpenCL, or Vulkan

MNN Backend Controls: choose between Auto, CPU, OpenCL, or Vulkan

Real-World Performance Numbers

Theory is fine, but what do real phones actually achieve? Here's concrete data:

Example: MediaTek Dimensity 9400 with Vulkan CoopMat

Running GGUF models on the cooperative-matrix Vulkan path. For the actual numbers on hardware like yours, see the live leaderboard:

Results vary widely by chipset; on many mid-range and budget devices the CPU path wins, which is why TokForge benchmarks instead of assuming.

First message compiles GPU kernels, subsequent messages are instant

First message compiles GPU kernels, subsequent messages are instant

Prefill vs Decode Speed

GPU acceleration helps both, but especially prefill (the first token):

Does GGUF Work on Android?

Yes. GGUF is the model format for the llama.cpp engine, one of the two inference backends in TokForge, and it runs on every supported Android device on the CPU path, with the Vulkan GPU path available where the driver is solid. The MNN engine uses its own bundle format instead; both live side by side in the app, so a GGUF file downloaded from Hugging Face works without conversion.

Don't Overthink It

Here's the reality: TokForge auto-selects for you. You don't need to:

Just open the app, load a model, and inference begins on the fastest available path. If you're curious about performance tuning, run AutoForge once. It benchmarks your device and shows you the detailed results. That's it.

Most users never manually change backends. TokForge's auto-detection works well because it's been tuned across thousands of real-world devices.

Learn More

Interested in deeper optimization? Check out these related guides:

Ready to Start?

Get TokForge on your Android device and experience GPU-accelerated AI inference.