Interview Prep
Interview questions, roadmaps and practice sets
Tutorials
Free tutorials on 30+ topics
Blog
Career guides, skills and interview tips
Free PDFs
Notes, cheat sheets and question banks
Certificates
Free skill tests and course certificates
Tools & Whiteboard
Free tools you can use right in the browser
Practice Tests
Mock tests, MCQs and quick Q&A
Free LMS
Learn on the Uncodemy LMS
Choose the best training program according to your career.
Improve the performance of your business with our innovative Industrial Training Program.
Read More →
Our instructor-led training classes are designed to make you an expert.
Read More →
Real-life case studies are a great way to demonstrate your practical knowledge.
Read More →
Explore blogs, latest technologies and industry updates with practical examples.
Read More →Browse all available training programs and choose the right one for your career.
Read More →Know more about who we are and what we stand for.
Discover our mission to equip individuals with essential IT skills and industry expertise.
Read More →
Free tutorials, interview questions, tools and calculators to help you learn.
Explore →Learn, practice and plan your career — bilkul free.
Book a free video counselling session and pick the right course for you.
Read More →QwQ-32B is an open-weight reasoning model released by Alibaba's Qwen team in March 2025. With about 32 billion parameters, it was trained to "think" step by step before answering and was reported to match much larger reasoning models on maths and coding benchmarks.
This article explains what the model is, how it was trained, how to run it, where it falls short, and why its release mattered for open AI development in China.
QwQ (short for "Qwen with Questions") is the reasoning line of Alibaba Cloud's Qwen model family. A preview version appeared in November 2024, and the full QwQ-32B was released in early March 2025 with its weights on Hugging Face and ModelScope under the Apache 2.0 licence, which allows commercial use.
Key facts from the official model card:
<think> tags) before giving the final answer, similar to OpenAI's o1 and DeepSeek-R1.The Qwen team describes a two-stage reinforcement learning (RL) process on top of the pretrained base model:
The interesting claim was not the method itself, which follows the approach popularised by DeepSeek-R1, but the scale. The Qwen team reported that a 32B dense model trained this way scored close to DeepSeek-R1 on benchmarks such as AIME 2024 (maths) and LiveCodeBench (coding). DeepSeek-R1 is a mixture-of-experts model with 671 billion total parameters, of which about 37 billion are active per token. Benchmarks reported by a model's own developer should be read with care, but independent users broadly confirmed that QwQ-32B was strong for its size.
A 32B model is small enough to run outside a data centre:
| Setup | Approximate memory for weights | Where it runs |
|---|---|---|
| Full BF16 precision | about 65 GB | One 80 GB data-centre GPU, or two smaller GPUs |
| 8-bit quantised | about 33 GB | A 40–48 GB workstation GPU |
| 4-bit quantised | about 18–20 GB | A single 24 GB consumer GPU, or a Mac with enough unified memory |
These figures follow from parameter count × bytes per parameter (2 bytes for BF16, roughly 0.5–0.6 for 4-bit formats). You also need extra memory for the KV cache, which grows with context length, and reasoning models produce long outputs, so leave headroom.
The quickest way on a local machine is Ollama, which packages quantised builds:
ollama run qwq
With Python and Hugging Face Transformers (on a machine with enough GPU memory):
from transformers import AutoModelForCausalLM, AutoTokenizer
name = "Qwen/QwQ-32B"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, torch_dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "How many r's are in the word strawberry?"}]
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok([prompt], return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=4096, do_sample=True,
temperature=0.6, top_p=0.95)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
The output is a long reasoning trace followed by the answer (3). The sampling settings above follow the model card, which advises against greedy decoding because it can cause endless repetition. Many cloud providers and Alibaba Cloud's Model Studio also serve the model through an API.
QwQ-32B arrived about six weeks after DeepSeek-R1, and together they made two points clear. First, Chinese labs were releasing competitive models with open weights and permissive licences, rather than keeping them behind APIs. Second, reasoning ability did not require the largest models: careful RL on a mid-sized base could get surprisingly close. Alibaba's shares rose on the news, and financial media treated the release as evidence that efficient training, not only bigger compute budgets, would shape the next phase of competition.
For developers, open weights mean you can run the model on your own hardware, fine-tune it, inspect its behaviour and avoid sending data to a third party. The trade-off is that you take on hosting, safety testing and updates yourself.
For background, see our introduction to LLMs, the overview of DeepSeek-R1, Alibaba's assistant in Qwen Chat explained, and the wider list of open-source AI models to watch.
Uncodemy's Artificial Intelligence course covers LLM fundamentals, prompt design and running open models in practical projects.