Skip to content

Your hardware

github-actions[bot] edited this page Nov 28, 2026 · 38 revisions

Measuring your machine

bin/x86_64-linux/janas-bench qwen3-4b

It takes the model as janas-chat does: a name of the models Janas knows (downloaded, after asking, if it is not there yet), a .jns file, or nothing, and then the list to choose from; the model's prediction file comes with it as in the chat (--no-mtp: without). Close what you can before running it: it measures the machine you give it, and a browser with thirty tabs is part of the machine. It tries the configurations the machine offers — how many threads, which cores, with and without the GPU and the NPU — on real passes of the model, keeps the fastest, writes them into ~/.cache/janas so the next start begins from them, and leaves a report in the current directory. With the fast prompt the GPU reads a prompt's blocks in every configuration but the rows "CPU alone", so a row without "+ GPU" is not the CPU alone; the report says so under its table. The rows "CPU alone" read a prompt's blocks without the GPU, and the engine keeps them for prompts where they read faster; their replies are the row of the same threads without "+ GPU". Where there is an Intel NPU, the rows "+ NPU" and "+ GPU + NPU" give it a prompt's blocks of 64 tokens and more; it is made ready before the rows are measured (its weights copied, its graphs compiled), and the report says when the engine would not choose it by itself on that model. On the development laptop that report says, among other things (10 October 2026, ten models), that a single token and a prompt go fastest on the performance cores' 12 threads, while a draft check - a few tokens at once - goes fastest on all the usable cores: the kinds of pass want different threads, which is why each is tuned on its own.

Helping it run on more hardware

This is where help is worth most. The engine decides everything from what it measures, but it was developed on one machine, so the decisions are tuned to one shape of CPU, one disk and one GPU; the testers' reports (reports.md) are what widens that.

The easy way: one command. From a fresh clone, on Linux, with a C compiler and curl and nothing else:

git clone https://github.com/prabanta-dev/janas && cd janas
./tools/janas-try.sh

It builds Janas and runs its tests, downloads a model from Hugging Face (checking its SHA-256), converts it (checking the result against the fingerprints of MODELS.md), checks that the model's answer at temperature 0 is the very text every other machine gets, measures the speed with janas-bench, tries janas-server, and writes a report with no host name, user name or paths in it. It asks before every long step and shows the report before anything is sent. Run it with the machine to itself (close the browser, builds, other models): before measuring it checks how idle the CPU is and, if it is busy, offers to wait; the report says how idle it was, in general terms only (a load average and a percentage, never which programs ran). If you agree, it opens the issue with gh, or gives you a link to a filled test report form. Four levels: quick (Qwen3-4B, 2.5 GB to download), medium (Qwen3.6-35B-A3B, 22 GB), full (Qwen3-Next-80B-A3B with its MTP block, about 52 GB) and gemma (Gemma-4-E4B with its assistant, 5.1 GB, runs in about 3 GB of memory); it offers those your machine can hold, and deletes at the end only what it downloaded, if you say so. --help lists the options.

What to send, by hand. Run the benchmark with --share:

bin/x86_64-linux/janas-bench <model> --share

It writes its report (a janas-bench-<date>.txt in the current directory), then prints the address of a new issue with the hardware report's form filled in, and opens it in your browser if you say yes. Nothing is sent until you send the issue yourself, and every report pasted in an issue joins the ranking of reports.md. Without --share, attach the report file to an issue.

<model> is a name from the list janas-bench shows when given none (qwen3-4b), or a .jns file. The report already carries the CPU's name, the instructions it has that matter to a model (CPU has:: AVX2, AVX-VNNI, the AVX-512 kinds, AVX10, AMX; dotprod, i8mm, SVE, SME on ARM) and the kernels Janas chose among them (kernels:), the core layout, the GPU if there is one, and the speed of every configuration tried. Add:

  • the distribution and kernel (uname -a), and the RAM (free -g);
  • the disk the model sits on (NVMe? SATA? over USB?);
  • the model you used and its file size;
  • what you saw: numbers that look wrong, a reply that made no sense, a crash, a machine that went unresponsive — with what you were doing at the time.

