[KongchangAI]
Tutorials· 2 min read· 1,290 words

Ollama Tutorial: One-Click Local Deployment of DeepSeek, Qwen, and Other LLMs

Ollama Tutorial: One-Click Local Deployment of DeepSeek, Qwen, and Other LLMs

Ollama is an open-source tool that lets you deploy mainstream AI models locally with a single command.

Ollama is an open-source local LLM runner built in Go with over 170K GitHub Stars. It supports mainstream open-source models including DeepSeek, Qwen, Kimi-K2.5, and GLM-5, wrapping complex processes like model quantization and CUDA configuration into a single-command experience. Key advantages include cross-platform support, full data privacy control, single-file deployment, and a thriving community ecosystem, making it ideal for development debugging, model evaluation, and enterprise private deployment scenarios.

What Is Ollama? A One-Minute Overview of This Local LLM Powerhouse

Ollama is an open-source tool for running large language models locally, enabling everyday users to easily run various LLMs on their own computers. The project has earned over 170,000 Stars and nearly 16,000 Forks on GitHub, making it the most popular open-source solution for local AI model deployment. Built entirely in Go, it balances performance with cross-platform capability.

The rise of local LLM tools stems from users' growing concerns about data privacy, inference costs, and network dependency. Traditional cloud-based AI services (like OpenAI API and Claude API) are convenient to use, but every call requires sending data to remote servers, and per-token pricing adds up quickly in high-frequency use cases. As open-source models increasingly rival closed-source ones in quality, local deployment has become a hard requirement for developers and enterprises. Before Ollama, users typically relied on tools like llama.cpp, vLLM, or text-generation-webui, but these solutions often required manual compilation, environment variable configuration, and model format conversions. Ollama wraps all this complexity into a Docker-like streamlined experience, dramatically lowering the barrier to running LLMs locally.

What Models Does Ollama Support?

Full Coverage of Mainstream Open-Source Models

Ollama's model library covers virtually every popular open-source LLM in the AI space:

  • Kimi-K2.5: Moonshot AI's latest flagship model
  • GLM-5: Zhipu AI's newest-generation general-purpose model
  • DeepSeekAd: The DeepSeek series, known for strong reasoning capabilities
  • Qwen: Alibaba's Tongyi Qianwen series, excellent in Chinese
  • Gemma: Google's lightweight open-source model
  • MiniMax: MiniMax's open-source model
  • gpt-oss: Open-source GPT-style models

Between 2023 and 2025, open-source LLMs experienced explosive growth. Meta's LLaMA series kicked off the open-source LLM wave, followed by Mistral, DeepSeek, Alibaba's Qwen, Zhipu's GLM, and others releasing models rivaling GPT-4-level performance. These models are typically released under Apache 2.0 or custom open-source licenses that permit commercial use. Parameter counts range from 0.5B to 600B+, covering everything from edge devices to data centers. Hugging Face, the primary model hosting platform, now hosts over 1 million models, while Ollama's library focuses on verified and optimized quantized versions to ensure stable out-of-the-box performance.

With Ollama's unified command-line interface, you can switch between models from different providers for comparison testing at any time, without setting up separate environments for each.

Continuously Updated Model Library

The Ollama team responds quickly to new model releases. Recently launched models like Kimi-K2.5 and GLM-5 are already included in the supported list. This means you can experience the latest open-source models almost immediately through Ollama.

Why Are Developers Flocking to Ollama?

Dead-Simple Installation — Just a Few Commands

Ollama compresses the complex model deployment process to the absolute minimum. You don't need to manually handle model quantization, configure CUDA environments, or resolve dependency conflicts. All it takes is:

ollama run deepseek-r1

One command downloads and launches the model — truly plug-and-play. For developers who don't want to wrestle with environment setup, this saves enormous amounts of time.

The model quantization mentioned here refers to converting LLMs from high-precision floating point (e.g., FP32, FP16) to low-precision integers (e.g., INT8, INT4). A 7-billion-parameter model requires about 14GB of VRAM at FP16 precision, but only about 4GB after 4-bit quantization, making it possible to run on consumer GPUs or even CPU-only setups. Under the hood, Ollama integrates llama.cpp's quantized inference engine and supports GGUF-format quantized models. Common quantization methods include GPTQ (layer-wise quantization based on second-order information), AWQ (activation-aware weight quantization), and GGML/GGUF (quantization formats optimized for CPU inference). While quantization introduces some precision loss, 4-bit quantized models perform nearly identically to full-precision versions in most conversational and code generation tasks.

