Model guide
Qwen3 8B
The original Qwen3 8B is a step up from the 4B model for the same hybrid thinking and non-thinking workflow. Compare both with identical prompts to decide whether the additional memory is worthwhile. Do not confuse a reasoning trace with a checked answer, or this checkpoint with a later Qwen3-family release.
At a glance
- Parameters
- 8.2B
- Accepts
- Text
- Returns
- Text
- Published context limit
- 32,768 tokens
- Model format
- Safetensors · GGUF
- Software and download hosts
- Ollama. Follow the exact setup below; this list does not establish support for every format, input type or software version.
- Suggested compression
- Q4_K_M
- Model-weight download
- Q4_K_M weights · 5.03 GBQwen (model publisher)Qwen3-8B-Q4_K_M.gguf
- Languages
- Chinese · English · French · Spanish · Portuguese · German · Italian · Russian · Japanese · Korean · Vietnamese · Thai · Arabic · 100+ languages and dialects
- License
- Apache-2.0
Will it fit?
Qwen3 8B · Q4_K_M download. Fit depends on your computer, the app you run it in and the conversation length you need.
Check on your computerBest for
- Try 8B when 4B fails a code repair or logic condition. Keep the same output limit and compare the final answer.
Choose something else when
- Both original Qwen3 models take text input. A larger size will not read an attached picture.
First setup
After loading with one of the setups below, try a coding task where you can inspect both the implementation and boundary cases. Qwen's model card describes thinking mode for coding and logic; that does not establish that this model will solve your task.
Send this prompt in a new conversation:
Write a Python function merge_ranges(ranges) for half-open integer intervals (start, end). Sort the ranges and merge overlapping intervals, but keep intervals that only touch separate. Do not mutate the input. All inputs have start < end. Include tests for unsorted input, touching intervals, nested intervals, and an empty list.
/think
Review the code, then check these cases:
[(8,9),(2,4),(1,3),(4,5)]must give[(1,4),(4,5),(8,9)].[(1,6),(2,3)]must give[(1,6)];[]must give[].- The original input list must remain unchanged. Merging
(1,4)with(4,5)fails the touching-interval rule.
Compare the same task with Qwen3 4B. Keep 4B if it passes your real requirements with less memory. If 8B still misses a requirement, compare Qwen3 14B only after checking its memory estimate. Record correctness and time to the final answer separately; a longer thinking trace is not evidence of a better solution.
This creates a 4,096-token copy of qwen3:8b named qwen3-8b-short-context. Save the following as a file named Modelfile in your working folder:
FROM qwen3:8b
PARAMETER num_ctx 4096
Then run these commands from that folder:
ollama pull qwen3:8b
ollama create qwen3-8b-short-context -f ./Modelfile
ollama run qwen3-8b-short-context
Run the example in Model-specific setup. While the model is loaded, run ollama ps in another terminal and check CONTEXT and PROCESSOR.
The recorded Ollama package is Q4_K_M: 5.23 GB of model weights. Use Ollama 0.40.18 or a supporting newer release. A Hugging Face GGUF or MLX checkpoint is a separate representation; choose the matching source and runner in the memory calculator.
See Ollama context settings and the Modelfile instructions.
Use ollama run qwen3:8b for Ollama's packaged build, or ollama run hf.co/Qwen/Qwen3-8B-GGUF:Q4_K_M to pin the official Hugging Face GGUF.
Open LM Studio’s Discover tab, search for Qwen/Qwen3-8B-GGUF, and download Qwen3-8B-Q4_K_M.gguf (Q4_K_M, 5.03 GB). See the download files. Select the file in Chat, set context to 4,096, then load it. Run the example in Model-specific setup. If it will not load, open LM Studio Model Will Not Load.
Open a terminal in the extracted llama.cpp release folder. On Windows, replace ./llama-server below with .\llama-server.exe:
./llama-server -hf Qwen/Qwen3-8B-GGUF -hff Qwen3-8B-Q4_K_M.gguf -c 4096 --host 127.0.0.1 --port 8080
The server downloads the selected model. Wait for the model to load, then open the local chat at http://127.0.0.1:8080. Send the model-specific task prompt above and check its stated expected result. Keep the server terminal open; press Ctrl+C there to stop the server. The file list identifies the exact download. If the command fails: Unknown architecture? Update the runner. Allocation failed? Retry with less context or a smaller weight file.
Load the model, start a fresh chat and time your usual prompt. Record time until the first useful word and time until the full answer. Note the processor, context and output length when comparing another run. Time the final answer as well as the first generated token.
