How to Run a 98-on-MATH-500 AI on Your Laptop for Free With TwIL-8B
Here is the honest answer first. TwIL-8B is an 8.8-billion-parameter reasoning model that scores 98.2 on MATH-500, one of the hardest maths tests in AI benchmarking, and it runs on your own laptop from a single Ollama command, in a file of just 4.98 GB. No subscription, no API key, no cloud account, no GPU required. You can download it today and ask it a contest maths problem tonight.
Now the catches, because they matter more than the headline. It is a maths and code specialist, not a general assistant. webAI says so itself on the model card, in plain words: "not a general assistant". It is weak on general knowledge, it has no tool-use tuning, and it thinks for a long time before it answers. The weights are free for learning, research and personal use, but NOT for business. The webAI Non-Commercial Licence 1.0 covers it, and the Apache 2.0 licence on the IBM Granite 4.2 base model underneath does not change that. And every benchmark score in this post is webAI's own, measured on its own harness, and unverified by anyone independent. Keep all of that in mind and this is still one of the most impressive free models you can run at home.
If you want a small model that solves hard maths and writes good code, and you are happy to wait a little while it thinks, this tutorial gets you there in about fifteen minutes. You need a laptop with at least 8 GB of free disk space and 8 GB of RAM or an 8 GB graphics card. A plain CPU works too, just slower.
What does 98.2 on MATH-500 actually mean?
MATH-500 is a set of 500 hard maths problems, drawn from competitions and advanced high-school and university maths. A model has to reason its way to the right answer, step by step, with no multiple choice to hide behind. Most small models score in the 80s or low 90s. TwIL-8B scores 98.2, which means it gets 491 of the 500 right. That is the highest MATH-500 score webAI reports against its comparison group, ahead of Qwen3.5-9B at 96.6 and Gemma 4 31B at 87.9. Gemma 4 31B is about three and a half times the size of TwIL-8B, and TwIL-8B still beats it on this test by more than ten points.
The same pattern shows up on code. On LiveCodeBench, a coding benchmark built from real contest problems, TwIL-8B scores 81.6, ahead of Qwen3.5-9B at 65.6 and Gemma 4 31B at 80.0. That score comes from the verbose variant, the longer-thinking version of the model, and webAI marks it with a dagger on the card to say so. On instruction following, the IFBench score of 74.4 is 9.9 points ahead of Qwen3.5-9B. And it does all this while using fewer words to think: about 19.5 thousand output tokens per AIME 2026 problem, against 31.2 thousand for Qwen3.5-9B, which is 38 percent fewer.
So what is the trick? TwIL-8B is post-trained from IBM's Granite 4.2 8B base model with full-parameter supervised fine-tuning on reasoning traces, followed by reinforcement learning with GRPO and DAPO, the same family of methods used to train many recent reasoning models. The training is narrow and deep: contest maths, code, STEM and instruction following. The model is not trying to know everything. It is trying to think carefully about a small set of things.
That narrowness is also the weakness. On GPQA Diamond, a hard science knowledge test, TwIL-8B scores 70.2, while Qwen3.5-9B scores 81.7 and Gemma 4 31B scores 84.3. On MMLU-Pro it scores 76.5 against 82.5 and 85.2. On HLE, a very hard general knowledge benchmark, it scores 12.6, against 19.5 for Gemma 4 31B. If you ask it for facts or dates, it will get things wrong more often than a bigger general model would. webAI is unusually honest about this on the card: the model trails on knowledge-heavy benchmarks, it has no safety or preference tuning beyond what Granite 4.2 carries, and tool use and agentic tasks were not evaluated at all.
There is one more honest warning about the numbers. All of the scores on the card were measured on the full bf16 weights, not on the small Q4_K_M file you will actually download. Quantized models score slightly lower than the full-precision numbers, so expect your 4.98 GB copy to land a little below 98.2. The gap is usually small, a point or two, but it is real, and any post that quotes the headline score for the small file without saying so is misleading you.
Step 1: Install Ollama
Ollama is the free app that runs models on your own machine. If you already have it, skip to Step 2. If not, the install takes about two minutes.
Go to ollama.com/download and download the installer for your system: Windows, macOS or Linux. Run it, and accept the defaults. On Windows, Ollama installs and starts itself. On macOS, drag it to Applications and open it once. On Linux, the install script sets it up as a service. When it is running, you will see the Ollama icon in your system tray or menu bar.
To check it works, open a terminal or command prompt and type:
ollama --version
You should see a version number. If you get "command not found", close the terminal, open a new one, and try again. The full install walkthrough, with the common Windows and Mac fixes, is in our Ollama tutorial.
Step 2: Run the one command
This is the whole download and setup in one line. In your terminal, type:
ollama run hf.co/webAI-Official/TwIL-8B:Q4_K_M
Ollama will download the 4.98 GB file from Hugging Face and open a chat with the model. On a fast connection the download takes a few minutes. On a slow one, let it run in the background; Ollama resumes cleanly if it is interrupted.
One detail matters here. The TwIL-8B repo holds TWO files called Q4_K_M, one for the balanced variant and one for the verbose variant, and the command above does not say which one to take. After the download finishes, check which one Ollama picked:
ollama show hf.co/webAI-Official/TwIL-8B:Q4_K_M
Look at the file name in the output. If it ends in -balanced.gguf, you have the balanced version, which is the default and the right place to start. If it ends in -verbose.gguf, you have the longer-thinking version. Both are fine, but start with balanced unless you know you want the slower, more thorough one. If you want to choose the file by name with certainty, use LM Studio or llama.cpp instead, as described in Step 4.
Step 3: The settings that matter, and your first test problem
TwIL-8B is a thinking model, and thinking models need room to think. The two settings people get wrong most are the context length and the output budget. The model card uses a context of 40,960 tokens and an output budget of 32,768 tokens. TwIL-8B averages about 19.5 thousand output tokens per AIME 2026 problem, and about 33 thousand per HMMT February 2026 problem. If your context is too small, the model runs out of room mid-thought and the answer stops halfway through. That is the number one problem people report with this model.
Inside the Ollama chat, before you ask anything, type:
/set parameter num_ctx 40960
Now try a real test problem, the one from webAI's own usage example on the model card:
How many positive integers n < 1000 are divisible by 3 but not by 5? Reason step by step, then give the final integer.
Watch what happens. The model opens a thinking block and works through the problem in front of you, counting the numbers divisible by 3, then subtracting the ones divisible by both 3 and 5. The correct answer is 267: there are 333 numbers under 1000 divisible by 3, and 66 of those are also divisible by 5, so 333 minus 66 is 267. If your copy gives 267, the setup works. If it gives something else, check the context setting first, then try again; a cut-off thinking trace is the usual cause of a wrong answer.
Be patient with the first answer. On a plain CPU, a hard problem can take minutes, not seconds. The model writes thousands of tokens of reasoning before it gives you the final line. That is the price of the 98.2 score, and it is also why this model is a poor choice for quick chat. Use it for problems worth waiting for.
Step 4: Balanced vs verbose, and the LM Studio and llama.cpp routes
TwIL-8B ships in two variants that share one architecture and one tokenizer. They differ only in how much they reason before answering.
Balanced is the default. It reasons less, answers faster, and costs fewer tokens per answer. It is the right choice for everyday maths homework, code help and instruction following. Verbose reasons longer and scores higher on the hardest problems: the LiveCodeBench 81.6, IFBench 74.4, MMLU-Pro 76.5 and HumanEval scores on the card were all measured on verbose, not balanced. Use verbose only when balanced gets a hard problem wrong and you do not mind waiting longer for the answer.
If you want to pick the file by name, or you want more control than Ollama gives you, there are two other free routes.
LM Studio is the friendliest. Open the TwIL-8B model page and press the LM Studio button under "Use this model", or search for webAI-Official/TwIL-8B inside LM Studio's model search. Pick TwIL-8B-Q4_K_M-balanced.gguf, or a verbose file if you want it. When you load the model, set the context length to at least 40,960, and set temperature to 1.0 and top_p to 0.95 in the model settings. LM Studio hides the long thinking block in a collapsible section, which keeps the chat readable.
llama.cpp is the lightest and fastest route, and the one the model card documents directly. For a terminal chat with the balanced file, the card's own command is:
llama-cli -hf webAI-Official/TwIL-8B --hf-file TwIL-8B-Q4_K_M-balanced.gguf -cnv -c 40960 -n 32768
The -c 40960 sets the context and -n 32768 sets the output budget, the same numbers from Step 3. Add -ngl 99 to put every layer on the GPU if your build does not do that already. The card also gives a server command for newer builds, llama serve -hf webAI-Official/TwIL-8B:Q4_K_M, which gives you an OpenAI-compatible API that tools like Open WebUI can use.
What it is good at, and what it is not
Good at it, clearly: contest maths and olympiad-style problems, step-by-step proofs, algorithm and contest coding questions, and following precise formatting instructions. It is also genuinely good at running offline on modest hardware: the Q4_K_M file is 4.98 GiB, and an 8 GB graphics card leaves room for a moderate context. On a 12 GB or 16 GB card you get room for the full 40K context the card uses.
Not good at it, according to webAI itself: general knowledge and facts, where it is weaker than larger models. Agent and tool-use work, where it has no tuned training at all and was never tested. Being a chat assistant, which the card says plainly it is not. And anything in a language other than English.
So the right way to think about TwIL-8B is as a specialist you keep on your laptop for a specific job. For maths homework, contest practice, code review and careful instruction following, it is one of the best free models at this size that exists right now. For "what happened in the news today" or "write me a poem" or "book a flight", use a general model instead. If you want a bigger local model for general work, our Bonsai 2.5 tutorial shows how to run a 27B model in about 6 GB.
The free-tier trap box
Three traps, all avoidable if you know them in advance.
First, the licence. TwIL-8B is free for learning, research and personal use under the webAI Non-Commercial Licence 1.0. It is NOT free for business. Do not use it in a product you sell, a service you run for clients, or anything that earns money, without reading the licence file in the repo first. The Granite 4.2 base model is Apache 2.0, and that does not make TwIL-8B commercial-free. Calling it "free open source" without this caveat is wrong, and this post does not do that.
Second, the benchmark gap. The 98.2 on MATH-500 was measured on the full bf16 weights, which are 16.38 GiB. The 4.98 GB Q4_K_M file you download will score slightly lower. The gap is small, but it exists, and the card says so in its own words: "expect small deviations, most likely at Q4_K_M."
Third, the speed. TwIL-8B thinks in long traces, about 19.5 thousand tokens per hard maths problem, roughly four times what GPT-5.5 needs for the same problem. On a plain CPU, a hard answer takes minutes. On an 8 GB GPU it is faster, but still not instant. If you turn thinking off with enable_thinking=False, or set the reasoning effort to low, it gets much faster and much weaker, and none of the card's scores use those settings. Do not judge the model by a low-effort run.
There is also one practical detail worth knowing. There is no hosted inference provider serving TwIL-8B yet, so local running is the only way to use it right now. That is good news for privacy, since nothing leaves your machine, and it means the model will still be there tomorrow with no API bill attached.
FAQ
Is TwIL-8B really free?
Yes, for learning, research and personal use. The weights are free to download under the webAI Non-Commercial Licence 1.0. Commercial use is not covered, so read the licence before using it in anything you sell or run for clients.
Can I run TwIL-8B on an 8 GB GPU?
Yes. The Q4_K_M file is 4.98 GiB, which leaves room for a moderate context on an 8 GB card. A 12 GB or 16 GB card gives room for the full 40,960-token context the card uses. It also runs on CPU, just slower.
Should I pick balanced or verbose?
Balanced for most use. It is faster, cheaper per answer, and the default. Verbose only for hard contest-style problems where you will wait longer for a better answer. The headline LiveCodeBench and IFBench scores were measured on verbose.
Why does it take so long to answer?
It is thinking. TwIL-8B averages about 19.5 thousand output tokens per AIME 2026 problem, and it writes that reasoning before it gives you the final answer. On a plain CPU that takes minutes. Raise the context with /set parameter num_ctx 40960 in Ollama so the answer is not cut off, and use balanced instead of verbose for easy questions.
Is TwIL-8B better than Qwen3.5-9B?
On code and MATH-500, yes, by webAI's own numbers: LiveCodeBench 81.6 against 65.6, MATH-500 98.2 against 96.6. On AIME 2026, HMMT and knowledge tests, Qwen3.5-9B is ahead. TwIL-8B also uses fewer tokens per problem. All of these are maker-reported scores, not independently verified.
Can I use TwIL-8B for commercial work?
No. The webAI Non-Commercial Licence 1.0 covers learning, research and personal use only. The Apache 2.0 licence on the Granite 4.2 base model does not change that.
Does it support tool calling?
Not in a tuned way. It has only what Granite 4.2 includes, and webAI did not test tool use, agent tasks or SWE-bench. Use a general or agent-tuned model for tool work.
What does TwIL stand for?
webAI does not explain the name on the model card.
Sources
webAI-Official/TwIL-8B model card, Hugging Face (specs, GGUF files, benchmarks, licence, settings; checked 30 Nov 2026)
Ollama, LM Studio and llama.cpp run guide, FreakyJolly (Ollama command, variant check, settings, troubleshooting; checked 30 Nov 2026)
webAI releases TwIL-8B, Daily.dev (4 Nov 2026 release, 98.2 MATH-500, 81.6 LiveCodeBench verbose, non-commercial licence)
webAI releases TwIL-8B, AII News (release summary, self-reported scores, no hosted provider)
IBM Granite 4.2 8B model card, Hugging Face (base model, Apache 2.0)
Ollama download (Windows, macOS, Linux installers)
Keep reading on RiseMe
How to Run AI on Your Own PC: Ollama Tutorial
How to Run a 27B AI on Your Laptop for Free With Bonsai 2.5
Qwen3.8-27B vs Gemma 4: Which Free AI Runs Best on Your PC?


