Skip to main content

Open-source alternatives guide

Self-Hosted LLM: DeepSeek and Qwen 2026

Run DeepSeek R1 and Qwen 2.5 locally with Ollama. Hardware requirements by model size, cost vs cloud APIs, and GPU setup guide for 2026 Updated for 2026.

·OSSAlt Team
Share:
Hero image for Self-Hosted LLM: DeepSeek and Qwen 2026

A model name is not a hardware plan. DeepSeek-R1 and Qwen checkpoints differ by parameter count, artifact size, context configuration, base model, and license. Ollama simplifies local serving, but reliable selection still requires an explicit tag and a benchmark on the hardware, quantization, context, and concurrency you will use.

TL;DR verdict

Use explicit Ollama tags. Current deepseek-r1:latest is an updated 8B distilled model; explicit 7B, 14B, 32B, 70B and 671B tags have distinct artifact sizes. Treat those sizes and model-card context values as screening inputs, not VRAM, speed, latency, or quality guarantees. License each checkpoint separately, then run a task-specific evaluation on the target machine before choosing a model for production work.

Key takeaways

  • The current deepseek-r1:latest tag points to an updated 8B distilled model; pin an explicit tag instead of inheriting future changes.
  • DeepSeek-R1 is MIT-licensed, while Qwen-derived distills retain Apache-2.0 base-model licensing qualifications.
  • Qwen2.5-Coder-32B-Instruct is a 32.5B-parameter Apache-2.0 checkpoint with a publisher-claimed 131,072-token full context.
  • Ollama supports parts of the OpenAI API, but unsupported fields and stateful Responses behavior require compatibility testing.
  • Artifact and context metadata are screening inputs. Benchmark on target hardware before making fit or capacity claims.
  • Publisher evaluations can inform a test plan; they do not establish one model as the universal choice for coding or reasoning.

At-a-glance table

CandidateCurrent source-backed factsWhat to verify locally
DeepSeek-R1 explicit tagsOllama lists 7B, 14B, 32B, 70B, and 671B tags with different artifact sizesMemory fit, prompt format, output quality, latency, and concurrency
deepseek-r1:latestCurrent tag is an updated 8B distilled modelWhether an unpinned alias is acceptable for your deployment
DeepSeek-R1 checkpointsMain model card uses MIT; distills retain base-model license qualificationsThe checkpoint-specific license and notice files
Qwen2.5-Coder-32B-Instruct32.5B parameters, Apache-2.0, publisher-claimed 131,072-token full contextEffective context, memory, coding tasks, and tool integration
Qwen3 in OllamaDense and mixture-of-experts variants with thinking-capable modelsExact tag, current controls, prompt behavior, and task fit
Ollama compatibility surfaceChat completions, streaming, tools, and reasoning controls are documentedEvery request field, response field, error path, and state assumption

Choose the checkpoint, not just the family

Use explicit Ollama tags. Current deepseek-r1:latest is an updated 8B distilled model; explicit 7B, 14B, 32B, 70B and 671B tags have distinct artifact sizes.

An explicit tag prevents a deployment from silently changing when an alias moves. It also keeps benchmark results tied to the artifact that produced them.

ollama pull deepseek-r1:8b
ollama run deepseek-r1:8b

ollama pull deepseek-r1:14b
ollama run deepseek-r1:14b

Before pulling a larger tag, check its current Ollama library entry and available disk space. Artifact size alone does not equal total runtime memory.

Checkpoint-specific license review

License each checkpoint separately: DeepSeek-R1 is MIT, Qwen-derived distills retain Apache-2.0 base licensing, and Qwen2.5-Coder-32B-Instruct is Apache-2.0.

Keep the model card, repository notices, and any base-model qualifications with the deployed artifact. A shared family name does not establish the same obligations for another checkpoint.

License box

Checkpoint or familyApproved evidenceReview action
DeepSeek-R1Main model card identifies MITVerify the exact checkpoint and notices distributed with it
Qwen-derived DeepSeek distillsDeepSeek card retains Apache-2.0 base-model qualificationsReview both DeepSeek and named base-model terms
Qwen2.5-Coder-32B-InstructModel card labels the checkpoint Apache-2.0Preserve license and model-card attribution
Other Qwen3 tagsOllama confirms distribution and thinking capabilityReopen the exact model card before deployment

Qwen2.5-Coder-32B-Instruct

Qwen2.5-Coder-32B-Instruct is a 32.5B-parameter Apache-2.0 model with a publisher-claimed 131,072-token full context; do not convert publisher benchmark claims into “best” recommendations.

The model card can shape a coding evaluation, but the workload should decide whether the checkpoint fits. Test repository-scale context, code generation, refactoring, explanation, tool calls, and the languages you maintain. Pin the serving configuration and record prompt templates so others can reproduce the results.

ollama pull qwen2.5-coder:32b
ollama run qwen2.5-coder:32b

Confirm the current Ollama tag and model provenance before relying on this command in automation.

Qwen3 and thinking-capable models

The current Ollama Qwen3 library documents dense and mixture-of-experts variants and thinking-capable models. It does not, in this evidence packet, establish the exact interactive control syntax reproduced by the older guide.

The legacy examples were:

>>> /think Write a recursive function to flatten nested lists in Python.
>>> /no_think What does the zip() function do?

Treat those lines as historical copy, not current instructions. Reopen the current Qwen3 and Ollama documentation before configuring a "thinking mode" or a "deep reasoning," workflow.

