GyaanStack. Blog

Articles / llmprojects

Open-source LLMs in late 2026: every major family, its licence and what it is good at

DeepSeek V4, Kimi K3.1, Qwen3.8, GLM-5.3, Gemma 4, gpt-oss and more, each checked on its model card, plus how to pick one for your hardware and a local test.

By Raghunath · · 16 min read

Most lists of "open-source LLMs" go stale within a quarter. Kimi K2.6 shipped in April 2026; by November Moonshot had released K3 and then K3.1 Pro. Qwen moved from 3.5 and 3.6 to 3.8. DeepSeek put out V4 Pro, then V4.1 Flash, then a refresh of that. If you pick a model from a list written in the spring, you are picking from an old menu.

This guide covers the families that matter in November 2026. For each one it gives the newest release, sizes, context length, the licence and what that licence permits, and the jobs it suits. Every number here comes from the vendor's model card on Hugging Face or its own blog, linked inline and again under Sources. Benchmark scores are left out on purpose: they are self-reported, measured with different harnesses, and they change monthly. After the families there is a section on choosing by hardware and use case, then a short test you can run on a laptop with Ollama.

Open source or open weights?#

The two terms get used as if they meant the same thing. They do not.

The Open Source Initiative's Open Source AI Definition asks for three things: the weights, the code used to train and run the model, and enough information about the training data that a skilled person could build a similar system. Almost every model below releases only the first. Those are open-weight models. You can download them, run them and fine-tune them, but you cannot see or rebuild what went into them.

Within open weights, the licence decides what you are allowed to do. The models in this guide sort into four tiers:

How open is it?

 Weights + data + code, Apache 2.0  ->  OLMo 3.1
 ------------------------------------------------------------------ weights only below
 Apache 2.0 or MIT, no extra terms  ->  Gemma 4, gpt-oss, DeepSeek V4, Qwen3.8-27B,
                                        GLM-5.3-Flash, Phi-4
 MIT-style + "Model as a Service"   ->  Kimi K3.1 Pro, Qwen3.8 Max, Qwen3.8 Flash-Next,
   clause for API resellers             GLM-5.3, Mistral Large 4
 Community licence, user threshold, ->  Llama 4
   attribution, use policy, gated

The third tier is where people get caught. These licences read like MIT for the first paragraph, then add a clause about "Model as a Service" (MaaS): selling API or hosted access where a third party controls the inputs. Internal use is fine under all of them. Building a product that embeds the model is fine. Reselling raw inference above a revenue line is not, without a separate deal. The thresholds differ a lot between vendors, so read the LICENSE file in the repo, not the badge on the model card.

The families, one by one#