The hardware report form asks for exactly that, in that order. There are two more forms, for something that went wrong and for a model that will not convert.

Whether a GPU can run the GPU backend, and why not: bin/x86_64-linux/vkcheck lists what the backend needs with the answer of the GPU's driver, the decision the engine would take, and three short tests on the device (zero-copy, the int8 dot product, the float operations that keep the GPU's results the CPU's to the bit). It builds alone where Janas does not build yet, macOS with MoltenVK included: cc -O2 tools/vkcheck.c -o vkcheck -ldl -lm (on macOS without -ldl -lm, with -I/opt/homebrew/include). Its output is welcome in a hardware report.

The engine checks the GPU by itself: when it opens the GPU it runs a product of every type against the CPU's and leaves out any shader the driver gets wrong (the status line says which; once per driver, kept in ~/.cache/janas/gpu_selfcheck; JANAS_GPU_SELFCHECK=0 turns it off). Before that it checks that the driver rounds fma() once, as the CPU does: Mesa's RADV splits it into a multiply and an add on the AMD GPUs before RDNA2 (Polaris, Vega, the Renoir and Cezanne APUs, RDNA1), and there the engine builds its shaders with an fma() of their own, rounded once through float64, so that their products stay the CPU's to the bit (gpu_check's device line ends with fma split by the driver, rounded once in float64; JANAS_GPU_XFMA=1 takes them on any GPU with float64, =0 never).

Whether the GPU computes what the CPU does: gpu_check, in the packages from the release of 24 October 2026, runs every kind of product the GPU takes - each weight type, the rows that end inside a group, several vector counts, the BF16 products - on the GPU Janas would use, all its rows on the GPU and then shared with the CPU as in the engine, and compares each with the CPU's bit for bit, as a card with memory of its own works where it is one. Nothing stops at the first error: the report names the shader of every wrong product, how far its results are (a few units in the last place: the driver rounds differently; many: wrong values), the first wrong row in hexadecimal, and then runs the wrong products again with the other shaders the engine could take and with every other subgroup size the device allows, so that it isolates the culprit by itself. Its last line says ok or FAILED. Under a minute on most machines. vkcheck and gpu_check also come alone, without the engine, in janas-diag-linux-x86_64.tar.gz and janas-diag-windows-x86_64.zip (a few megabytes, no model needed); their whole output is what an issue about the GPU needs.

