gitwtfhub

wtf is qwen-ondevice-bench?

thomasblc/qwen-ondevice-bench — explained in plain English

Analysis updated 2026-05-18

0JavaScriptAudience · researcherComplexity · 3/5LicenseSetup · moderate

TL;DR

A small benchmark comparing three Qwen AI models on hard math problems, showing that decoding randomness, not model size alone, drives most reasoning score differences.

Mindmap

mindmap
  root((Qwen ondevice bench))
    What it does
      Tests three Qwen models on math
      Runs fully on device
      Exposes evaluation method flaws
    Tech stack
      JavaScript
      Python
      QVAC SDK
    Use cases
      Reproduce a local model reasoning eval
      Learn why decoding temperature matters
      Compare dense vs MoE model tradeoffs
    Audience
      AI researchers
      Developers
      Vibe coders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Reproduce a reasoning benchmark comparing small local AI models on hard math problems.

REASON 2

Learn how decoding temperature can distort small model evaluation results.

REASON 3

Adapt the harness to test your own local GGUF models with the same method.

What's in the stack?

JavaScriptPythonQVAC SDKNode.js

How it stacks up

thomasblc/qwen-ondevice-bench00kaku/gallery-slider-block3rd-eden/ircb.io
Stars0
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-05-192016-11-16
MaintenanceDormantDormant
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audienceresearchergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires local GGUF model files and the QVAC SDK to run the benchmark yourself.

Free to use, modify, and redistribute, including for commercial purposes, as long as you keep the license notice.

Wtf does this do

This project is a small benchmark that tests three versions of the Qwen AI model on hard math reasoning problems, run entirely on one Apple laptop with nothing sent over the internet. The author's main point is not really which model wins, but a set of testing mistakes they found along the way that can quietly ruin any small local model evaluation if you are not careful. The biggest finding is that a setting called decoding temperature, which controls how random a model's answers are, matters enormously. With the usual random settings, the smaller models looked like they could barely solve anything. Switching to a fully deterministic, no randomness setting flipped many of those failing problems into solved ones. In other words, a lot of what looked like the model being incapable was actually just noise from randomness, not a true measure of ability. The benchmark also found that a medium sized 4 billion parameter model and a larger 9 billion parameter model performed almost identically on these reasoning problems, with the bigger model never clearly winning. Only a third model, a 35 billion parameter model that uses a technique where just a small portion of it activates for each word generated, was able to solve the hardest problems involving long, exact step by step calculations. Interestingly, that model activates fewer parameters per word than the 9 billion parameter model does, so its advantage seems to come from its overall training and size rather than doing more work per step. The repository includes the exact problems used, the code that calculates correct answers ahead of time using plain Python, the full text each model produced, and simple scripts to reproduce every result yourself. The author is upfront that this is a small, hand picked test meant to illustrate a point about evaluation method, not a rigorous scientific benchmark, and points readers to larger established math benchmarks for that purpose. The project is released under the MIT License.

Yoink these prompts

Prompt 1
Explain why greedy decoding changed the benchmark results in this project.
Prompt 2
Walk me through reproducing this Qwen on-device benchmark on my own machine.
Prompt 3
Summarize why the 35B MoE model outperformed the 9B dense model in this test.
Prompt 4
Help me adapt this benchmark's method to evaluate a different local model.

Frequently asked questions

wtf is qwen-ondevice-bench?

A small benchmark comparing three Qwen AI models on hard math problems, showing that decoding randomness, not model size alone, drives most reasoning score differences.

What language is qwen-ondevice-bench written in?

Mainly JavaScript. The stack also includes JavaScript, Python, QVAC SDK.

What license does qwen-ondevice-bench use?

Free to use, modify, and redistribute, including for commercial purposes, as long as you keep the license notice.

How hard is qwen-ondevice-bench to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is qwen-ondevice-bench for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.