DeepSeek V4 (DeepSeek)#

  • Newest: DeepSeek-V4.1-Flash-1017, a minor update to V4.1 Flash, released October 2026. DeepSeek-V4-Pro-0813 is the larger model.
  • Sizes: V4 Pro is 1.6T total parameters with 49B active. V4.1 Flash is a 552B-backbone MoE that activates 8B or 16B per token, and it reads images as well as text (V4.1 Flash card).
  • Context: 1M tokens across the V4 line (V4 card).
  • Licence: MIT, weights included. No usage clauses.
  • Good at: long-horizon coding agents and long-document work where you want a permissive licence. V4.1 Flash is the one to self-host; V4 Pro needs a multi-GPU node (the card's vLLM example uses 4x GB300).
  • Watch out: neither release ships a Jinja chat template. DeepSeek provides Python encoding scripts instead, so tools that assume tokenizer.apply_chat_template need extra work.

Kimi K3.1 Pro (Moonshot AI)#

  • Newest: Kimi K3.1 Pro, November 2026, post-trained from K3.
  • Sizes: 2.8T total, 104B active, 896 experts with 16 picked per token. Weights ship in MXFP4 with quantization-aware training.
  • Context: 1,048,576 tokens.
  • Licence: "Kimi K3.1-Pro License", MIT-style plus one clause: if you run a Model as a Service business and your group's revenue passes US$20 million over 12 months, you need a separate agreement with Moonshot.
  • Good at: agentic work across many steps: coding, research, office documents. It is natively multimodal.
  • Watch out: this is the largest model in the guide. You will reach it through a hosted API or a cluster, not a workstation.

Qwen3.8 (Alibaba)#

Qwen now has three very different releases under one version number, and they have three different licences.

Model Size Context (native) Licence
Qwen3.8-27B 27B dense, vision 262,144, extendable to 1M Apache 2.0
Qwen3.8-Flash-Next 125B MoE, 6B active, plus 51B n-gram embedding 262,144, extendable to 1M Qwen Community License 1.0
Qwen3.8-2.4T-A95B 2.4T MoE, 95B active 262,144, extendable to 1,010,000 Qwen3.8-Max License

The 27B is the easy pick: Apache 2.0, one GPU, images and video in. The big model is the open release of Qwen3.8 Max; its licence adds a model-name display rule above 100M monthly users or US$20M monthly revenue, and a separate-licence rule for MaaS or coding/office assistant businesses above US$50M a year. Flash-Next, a preview of the architecture planned for Qwen4, has the stricter Community License: a MaaS or AI work assistant business needs a separate licence at any revenue.

  • Good at: multilingual apps and general assistants (the 27B), and a dense model that is simple to fine-tune.
  • Watch out: "1M context" on the Qwen pages means 262K native plus RoPE scaling. Quality past the native length depends on how you configure the scaling, and the card recommends setting the factor to your real workload length.

GLM-5.3 (Z.ai)#

  • Newest: GLM-5.3 and GLM-5.3-Flash, both August 2026.
  • Sizes: GLM-5.3 is an MoE of roughly 750B parameters by the Hugging Face weight count; the card does not state its active count. GLM-5.3-Flash is 320B total with 18B active and is the first multimodal model in the GLM-5 line.
  • Context: both configs set 1,048,576 positions.
  • Licence: GLM-5.3-Flash is plain MIT. GLM-5.3 has its own licence that only bites on MaaS businesses above US$10 billion a year in revenue, which then need Z.ai's security review. For nearly everyone it behaves like MIT.
  • Good at: coding and terminal agents. Z.ai's card calls GLM-5.3 its strongest open-weights coding model.

Mistral Large 4 (Mistral AI)#

  • Newest: Mistral-Large-4-1T-A52B, September 2026.
  • Sizes: 1T total, 49B active per token (52B counting embeddings and output layers), multimodal.
  • Context: 1M.
  • Licence: Mistral Ecosystem Open-Weight License, a modified MIT. Internal use is free. Any Model as a Service business needs a commercial licence for commercial use, with no revenue threshold.
  • Good at: European and Indian languages (the card lists 160+ languages, including Hindi and Bengali), strict JSON schema output, and regulated domains like finance and law, per the card.

Gemma 4 (Google DeepMind)#

  • Newest: Gemma 4 12B, May 2026, joining E2B, E4B, 26B A4B and 31B from March.
  • Sizes: five. E2B and E4B are "effective" sizes for phones and edge devices. 12B is dense and encoder-free. 26B A4B is an MoE with 4B active. 31B is dense.
  • Context: 128K on E2B and E4B, 256K on the rest.
  • Licence: Apache 2.0. Earlier Gemma versions had their own terms; Gemma 4 moved to a standard licence.
  • Good at: multimodal input on modest hardware. All sizes read images; E2B, E4B and 12B also take audio, including speech recognition. The card lists 35+ languages supported out of the box.

gpt-oss (OpenAI)#

  • Newest: gpt-oss-120b and gpt-oss-20b, August 2025. Still the current open release.
  • Sizes: 117B with 5.1B active (fits one 80 GB GPU), and 21B with 3.6B active.
  • Context: 131,072 tokens in the config.
  • Licence: Apache 2.0.
  • Good at: a reasoning model with tool use that runs on one GPU. The 20b is a common local choice when 16 GB of memory is available.

Llama 4 (Meta)#

  • Newest: Llama 4 Scout and Maverick, April 2025. Meta has not published newer Llama weights on its Hugging Face org since then.
  • Sizes: Scout has 17B active parameters across 16 experts (about 109B total by the Hugging Face weight count). Maverick has 17B active across 128 experts.
  • Context: Meta advertises 10M tokens for Scout.
  • Licence: Llama 4 Community License. Companies above 700 million monthly active users must ask Meta for a licence; there is also an acceptable use policy and a "Built with Llama" attribution rule. Downloads are gated behind a form.
  • Good at: you already have Llama fine-tunes, tooling or approvals. The ecosystem is still large.
  • Watch out: Scout is often described as a dense model. It is a Mixture-of-Experts, so all ~109B parameters have to sit in memory even though only 17B run per token. For a new project in late 2026, Qwen3.8-27B or Gemma 4 31B give you a dense base with a cleaner licence.

Phi-4 (Microsoft)#

  • Newest: Phi-4-reasoning-vision-15B, January 2026. The base phi-4 is 14B with a 16K context.
  • Licence: MIT.
  • Good at: small, cheap, local reasoning on a single consumer GPU. The 16K context on the base model rules it out for long-document work.

OLMo 3.1 (Ai2)#

  • Newest: Olmo-3.1-32B-Instruct and a Think variant, December 2025, plus 7B models.
  • Context: 65,536 tokens.
  • Licence: Apache 2.0, with the pre-training data (Dolma 3), post-training data (Dolci), code and checkpoints all released.
  • Good at: research, teaching, audits and any setting where you must explain what the model was trained on. It is the closest thing on this list to open source in the OSI sense.

The MoE memory trap, in numbers#

Active parameters set the speed. Total parameters set the memory. People mix these up more than anything else on this list.

Weight memory is roughly total_params x bits_per_weight / 8. Take Gemma 4 26B A4B. It computes like a 4B model, but at about 4.5 bits per weight (a typical Q4_K_M quant):

26e9 params x 4.5 bits / 8 = 14.6 GB of weights
+ vision encoder, KV cache, runtime overhead
Ollama's gemma4:26b download: 18.7 GB

That will not load on a 16 GB laptop, even though a dense 4B model would fly on one. Run the same sum for Kimi K3.1 Pro at its shipped 4-bit precision: 2.8T x 4 / 8 = 1.4 TB before any cache. Only a cluster holds that.

The download sizes below come from Ollama's registry manifests and match the formula within a few gigabytes:

Ollama tag Download
gemma4:e2b 4.6 GB
gemma4:e4b 6.6 GB
gemma4:12b 8.0 GB
gpt-oss:20b 13.8 GB
qwen3.8:27b 17.7 GB
gemma4:26b 18.7 GB
gemma4:31b 20.4 GB
gpt-oss:120b 65.4 GB

For the full memory math, KV cache included, see running an LLM locally on your laptop.

How to choose#

Start from the hardware you have, then narrow by the job.

Hardware Realistic picks
8 GB laptop or phone Gemma 4 E2B or E4B, a 1-4B Qwen3 model
16 GB laptop Gemma 4 12B, gpt-oss-20b (tight), Phi-4
24-32 GB Mac or a 24 GB GPU Qwen3.8-27B, Gemma 4 26B A4B or 31B, OLMo 3.1 32B
One 80 GB GPU gpt-oss-120b, Qwen3.8-27B at 16-bit
Multi-GPU node or cluster DeepSeek V4.1 Flash, GLM-5.3-Flash, Qwen3.8 Flash-Next, Mistral Large 4, then the trillion-scale models

Then by job:

  • Coding agent you host yourself: GLM-5.3-Flash (MIT) or DeepSeek V4.1 Flash (MIT) if you have the GPUs; Qwen3.8-27B if you do not.
  • Multilingual product, including Indian languages: Qwen3.8-27B or Mistral Large 4. Test on your own languages; card language lists are not quality guarantees.
  • Images or audio on a device: Gemma 4 E4B or 12B.
  • A base to fine-tune with LoRA: a dense model with Apache 2.0 terms, so Qwen3.8-27B, Gemma 4 12B or 31B, or OLMo. Dense models are simpler to fine-tune than MoE. The local fine-tuning walkthrough shows the full loop on a small model.
  • Private RAG on a laptop: a 4B-12B model plus a local embedding model; see local RAG with Ollama.
  • You have to document the training data: OLMo 3.1.
  • You plan to sell API access to the model itself: stick to Apache 2.0 or MIT weights, or budget for a commercial licence.

Hands-on: test your shortlist before you commit#

A leaderboard tells you how a model does on someone else's task. Ten minutes on your own task tells you more. The script below sends the same five support tickets to each local model, asks for JSON with an order ID and an intent, and scores the answers against expected values. It also reads Ollama's own timing fields to report generation speed.

The machine is an Apple M5 MacBook with 24 GB of unified memory and Ollama 0.40.16. These models were already installed:

$ ollama list
NAME                       ID              SIZE      MODIFIED
gemma3:12b                 b92b218582c5    8.2 GB    11 days ago
nomic-embed-text:latest    0a109f422b47    274 MB    4 weeks ago
qwen3:4b-instruct          0edcdef34593    2.5 GB    6 weeks ago
qwen3:4b                   359d7dd4bcda    2.5 GB    6 weeks ago
qwen3:1.7b                 8f68893c685c    1.4 GB    6 weeks ago
qwen2.5:7b                 845dbda0ea48    4.7 GB    4 months ago
llama3.2:1b                baf6a787fdff    1.3 GB    5 months ago
"""Run the same small task set against local Ollama models and score them.

Uses only the standard library and Ollama's REST API on localhost:11434.
"""
import json
import sys
import urllib.request

OLLAMA = "http://localhost:11434/api/chat"

# Each case: a support ticket, and the fields we expect back.
CASES = [
    ("My order #4471 arrived with a cracked screen. I want a refund.",
     {"order_id": "4471", "intent": "refund"}),
    ("Can you change the delivery address on order 9032 to Pune?",
     {"order_id": "9032", "intent": "address_change"}),
    ("Where is my package? Order 1188, it has been 9 days.",
     {"order_id": "1188", "intent": "tracking"}),
    ("Order 5520: please cancel it, I bought the wrong size.",
     {"order_id": "5520", "intent": "cancel"}),
    ("I was charged twice for order 7310.",
     {"order_id": "7310", "intent": "billing"}),
]

SYSTEM = (
    "Extract fields from the customer message. Reply with JSON only: "
    '{"order_id": string, "intent": one of '
    '["refund","address_change","tracking","cancel","billing"]}'
)


def ask(model: str, text: str) -> dict:
    body = json.dumps({
        "model": model,
        "messages": [{"role": "system", "content": SYSTEM},
                     {"role": "user", "content": text}],
        "format": "json",          # constrain output to valid JSON
        "stream": False,
        "options": {"temperature": 0, "num_predict": 200},  # cap runaway JSON
    }).encode()
    req = urllib.request.Request(OLLAMA, body, {"Content-Type": "application/json"})
    with urllib.request.urlopen(req, timeout=600) as r:
        return json.load(r)


def run(model: str) -> None:
    correct, tokens, seconds = 0, 0, 0.0
    for text, want in CASES:
        resp = ask(model, text)
        tokens += resp.get("eval_count", 0)
        seconds += resp.get("eval_duration", 0) / 1e9
        try:
            got = json.loads(resp["message"]["content"])
        except json.JSONDecodeError:
            got = {}
        ok = all(str(got.get(k)) == v for k, v in want.items())
        correct += ok
        print(f"  {'PASS' if ok else 'FAIL'}  {got}")
    rate = tokens / seconds if seconds else 0
    print(f"{model}: {correct}/{len(CASES)} correct, {rate:.0f} tokens/s generation\n")


if __name__ == "__main__":
    for m in sys.argv[1:]:
        print(m)
        run(m)

Run it with the models you want to compare:

$ python3 shortlist_check.py llama3.2:1b qwen3:4b-instruct

Real output from this run on an Apple M5 laptop:

llama3.2:1b
  PASS  {'order_id': '4471', 'intent': 'refund'}
  FAIL  {'order_id': '9032', 'intent': 'delivery_address_change', 'delivery_address': 'Pune'}
  FAIL  {}
  PASS  {'order_id': '5520', 'intent': 'cancel'}
  FAIL  {'order_id': '7310', 'intent': 'refund'}
llama3.2:1b: 2/5 correct, 11 tokens/s generation

qwen3:4b-instruct
  PASS  {'order_id': '4471', 'intent': 'refund'}
  PASS  {'order_id': '9032', 'intent': 'address_change'}
  PASS  {'order_id': '1188', 'intent': 'tracking'}
  PASS  {'order_id': '5520', 'intent': 'cancel'}
  FAIL  {'order_id': '7310', 'intent': 'refund'}
qwen3:4b-instruct: 4/5 correct, 9 tokens/s generation

The 4B model got four of five, and the 1B model two. Both made the same mistake on the double-charge ticket: they filed it as refund instead of billing. That is the kind of label overlap a bigger case list will show you, and you fix it by tightening the intent descriptions, not by switching to a bigger model. The 1B model also made up a label (delivery_address_change) and added a field nobody asked for. On the tracking ticket it never closed its JSON before the 200-token cap, which shows up as FAIL {}. That cap is in the code on purpose: without num_predict, a small model in JSON mode can keep generating until the request times out, and an early version of this script hung for over six minutes on exactly that ticket. The tokens-per-second figures are low because other jobs were sharing the GPU, so use them only to compare the two rows.

Swap in your own tickets, contracts or code snippets and grow the case list to 30-50 before you trust the score. The same harness works against a hosted endpoint for the big models: change OLLAMA to your vLLM or provider URL and adapt the request body to the OpenAI-style chat format.

Failure modes when adopting an open model#

  • Reading the licence badge instead of the LICENSE file. Hugging Face shows "other" for Kimi, Qwen Max, GLM-5.3 and Mistral Large 4. The real terms are in the repo and they differ by revenue line and business type.
  • Sizing hardware by active parameters. See the MoE section above. Budget memory for total parameters plus KV cache.
  • Trusting the headline context length. Qwen3.8 reaches 1M only with RoPE scaling. Ollama runs models with a small default context window (the loaded model above showed 4,096 in ollama ps), so long prompts get cut unless you raise num_ctx. The local RAG post shows how that breaks retrieval.
  • Broken chat templates. DeepSeek V4 ships encoding scripts in place of a Jinja template, and community GGUF conversions sometimes get the template or stop tokens wrong. If a model rambles or never stops, check the template before blaming the weights.
  • Choosing by leaderboard. Every vendor table in these cards uses its own harness and settings. Your five-to-fifty case test is the number that counts.
  • Gated downloads in CI. Llama 4 needs an approved Hugging Face account and token, so pipelines that pull weights fail without one.

Sources#

Found this useful? You can buy me a coffee or support with any amount. It pays for hosting and keeps new articles coming.