CUDA environment configuration has long been a pain point for developers. CUDA (Compute Unified Device Architecture) is NVIDIA's parallel computing platform that allows developers to leverage thousands of GPU compute cores for general-purpose computation. The core operation in LLM inference is matrix multiplication, and GPUs' parallel architecture makes them tens of times faster than CPUs for such computations. However, configuring CUDA requires matching the correct NVIDIA driver version, CUDA Toolkit version, and cuDNN version, with different model frameworks having different version requirements. Ollama encapsulates GPU detection and CUDA calls internally, automatically identifying NVIDIA GPUs in the system and selecting the optimal inference backend (CUDA, Metal, or CPU-only) without manual intervention. For Apple Silicon users, Ollama leverages the Metal API for GPU acceleration.

Complete Control Over Data Privacy

Running locally means all your conversations, code snippets, and business documents never leave your device. This is critical for enterprise teams handling sensitive information or privacy-conscious individual users. It also works perfectly offline, unaffected by network instability.

In industries like finance, healthcare, law, and government, data compliance is a hard requirement. For example, China's Data Security Law and Personal Information Protection Law, the EU's GDPR, and the US's HIPAA all impose strict restrictions on cross-border data transfer and third-party processing. When enterprises use cloud AI services, sensitive data (such as customer information, financial reports, and patent documents) may face leak risks or compliance audit issues. Local/private deployment solutions keep AI inference entirely within an organization's own infrastructure — data never leaves the internal network, fundamentally eliminating data leakage risks. Ollama's lightweight architecture makes it especially suitable for quickly setting up AI services on enterprise intranet servers. Combined with its OpenAI-compatible API interface, it integrates seamlessly with existing enterprise application systems.

Thriving Community Ecosystem

Behind those 170,000+ Stars is a massive and active open-source community. Numerous developers continuously contribute code, fix issues, and adapt new models. This community-driven approach keeps Ollama iterating at a rapid pace.

What Are Ollama's Technical Architecture Advantages?

Ollama's choice of Go as its development language brings several practical benefits:

  • Cross-platform out of the box: Native support for macOS, Linux, and Windows without extra adaptation
  • Single-file deployment: Compiles into one executable with no complex dependency chains
  • Excellent concurrency: Go's goroutine mechanism enables efficient multi-task processing
  • Low memory footprint: Smaller runtime resource overhead compared to Python-based solutions

Go (Golang) was released by Google in 2009, designed specifically for building high-performance network services and system tools. Its core advantages include: static compilation into a single binary that requires no runtime environment on the target machine; a built-in goroutine concurrency model that easily manages thousands of concurrent tasks with each goroutine consuming only about 2KB of stack memory; and a garbage collector that, after years of optimization, achieves microsecond-level latency. Notable infrastructure tools like Docker, Kubernetes, and Terraform are all written in Go, validating its maturity for building cross-platform CLI tools. For Ollama, Go's cross-compilation capability means a single codebase can produce native executables for macOS (ARM/x86), Linux, and Windows — the technical foundation behind Ollama's true "download and run" experience.

What Use Cases Is Ollama Best For?

Use CaseDescription
Local dev debuggingQuickly switch models during AI app development to validate prompt effectiveness
Model evaluation & comparisonCompare DeepSeek, Qwen, and other models side-by-side in a unified environment
Enterprise private deploymentBuild AI services within intranet environments where data never leaves the LAN
Learning & researchExperience cutting-edge LLM capabilities at zero cost
Edge computingProvide local AI inference on devices without network access

Conclusion: For Running LLMs Locally, Ollama Is the Top Choice

Ollama has established itself as the benchmark tool for running large language models locally. From DeepSeek to Qwen, from Kimi-K2.5 to GLM-5, it solves the pain points of local AI deployment with a unified, streamlined approach. Whether you're an individual developer looking to quickly try the latest models, or an enterprise team requiring private deployment, Ollama deserves to be your first choice.

#Ollama#local LLM deployment#DeepSeek#Qwen#run AI models locally#open-source LLM tools#private AI deployment
Share:

Related articles