What is most wanted, in order.

  1. CPUs without AVX-VNNI, and AMD — the arithmetic has a path for them and it is the least exercised of all. The processors with AVX-512 VNNI but not AVX-VNNI (AMD's Zen 4, Intel's from Ice Lake and Tiger Lake to before Alder Lake and Sapphire Rapids) have a path of their own, the same instructions in AVX-512's form on 256 bits: the same results to the bit under Intel's emulator (SDE), its speed not yet measured on one of them; JANAS_KERNELS=avx2 leaves it out, to compare. Where AVX-512 VNNI is (Zen 4 and Zen 5, Intel from Ice Lake and Sapphire Rapids) the prompt's tiles run on 512 bits, sixteen rows a register, with the same bits; JANAS_KERNELS=256 keeps them on 256, to compare.
  2. Discrete GPUs (NVIDIA, AMD, Intel Arc). The GPU support is correct where it was checked - bit for bit on a reply's tokens, and on a prompt as close to the references as the CPU - and it pays where it was measured: on the development laptop's integrated GPU, with the fast prompt, Qwen3-4B reads a prompt 2.6 times faster than without the GPU (85 to 220 tokens/s; before the fast prompt, 83 to 107), and on an RTX 5080 (issue #15) Qwen3-4B read 13% faster and, with the GPU on single tokens too, replied 11-16% faster. From the release of 10 October to that of 13 October a discrete card's results stayed in its own memory, where the CPU never read them (issue #17, corrupted output on a Quadro RTX 5000); fixed since, and checked here on the path such a card takes, not yet on one. On the develop branch after 24 October 2026 a card with memory of its own runs every pass of the model whole - a prompt's blocks, draft checks, single tokens - with the model's state and working buffers in its memory, instead of sharing each product's rows with the CPU (JANAS_GPU_WHOLE=0: as before); a mixture keeps in the card's memory a tier of the experts it uses most, as many as fit, and the CPU computes the others between two layers (JANAS_GPU_TIER=0: not; JANAS_GPU_TIER_MB=<n> for n MiB). With every pass on the card, the experts of the next layer that neither the card nor the cache holds are read ahead, ranked by that layer's router, as on the CPU's path (JANAS_PREFETCH holds for both; issue #63). This was checked only on the development laptop's integrated GPU acting as such a card (JANAS_GPU_COPY=1), with functional runs - Qwen3.5-2B, Qwen3-4B, Qwen3.5-9B, Qwen3-30B-A3B with tiers from 300 MB to every expert, Qwen3.6-35B-A3B with a tier of 1 GB - and speeds measured only there, which say nothing of a discrete card's: Qwen3-30B-A3B one token at a time 13.3 tokens/s with every expert in the tier (the plan on the GPU, a pass in one submission), 8.5 with 300 MB (the CPU alone: 29.8). An expert the CPU computes gives the same bits as one the card computes (Q3_K, Q4_K, Q5_K, Q6_K, Q6_K_P and MXFP4 experts), so the tier's size does not change the answer and drafts give the same tokens as without them; with MXFP4, Q2_0 or IQ experts the card's results still round differently from the CPU's. Every other card is unknown; the fast prompt has run on a discrete one, an RTX 5060 Ti (issue #50), and JANAS_GPU_FAST_PROMPT=0 turns it off if it misbehaves.
  3. Other NPUs. Only the first Core Ultra's NPU (Meteor Lake) has been tried; Lunar Lake's and Arrow Lake's should take the same graphs and have not been seen doing it. AMD's and Qualcomm's NPUs are not supported yet.
  4. Machines with 16 GB or less. The engine is supposed to trade quality for memory on its own — fewer bits per weight, light experts not in memory left out — and the thresholds for that were measured on 32 GB.
  5. Slower disks. Everything assumes an NVMe SSD; on a SATA disk the engine should still work and simply wait more, but nobody has watched it do so.
  6. Windows on other machines. The Windows build has run on one laptop, the development one (Windows 11, build 26300), where its tests pass and it is as fast as on Linux; janas-bench's report from any other is welcome.
  7. Other models of the supported families. A file that will not convert, or converts and then answers nonsense, is a useful bug.

What testers found so far (every report, with its numbers: reports.md). On a Radeon 780M (Ryzen 7 255, issue #16) the GPU read Qwen3-4B's prompt 5.2 times faster than the CPU alone (477 against 92 tokens/s, the second with JANAS_GPU_FAST_PROMPT=0), and subgroups of 32 (JANAS_GPU_SG=32) instead of the 64 the engine chose cost 14% (405 against 470 tokens/s): the default is right there. Its "+ GPU" rows wrote a reply at 10.5 tokens/s against 17.3 on the CPU alone: the GPU was kept awake for the single tokens of a reply, which an integrated GPU does not take, and awake it only took the power the cores need. Since 14 October 2026 it is kept awake only for the passes it takes; on the development laptop's Arc the "+ GPU" rows wrote 2-5% slower than the CPU alone before, and as fast after (Qwen3-4B, two alternated runs each). On a Quadro RTX 5000 (issue #17) the defect above.

What not to bother with yet: macOS (not supported), and models outside the Qwen3, Qwen3.5, Qwen3.6, Qwen3-Next, Gemma 4, Llama 3, Nemotron 3.5 Bolt and DeepSeek-V4-Flash families (they are refused with a message).

Patches are welcome too, but a measurement from a machine nobody here can buy is worth more than most patches.

Clone this wiki locally