Qwen 4 35B on a home PC: 35 of 60 facts alone, 60 of 60 with one WikiVectors search

Updated 2026-12-05 · 9 min read

Qwen 4 35B runs on a gaming PC and knows a lot: on our 60-question test it got every easy and medium question right on its own. It fell apart on rare facts (5 of 15) and knew nothing about 2026 (0 of 15). With one WikiVectors search per question, 5 Wikipedia paragraphs in the prompt, the same model got 60 of 60, and made up nothing.

What did we test?

Qwen 4 35B-A3B is a mixture-of-experts model: 35 billion weights, but only about 3 billion work on each word, so it is fast on home hardware. We ran the 4-bit file (lmstudio-community's Q4_K_M GGUF, 36 GB) in Ollama 0.40 on one Windows PC with an RTX 4070 (12 GB) and 64 GB of RAM. About 9 GB sat on the graphics card and the rest in RAM. It wrote about 55 words a second.

We asked it 60 short fact questions in four levels, 15 each:

Each question went in four ways: the model alone, the model alone with thinking on, the model with Wikipedia's own search (what LangChain's Wikipedia retriever does by default), and the model with one WikiVectors search.

What were the results?

EasyMediumHard2026All 60WrongTime
Qwen 4 alone1515503582.5 s
Alone, thinking on1515303323.3 s
+ Wikipedia's search13104154239.8 s
+ WikiVectors151515156005.2 s

Right answers per level, out of 15. "Wrong" counts answers that gave a wrong fact; the rest of the misses were "I don't know". Time is the middle (median) question: search plus answer, on this PC, searches sent from home over the internet.

Three things stand out:

Does thinking mode help with facts?

Not with getting them right. With thinking on, the model was more careful, not more knowing. On the 15 hard questions it went from 5 right and 8 wrong to 3 right and 2 wrong: it said "I don't know" 10 times instead of guessing. That is safer, but it lost two answers it knew (it talked itself out of "El Bierzo", which was right). Thinking can't find a fact that isn't in the weights. A search can.

What did the answers look like?

Real answers from this run, all from the hard level:

QuestionQwen 4 aloneWith WikiVectors
Who was the first Portuguese tennis player to reach the ATP top 100?João Sousa, in 2011 (wrong)Nuno Marques
Which region did Lloyd Quinan represent as an MSP from 1999 to 2003?Cape Breton North, as an MLA (wrong: that's Canada)West of Scotland
Which architect designed The Leys, the listed house in Elstree?Barry Parker (wrong)George Henry Walton
With which logician did Francisco Dória prove that chaos theory is undecidable?Bruno Scarpellini (wrong)Newton da Costa
In which 2010 film did actress Afiea Nusrat Barsha make her feature debut?Hajuratir Bibidha (wrong)Khoj: The Search
Who wrote the Channel 4 sitcom The Lady Is a Tramp?I'm not sure.Johnny Speight

And 2026, where the model alone said "I don't know" every time: with WikiVectors it answered "Spain" (2026 World Cup), "The Seattle Seahawks won Super Bowl LX, defeating the New England Patriots 29–13", and "Rory McIlroy" (2026 Masters).

Why did Wikipedia's own search do worse?

Wikipedia's search matches words in titles and text. Send it a whole question and it often finds the wrong pages, or none: for 4 of the 60 questions it found nothing at all, so the model saw no context. For "Which chemical element has atomic number 74?" it found "List of chemical elements", but the part we sent stops before element 74; for "What is the longest river in Australia?" it found lists of tunnels and caves. LangChain's default then sends the first 4,000 characters of 3 whole pages, about 12,000 characters a question. The answer, when it's there, is often further down the page and gets cut off.

WikiVectors searches by meaning and sends the 5 best paragraphs, about 2,500 characters. On a local model that matters twice: the right fact was in the context for all 60 questions (Wikipedia's search: 45), and the model read a prompt 4 times shorter, so it answered in 3.5 s instead of 6.8 s.

How do I do this with Qwen 4 in Ollama?

One search, then put the paragraphs in front of the question. These are the calls we made. Python, standard library only:

import json, os, urllib.request

def post(url, body, headers={}):
    req = urllib.request.Request(url, json.dumps(body).encode(),
                                 {"Content-Type": "application/json", **headers})
    return json.load(urllib.request.urlopen(req))

SYSTEM = ("Answer the question in as few words as possible, using only the context. "
          "If the context supports an answer, give it. "
          "Only if nothing in the context answers the question, answer: I don't know.")

def ask(question):
    results = post("https://wikivectors.com/v1/search", {"query": question, "limit": 5},
                   {"Authorization": "Bearer " + os.environ["WIKIVECTORS_KEY"]})["results"]
    context = "\n\n".join(f"Page: {r['title']}\n{r['text']}" for r in results)
    reply = post("http://localhost:11434/api/chat", {
        "model": "qwen4:35b-a3b-q4_K_M", "stream": False, "think": False,
        "options": {"temperature": 0, "num_ctx": 8192},
        "messages": [{"role": "system", "content": SYSTEM},
                     {"role": "user", "content": f"Context:\n{context}\n\nQuestion: {question}"}]})
    return reply["message"]["content"]

print(ask("Who was the first Portuguese tennis player to reach the ATP top 100?"))

Already have the model in LM Studio? You don't need to download it again for Ollama. Point a one-line Modelfile at the GGUF file and run ollama create qwen4:35b-a3b-q4_K_M (add -f Modelfile):

FROM C:/path/to/Qwen4-35B-A3B-Q4_K_M.gguf

Or stay in LM Studio and connect WikiVectors over MCP, so the model searches on its own.

How fair is this test?

Run it yourself: the script, the 60 questions, the saved search results and all 240 answers are in qwen4-test.zip.

Questions people ask

Can Qwen 4 35B run on a 12 GB graphics card?

Yes, with enough RAM. The 4-bit file is 36 GB. Ollama put about 9 GB on our 12 GB card and the rest in system RAM (64 GB here), and it still wrote about 55 words a second, because only about 3 billion of its weights work on each word.

Does a Wikipedia search slow a local model down?

A little. The search took about 1.6 s from a home connection, and the longer prompt added about 1 s to the answer: 5.2 s a question in total instead of 2.5 s. Wikipedia's own search took 9.8 s, mostly because its 12,000-character prompts are slow for a local model to read.

Why not just turn thinking on?

Thinking helps with reasoning, not with missing facts. Here it cut wrong answers from 8 to 2, but right answers on hard questions fell from 5 to 3. With WikiVectors and thinking off, the model got all 15.

Does this work with other local models?

Yes. The search doesn't care which model reads it. Gemma 4 12B went from 2% to 45% on SimpleQA, and DeepSeek, Gemma 4 31B and gpt-oss all got 45 of 45 in our grounding test.

Wikipedia for your AI app, without the limits

WikiVectors searches all of English Wikipedia and returns short, cited paragraphs, fresh within the hour. 1,000 free searches a month, then $2 per 1,000.

Just your email, no card. We send your key right away.

More guides