Hosted vs self-hosted

AreaHosted model APISelf-hosted Ollama endpoint
Model selectionProvider-controlled catalog and aliasesOperator selects and pins local artifacts
Data pathRequests cross the provider boundary under its termsPrompts can remain on operator-controlled infrastructure
CapacityProvider plan and service limitsHardware, quantization, context, concurrency, and queueing determine capacity
CostCurrent provider pricing and usageHardware, power, storage, administration, and utilization
UpdatesProvider changes models and service behaviorOperator chooses when to pull and roll out a new artifact
SecurityShared with providerHost, network, application, access control, logs, and model supply chain are yours

Ollama's compatibility boundary

Ollama supports parts of the OpenAI API, including chat completions, streaming, tools and reasoning control; it does not implement every field or stateful Responses behavior.

Partial compatibility does not mean every existing client can point to Ollama unchanged. Inventory the fields and endpoints your application uses, then test unsupported fields, streaming, tool calls, reasoning options, errors, and stateless versus stateful assumptions.

curl http://localhost:11434/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1:8b",
    "messages": [{"role": "user", "content": "Summarize this incident report."}]
  }'

If an application points to http://localhost:11434, bind and expose the service according to your threat model. A local endpoint is not automatically private when the host, container network, proxy, or logs are misconfigured.

Maintenance burden

A useful local model service needs more than a successful response. Own the artifact inventory, disk growth, model provenance, license records, host updates, access control, logs, request limits, queue behavior, monitoring, backup of application state, and rollback when a new tag changes output.

For a shared endpoint, define the approved models and tasks. A smaller, faster model and a larger reasoning model can fill different deployment roles, but measured workload results—not a generic quality table—must justify the distinction.

Deployment model table

ModelUseRequired evidence
Developer workstationPrivate experiments and task evaluationExact tag, local fit, data handling, repeatable prompt set
Single shared serverSmall team endpointAccess control, queueing, concurrency benchmark, monitoring, rollback
Containerized serviceRepeatable runtime and application integrationPinned image and model, persistent artifact storage, GPU mapping, health checks
Air-gapped environmentWorkloads requiring network isolationArtifact transfer, provenance, patching, logging, and update procedure
Hybrid routingLocal default with selected hosted fallbacksData classification, routing rules, measurable quality gate, audit trail

Migration checklist

  1. Classify the workload, data sensitivity, and quality requirement.
  2. Select the exact model tag and record its current artifact and model-card sources.
  3. Review the checkpoint-specific license and base-model qualifications.
  4. Define a representative prompt and evaluation set with expected outcomes.
  5. Benchmark on target hardware with the model, quantization, context, and concurrency pinned.
  6. Test Ollama request and response compatibility field by field.
  7. Add access control, network restrictions, logs, health checks, and rollback.
  8. Compare the measured local result with the current hosted alternative before cutover.

Source-backed evidence

Use Ollama artifact size and model-card context as screening inputs, not exact VRAM or throughput guarantees; benchmark on target hardware with pinned model, quantization, context and concurrency.

The Ollama DeepSeek library owns current tag and artifact information. The DeepSeek and Qwen model cards own checkpoint identity, license, parameter, context, and publisher-evaluation statements. Ollama's compatibility documentation owns the supported API surface and its limitations. None of those sources is a reproducible benchmark of your hardware or a current cloud-price comparison.

A reproducible benchmark worksheet

InputRecord before testing
ModelExact tag, digest if available, and model-card revision
RuntimeOllama version and host operating system
QuantizationExact artifact or quantization label
ContextConfigured context and actual prompt length
HardwareCPU, GPU, memory, driver, and power mode
ConcurrencyNumber of parallel requests and queue policy
TasksRepresentative prompts with expected acceptance criteria
OutputsAccuracy findings, latency distribution, failures, and resource use

This worksheet replaces unverified price, payback, throughput, concurrency, latency, and quality-ranking tables.

Methodology

OSSAlt reviewed five current primary sources on 2026-08-21: the Ollama DeepSeek-R1 and Qwen3 libraries, the DeepSeek-R1 and Qwen2.5-Coder-32B-Instruct model cards, and Ollama's API compatibility documentation. Publisher claims are labeled as such. Hardware fit, speed, latency, concurrency, cloud prices, and cross-model quality rankings were removed because no common dated benchmark or pricing packet was supplied.

Source-backed FAQ

Which DeepSeek-R1 tag should I use?

Choose an explicit tag that fits the task and passes your hardware benchmark. Do not rely on latest if repeatability matters.

Does the model-card context value guarantee the same usable context in Ollama?

No. It is a screening input. Runtime configuration, memory, prompt shape, and workload still need testing.

Can an OpenAI client switch to Ollama without changes?

Only after compatibility testing. Ollama documents chat completions, streaming, tools, and reasoning controls, but it also documents unsupported fields and non-stateful Responses limitations.

Which checkpoint is the top coding model?

This evidence set does not rank models under a common independent harness. Test the exact coding tasks, languages, context, and tools your team uses.

Sources

Browse AI self-hosting guides at OSSAlt.

The SaaS-to-Self-Hosted Migration Guide (Free PDF)

Step-by-step: infrastructure setup, data migration, backups, and security for 15+ common SaaS replacements. Used by 300+ developers.

Join 300+ self-hosters. Unsubscribe in one click.