TokForge TokForge

Getting the Most Speed Out of Your Device with AutoForge

Learn how TokForge's automatic benchmarking and tuning system finds the fastest configuration for your hardware.

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 Discord community

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

What is AutoForge?

AutoForge is TokForge's built-in speed test and tuning screen. Think of it as a performance coach for your phone. It tests the settings that matter for the model you pick (processor cores, the CPU or the GPU paths your phone and model support, memory settings) and stages the best result it found. You review it and tap Apply. No guesswork.

AutoForge has three tabs: Tune runs the optimization, Results keeps your speed tests, and Saved setups holds the configurations you can apply again later.

Why Auto-Tuning Matters

Here's the reality: different chipsets perform very differently. The same model can run best on the CPU on one phone and on the GPU on another, and the best number of processor cores changes from chip to chip. Without measuring, you're just guessing.

AutoForge tests your specific hardware and finds the sweet spot. The impact is real:

How to Run AutoForge (Step by Step)

1. Open AutoForge

  1. Open TokForge on your Android phone
  2. Tap the AutoForge tile on the Home screen, or open Settings → Speed & engine and tap the AutoForge card
  3. You'll see three tabs: Tune, Results, and Saved setups

2. Check the Tune Tab

The Tune tab shows your phone's current setup:

3. Optimize My Phone

Pick how thorough the test should be (Instant, Quick, Thorough or Most thorough), then tap "Optimize my phone". TokForge will:

Pro tip: Run AutoForge after a fresh reboot for the cleanest results. Close all background apps and let your device settle for a minute before starting.

4. Review and Apply

When the test finishes, AutoForge stages the best result and shows a Before and After comparison. Nothing changes until you tap Apply; Rollback restores your previous setup at any time. Switch to the Results tab to see your speed tests.

Understanding the Results

Speed test results use a few key metrics. Here's what they mean:

Metric What It Means Target
Generation speed (tokens per second) How quickly your phone writes the answer. Higher is better. Compare your phone with others on the leaderboard
Prefill Speed How quickly TokForge processes a long input prompt in one batch Faster prefill = snappier responses to long questions
TTFT Time to first token: delay before the first response word appears Lower is better
Memory (Peak) Maximum RAM used during inference Stay under your device's free RAM to avoid crashes

The Results tab keeps your speed tests. Each result shows the model, the chip and where it ran. Tap Run Benchmark to test the loaded model, share a result as a card, or submit it to the public phone-speed leaderboard.

Device Capabilities Explained

The What your phone can do card on the Tune tab lists the speed-up features TokForge detected. Whether each one is used depends on the model you load and how it is set to run. Understanding these helps you interpret your results:

Fast CPU Math (KleidiAI)

ARM's KleidiAI CPU routines use the i8mm instructions found on Armv9 CPU cores; older cores such as the Cortex-A78 do not have them. On phones that support it, prompt processing (prefill) on the CPU gets faster, and GGUF models in Q4_0 format are marked as KleidiAI accelerated in the catalogue.

GPU Accelerated (OpenCL & Vulkan)

On some phones, some models can take a GPU path. Which GPU path is available depends on the chip and the model: OpenCL mostly on Snapdragon phones, Vulkan mostly for GGUF models on phones with other GPUs, such as the Pixel 9 and the Xiaomi 14T Pro. AutoForge compares the paths your phone and model support against the CPU, and stages the faster one. See the backends guide for details.

CPU Optimized

Works on every phone. No GPU needed. On many phones the CPU is the fastest path for chat, which is why AutoForge measures instead of assuming.

Saved Setups

The Saved setups tab holds the configurations your tunes produced. Run a tune from the Tune tab to create one. From there you can:

On the Tune tab, AutoForge can also show the best known config for the selected model, with its own Apply button.

Pro Tips for Best Results

Next Steps

After running AutoForge, you have a config tuned to your device. Now explore:

Ready to Optimize?

Download TokForge and run AutoForge on your phone. One tuning session shows you how fast your phone can go with the model you use.