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 →There is no single best open-source AI model. The right pick depends on three things: what the licence lets you do, how much memory you have, and the task. This guide compares the main open-weight model families on exactly those points.
Most models people call "open source" are really open-weight models. The trained weights can be downloaded, but the training data and the full training code usually are not published. The Open Source Initiative released its Open Source AI Definition 1.0 in October 2024, and by that standard very few large language models qualify. In practice, what matters to you as a developer is the licence attached to the weights:
If you are a student building a project, any of these is fine. If you are building something a client will pay for, the licence is the first filter, before benchmarks.
| Family (maker) | Typical sizes | Licence type | Known for |
|---|---|---|---|
| Llama (Meta) | 1B and 3B (3.2), 8B and 70B (3.1/3.3), 405B (3.1); Llama 4 uses mixture-of-experts | Llama community licence | Largest ecosystem of fine-tunes, tutorials and tooling |
| Mistral / Mixtral (Mistral AI) | 7B, 12B (NeMo), 24B (Small 3), 8x7B and 8x22B mixture-of-experts | Apache 2.0 for these open releases | Strong quality per parameter; early popular MoE models |
| Qwen (Alibaba) | 0.5B up to 72B; Qwen3 adds MoE variants | Mostly Apache 2.0 (check each size) | Wide size range, coding and maths variants, good multilingual coverage |
| Gemma (Google) | Gemma 3: 1B, 4B, 12B, 27B | Gemma terms of use | Small models that run on laptops; image input on larger Gemma 3 sizes |
| DeepSeek (DeepSeek AI) | V3 and R1: 671B total MoE (about 37B active); distilled R1 versions from 1.5B to 70B | MIT for R1 | Step-by-step reasoning; distilled versions bring that to small hardware |
| Phi (Microsoft) | Phi-3 mini/small/medium, Phi-4 (14B) | MIT | Small models trained heavily on curated and synthetic data |
| gpt-oss (OpenAI) | 20B and 120B (MoE) | Apache 2.0 | OpenAI's first open-weight reasoning models (August 2025) |
| Falcon (TII, UAE) | 7B, 40B, 180B; later Falcon 3 small models | Apache 2.0 for some, TII licence for 180B | One of the first large openly released models (2023) |
Sizes and licences above come from each publisher's model cards. New versions appear every few months, so treat this table as a map of the families, then check the latest card on the publisher's Hugging Face page before you download.
Because Meta's models were the first widely used high-quality open weights, most tools support them first: llama.cpp, Ollama, vLLM, LoRA fine-tuning scripts and many quantised community builds. Llama 3.1 brought a 128K-token context window. If you want the most tutorials and the fewest surprises, start here. Our Llama 4 explainer covers the newer mixture-of-experts generation.
Mistral 7B (September 2023) beat larger older models on many benchmarks, and Mixtral 8x7B (December 2023) made sparse mixture-of-experts popular. Each layer has eight expert feed-forward blocks and a router picks two for every token, so only about 12.9B of its 46.7B parameters do work per token. That makes it faster than a dense 46B model, but all 46.7B parameters must still sit in memory. See Mistral NeMo for the 12B model built with NVIDIA.
Qwen offers almost every size from tiny to large, plus dedicated coder and maths models. That makes it easy to prototype with a small version and scale up without changing prompt formats. The reasoning-focused QwQ-32B is a good example of how far a mid-size model can go.
DeepSeek-R1 (January 2025) was trained to write out its reasoning before answering. The full model is huge, but DeepSeek also released smaller "distilled" models, which are Qwen and Llama models fine-tuned on R1's outputs. A distilled 7B or 8B model can run on a gaming laptop. Read more in DeepSeek R1 strengths and applications.
Both aim at quality at small sizes. Gemma 3's 4B and 12B models and Microsoft's Phi-4 (14B) are practical for on-device or single-GPU use. Our Gemma 3 overview goes deeper.
The most common beginner mistake is downloading a model that does not fit in memory. The weights alone need roughly parameters × bytes per parameter. This script does the arithmetic:
# Rough memory needed just to hold the weights (no KV cache, no activations)
BYTES_PER_PARAM = {"fp16": 2.0, "int8": 1.0, "4-bit": 0.5}
models = [
("Llama 3.2 3B", 3.2),
("Mistral 7B", 7.3),
("Llama 3.1 8B", 8.0),
("Gemma 3 27B", 27.0),
("Mixtral 8x7B (all experts)", 46.7),
("Llama 3.3 70B", 70.0),
]
print(f"{'model':<28}{'fp16':>8}{'int8':>8}{'4-bit':>8}")
for name, billions in models:
row = [billions * b for b in BYTES_PER_PARAM.values()] # 1e9 params * bytes = GB
print(f"{name:<28}" + "".join(f"{gb:>7.1f}G" for gb in row))
Output:
model fp16 int8 4-bit
Llama 3.2 3B 6.4G 3.2G 1.6G
Mistral 7B 14.6G 7.3G 3.6G
Llama 3.1 8B 16.0G 8.0G 4.0G
Gemma 3 27B 54.0G 27.0G 13.5G
Mixtral 8x7B (all experts) 93.4G 46.7G 23.4G
Llama 3.3 70B 140.0G 70.0G 35.0G
Read it like this: a typical student laptop with 16 GB RAM and no big GPU can run a 3B–8B model in 4-bit form comfortably. A 27B model at 4-bit needs a GPU with 16 GB or more, or a lot of patience on CPU. A 70B model is a cloud or workstation job. Real usage is higher than these figures, because the context (KV cache) also takes memory, and common 4-bit formats use a little more than half a byte per parameter.
transformers applies the right template with apply_chat_template.If terms like tokens, context window and instruct tuning are new, start with what a large language model is. Then install Ollama, pull one 3B and one 8B model, and run the same ten prompts through both. You will learn more about the trade-offs in an afternoon than from any comparison table. If you want guided practice with these tools, Uncodemy's Artificial Intelligence course covers working with open models in projects.
Sources: publisher model cards on Hugging Face (Meta Llama, Mistral AI, Qwen, Google Gemma, DeepSeek, Microsoft Phi, OpenAI gpt-oss, TII Falcon); Open Source Initiative, Open Source AI Definition 1.0 (October 2024); Mixtral of Experts paper (Jiang et al., 2024)