Open LLMs/unsloth

Open-Weight LLM · Private & Custom AI

gpt-oss-20b-BF16

Apache 2.0 open-weight MoE model (21B params, 3.6B active) purpose-built for on-premise reasoning, agentic automation, and fine-tuning on consumer/enterprise hardware.

gpt-oss-20b is OpenAI's smaller open-weight reasoning model, trained on the Harmony response format with native MXFP4 quantization. For ops teams, it's a self-hostable alternative to proprietary APIs—capable of chaining reasoning, tool use, and function calling while keeping inference data entirely in your environment. Its 21B parameter footprint and MoE sparsity let it run on 16GB VRAM, making it practical for private deployment without specialized accelerators.

20.9B
Parameters
apache-2.0
License (OSI/permissive)
Unknown
Context
96.9k
Downloads

Model facts

Developerunsloth
Parameters20.9B
Context windowUnknown
Licenseapache-2.0 — OSI/permissive
Tasktext-generation
GatedNo
Downloads96.9k
Likes34
Updated2025-08-05
Sourceunsloth/gpt-oss-20b-BF16

Private deployment

Run gpt-oss-20b-BF16 in your own environment

Deploy via Transformers, vLLM, Ollama, or LM Studio on on-premise servers, Kubernetes clusters, or air-gapped environments. Model weights download directly from HuggingFace; no licensing gatekeeping. Inference stays within your network—critical for compliance-heavy workflows (finance, healthcare, legal). Requires Harmony format compliance (not generic chat templates); vLLM wheels and PyTorch reference implementations provided by OpenAI. Trade: you manage versioning, quantization, and scaling across your infrastructure.

Operational AI use cases

01

Internal Support & Knowledge Agent

Route inbound questions (tickets, Slack, email) to a private gpt-oss-20b instance configured with your internal docs, SOPs, and historical resolutions. Chain reasoning to disambiguate edge cases and escalate to humans only when confidence drops. No API calls or data leakage to third parties.

02

Contract & Policy Analysis (Finance/Legal)

Fine-tune gpt-oss-20b on a corpus of your past contracts, amendments, and regulatory filings. Use the model to flag risk clauses, summarize terms, and auto-populate compliance checklists. Reasoning chains expose logic for audit trails. Data never touches external LLM APIs.

03

Workflow Automation & RPA Orchestration

Use function calling and agentic capabilities to trigger downstream APIs (CRM, ERP, HRIS) based on structured reasoning. Example: intake email → extract intent → validate against policy → auto-submit request or escalate. Runs on premise; integrates via OpenAI-compatible endpoints (vLLM Serve).

Custom AI

As a base for custom AI

gpt-oss-20b is a strong base for specialized AI products. Its full fine-tuning support and small footprint make it suitable for customer-embedded models (SaaS, embedded analytics). Chain-of-thought transparency aids debugging custom behaviors. Harmony format ensures consistent reasoning output for downstream parsing by workflows or agents.

In the operating system

Where it fits

Middle layer in an AI OS: foundation model for the reasoning + agentic orchestration tier. Feeds structured outputs to workflow engines and integrates with knowledge retrieval (RAG pipelines) and tool/API connectors. Can serve as a lightweight alternative to larger models in multi-model stacks where latency and cost matter.

Data control & security

Self-hosting is an architecture choice: inference logs, context, and outputs remain on your servers. No telemetry to OpenAI or third parties. This is NOT a security feature of the model itself—it's the outcome of private deployment. You retain responsibility for securing endpoints, managing secrets, and auditing access. No implicit compliance claims; data governance depends on your infrastructure and policies.

Hardware footprint

**Estimate (BF16 precision):** ~40–48 GB VRAM for full model. **With native MXFP4 quantization:** ~16–20 GB VRAM (sparse MoE layers reduce active memory). Runs inference on single H100, A100, or RTX 6000 Ada; suitable for mid-range on-premise servers. Batch inference scales with vLLM token-parallelism.

Integration

Expose via OpenAI-compatible REST API using vLLM Serve or Transformers Serve for drop-in compatibility with existing chat/completion client libraries. Function calling requires schema-based setup (JSON spec in system prompt). Needs integration layer (e.g., LangChain, LlamaIndex, custom orchestration) to wire into ticketing, CRM, knowledge base, and approval systems. Harmony format must be enforced in prompts; standard chat templates will degrade performance.

When it's not the right fit

  • Latency-critical applications requiring <50ms response times—reasoning depth trade-off means 1–5s typical latency.
  • You need certified compliance guarantees (HIPAA, SOC2, FedRAMP)—model itself is uncertified; compliance is your deployment responsibility.
  • Your team lacks ML infrastructure expertise—self-hosting requires DevOps overhead (quantization, serving, scaling, monitoring).
  • Multilingual or domain-specific reasoning at state-of-the-art quality beyond English—model card does not specify training data language coverage.

Alternatives to consider

Meta Llama 3.1 70B

Larger, broader reasoning capacity; runs on 2× the VRAM but achieves higher accuracy on complex tasks. Llama 3.1 is fully open (Apache 2.0) and widely battle-tested; less specialized for agentic reasoning than gpt-oss.

Qwen2.5 72B

Strong instruction-following and reasoning; similar Apache 2.0 license. Smaller than Llama 70B but still ~100 GB VRAM; slightly broader multilingual support. No explicit Harmony format requirement.

DeepSeek-V3 (671B / MoE)

Larger MoE with higher reasoning performance; requires significant infrastructure. Not as lightweight, but available open-weight; more suited to on-premise enterprise deployments with GPU clusters.

FAQ

Can I run gpt-oss-20b on a local machine for development?

Yes. With 16GB VRAM (after MXFP4 quantization) you can run inference on consumer GPUs (RTX 4090, RTX 6000) or M-series Macs with external GPU. Use Ollama or LM Studio for simplicity. Production deployment requires a server, not a laptop.

Is gpt-oss-20b available for commercial use?

Yes. Apache 2.0 license permits commercial deployment without royalties or patent encumbrance. You must include a copy of the license with distributions. Review OpenAI's system card for any usage restrictions beyond the license.

What's the Harmony format and why does it matter?

Harmony is OpenAI's training format for chain-of-thought reasoning. gpt-oss models are trained exclusively on it; generic chat templates may break reasoning output. Use the provided chat template or the openai-harmony Python package to ensure correct format.

How do I fine-tune gpt-oss-20b for my domain?

Full parameter fine-tuning is supported on consumer hardware (24–48GB VRAM). Use Unsloth or Hugging Face Transformers Trainer. Requires your training corpus formatted in Harmony structure. Inference latency and accuracy improve with domain-specific tuning; hardware & time investment is modest vs. larger models.

Build Your Private AI Operating System

gpt-oss-20b is production-ready for on-premise reasoning and ops automation. LLM.co helps you deploy it in your environment, fine-tune for your domain, and integrate with your existing tools—keeping data, costs, and control entirely yours. Start building.