# LM Studio

**LM Studio** 是一款桌面应用程序，用于在个人电脑上本地发现、下载和运行大语言模型，由位于美国纽约的软件初创公司 Element Labs 公司（Element Labs Inc.）开发。<sup>[1](https://elementlabs.ai/)</sup> 该应用提供图形化聊天界面、面向 [Hugging Face](https://www.edgepedia.org/zh/hugging-face) 的内置模型下载器，以及一个本地 API 服务器，后者暴露兼容 OpenAI、兼容 Anthropic 和原生 REST 端点，因此同一批模型既可用于交互，也可从代码中调用。<sup>[2](https://lmstudio.ai/docs/app/basics/download-model?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[3](https://lmstudio.ai/docs/developer/core/server)</sup> 它可在 Apple Silicon Mac、Windows 和 Linux 上运行，模型下载完成后可完全离线运行。<sup>[4](https://lmstudio.ai/docs/app/system-requirements?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[5](https://lmstudio.ai/docs/app/offline)</sup>

| 关键事实 | 详情 |
|---|---|
| 开发者 | 位于美国纽约的 Element Labs 公司（Element Labs Inc.）<sup>[1](https://elementlabs.ai/)</sup> |
| 首次发布 | 2023 年 5 月，最初供个人免费使用，工作用途需单独商业许可<sup>[6](https://lmstudio.ai/blog/free-for-work)</sup> |
| 许可变更 | 自 2025 年 7 月 8 日起可免费用于工作，无需填写表格或申请许可<sup>[6](https://lmstudio.ai/blog/free-for-work)</sup> |
| 推理引擎 | 基于 llama.cpp 的引擎，外加面向 Apple Silicon 的 MLX 引擎，随 0.3.4 版本（2024 年 10 月 8 日）发布<sup>[7](https://lmstudio.ai/blog/lmstudio-v0.3.4)</sup> |
| API | 兼容 OpenAI、兼容 Anthropic 和原生 REST 端点；TypeScript 与 Python SDK（lmstudio-js、lmstudio-python）<sup>[3](https://lmstudio.ai/docs/developer/core/server)</sup><sup> • </sup><sup>[8](https://lmstudio.ai/blog/introducing-lmstudio-sdk)</sup> |
| 隐私 | 本地聊天、文档和历史记录绝不会被传输；开发者仅在检查更新、搜索和下载模型以及可选的云功能时接收数据<sup>[9](https://lmstudio.ai/app-privacy)</sup> |
| 系统要求 | Apple Silicon（M1–M4）配 macOS 14.0+，建议 16 GB 内存；Windows x64/ARM 需支持 AVX2；Linux x64/ARM64 AppImage<sup>[4](https://lmstudio.ai/docs/app/system-requirements?trk=article-ssr-frontend-pulse_little-text-block)</sup> |

## 用途与界面

该应用旨在让人们在自己的硬件上运行开放模型，而无需将数据发送到外部服务。其主窗口是类似 ChatGPT 的聊天界面，用户可在其中创建对话线程，将其整理到文件夹中，并在分屏视图中并排查看；对话以 JSON 文件形式本地存储在 Mac 和 Linux 上的 `~/.lmstudio/conversations/` 下，或 Windows 上的 `%USERPROFILE%\.lmstudio\conversations` 下。<sup>[10](https://lmstudio.ai/docs/app/basics/chat)</sup>

**模型发现与下载。** 内置下载器可按关键词、`user/model` 字符串或完整 URL 在 Hugging Face 上搜索，并提供同一模型的多个量化级别，其中 `Q` 标签（如 `Q3_K_S` 或 `Q8`）表示模型文件被压缩的激进程度，代价是质量有所损失；文档建议在机器能运行的情况下选择 4 位或更高位数的选项。<sup>[2](https://lmstudio.ai/docs/app/basics/download-model?trk=article-ssr-frontend-pulse_little-text-block)</sup> 在应用外下载的模型可通过 `lms import` 导入，或将文件放入预期的 `~/.lmstudio/models/publisher/model/` 目录结构中。<sup>[11](https://lmstudio.ai/docs/app/advanced/import-model)</sup>

**文档。** 用户可将 `.docx`、`.pdf` 和 `.txt` 文件附加到聊天会话中。如果文档能容纳在模型的上下文窗口内，其内容会完整加入；如果文档非常长，LM Studio 会使用检索增强生成（RAG）来选择相关部分作为上下文。所有文档处理都在本地进行。<sup>[12](https://lmstudio.ai/docs/app/basics/rag?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[5](https://lmstudio.ai/docs/app/offline)</sup>

## 推理引擎

LM Studio 支持多种推理引擎。最初的引擎基于 llama.cpp，该项目也是 Ollama 等同类工具的基础，可处理 GGUF 模型文件。<sup>[13](https://insiderllm.com/pdfs/llamacpp-hugging-face-ggml-acquisition.pdf)</sup> 2024 年 10 月，0.3.4 版本为 Apple Silicon Mac 增加了 MLX 引擎，报告称在 M3 Max 上运行 Llama 3.2 1B 时速度约为每秒 250 个词元，并通过 Outlines 库提供受 JSON 约束的输出。<sup>[7](https://lmstudio.ai/blog/lmstudio-v0.3.4)</sup> 2025 年 5 月，MLX 引擎被重新架构为基于 `mlx-lm` 和 `mlx-vlm` 的统一多模态设计，其源代码可在公司的开源 `mlx-engine` 仓库中获取。<sup>[14](https://lmstudio.ai/blog/unified-mlx-engine)</sup>

加载时设置可按模型调整，包括 GPU 卸载、上下文长度和 Flash Attention，并可保存为默认值。<sup>[15](https://lmstudio.ai/docs/app/advanced/per-model)</sup> REST 加载端点暴露相同的控制项，包括 `offload_kv_cache_to_gpu`、`eval_batch_size`，以及混合专家模型在推理时使用的专家数量。<sup>[16](https://lmstudio.ai/docs/developer/rest/load)</sup> 0.3.10 版本（2025 年 2 月）为两个引擎增加了推测解码，0.3.14 版本（2025 年 3 月）增加了多 GPU 控制，可启用或禁用特定 GPU 并选择分配策略。<sup>[17](https://lmstudio.ai/blog)</sup>

## 本地服务器与开发者工具

从开发者选项卡，或使用命令 `lms server start`，LM Studio 会在 localhost 上运行一个 API 服务器，通过 HTTP 为已加载的模型提供服务。<sup>[3](https://lmstudio.ai/docs/developer/core/server)</sup> 客户端可通过原生 REST API、TypeScript SDK `lmstudio-js`、Python SDK `lmstudio-python`，或模仿 OpenAI 和 Anthropic API 的兼容端点连接，这让为这些服务构建的工具（如 [Claude Code](https://www.edgepedia.org/zh/claude-code)）能够针对本地模型运行。<sup>[3](https://lmstudio.ai/docs/developer/core/server)</sup><sup> • </sup><sup>[17](https://lmstudio.ai/blog)</sup> 这些 SDK 于 2025 年 3 月 3 日发布 1.0.0 版本，暴露与桌面应用相同的能力，包括精确控制模型在内存中的加载和卸载。<sup>[8](https://lmstudio.ai/blog/introducing-lmstudio-sdk)</sup><sup> • </sup><sup>[18](https://lmstudio.ai/docs/python/manage-models/loading)</sup>

`lms` 命令行工具于 2024 年 5 月推出，处理模型下载、后台守护进程、服务器启动和脚本化工作流；0.3.5 版本（2024 年 10 月）增加了无头模式、按需加载模型和服务器自动启动，使应用无需打开窗口即可充当后台 LLM 提供者。<sup>[17](https://lmstudio.ai/blog)</sup><sup> • </sup><sup>[19](https://lmstudio.ai/blog/lmstudio-v0.3.5)</sup> 服务器可通过 `lms server start --bind 0.0.0.0` 绑定到 localhost 之外，以服务同一网络上的其他设备，文档将此配置标记为需要身份验证。<sup>[20](https://lmstudio.ai/docs/cli/serve/server-start)</sup> API 令牌身份验证、CORS 控制以及带自动卸载的即时模型加载均在“服务器设置”中配置。<sup>[21](https://lmstudio.ai/docs/developer/core/server/settings)</sup><sup> • </sup><sup>[22](https://lmstudio.ai/docs/developer/core/authentication)</sup>

**工具调用与 MCP。** 0.3.6 版本（2025 年 1 月）引入了测试版工具调用 API，0.3.17 版本（2025 年 6 月）增加了[模型上下文协议](https://www.edgepedia.org/zh/model-context-protocol)（MCP）主机支持，允许本地模型通过配置的 MCP 服务器调用外部工具。<sup>[17](https://lmstudio.ai/blog)</sup> 从 0.4.0 版本起，MCP 服务器也可通过 API 调用，既可作为每次请求的临时服务器，也可作为在 `mcp.json` 中预配置的服务器，并带有 `allowed_tools` 字段以限制模型可调用的工具。<sup>[23](https://lmstudio.ai/docs/developer/core/mcp)</sup>

## 0.4.0 版本与部署

2026 年 1 月 28 日发布的 0.4.0 版本重新架构了软件，将图形界面与核心分离。它引入了 `llmster`，即将核心打包为独立的服务器原生守护进程，可在云服务器或持续集成中部署而无需 GUI；还引入了使用连续批处理而非排队来向同一模型发送并行请求、新的有状态 `/v1/chat` REST 端点，以及带有聊天导出和分屏视图的焕新界面。<sup>[24](https://lmstudio.ai/blog/0.4.0)</sup>

## 隐私

桌面隐私政策声明，当模型在本地运行时，消息、聊天历史和文档绝不会从用户系统传输出去。公司仅在以下情况接收数据：应用检查更新时；用户搜索或下载模型时（以匿名形式）；用户发送支持邮件时；以及如果购买并使用付费云功能（如云模型或网络搜索）时，请求会发送出去，这些请求在零数据保留条款下临时处理，请求完成后不会保留。<sup>[9](https://lmstudio.ai/app-privacy)</sup> 政策还声明，应用不包含遥测或用户特定跟踪，因此公司无法满足数据主体关于复制或删除用户数据的请求。<sup>[9](https://lmstudio.ai/app-privacy)</sup>

## 近期发展

2026 年的几项变化将产品扩展到桌面之外。2026 年 4 月，Locally AI 应用加入 LM Studio，专注于 Apple 平台；2026 年 6 月，LM Link 在 iPhone 和 iPad 上通过 LM Studio 的移动应用 Locally 提供，该功能让本地机器使用远程设备上运行的模型，如同本地加载一样。<sup>[17](https://lmstudio.ai/blog)</sup><sup> • </sup><sup>[25](https://lmstudio.ai/docs/developer/core/lmlink)</sup> 2026 年 3 月，LM Studio 增加了对 NVIDIA DGX Station GB300 的支持，将开放模型推理带到数据中心之外的基于 Blackwell 的工作站形态。<sup>[17](https://lmstudio.ai/blog)</sup> 2026 年 7 月，公司宣布了 LM Studio Bionic，这是一款为开放模型构建的 AI 智能体应用。<sup>[26](https://lmstudio.ai/blog/introducing-lm-studio-bionic)</sup> MLX 引擎在智能体用途方面持续改进：mlx-engine v1.8.5 增加了 [KV 缓存](https://www.edgepedia.org/zh/kv-cache)检查点，公司报告称这显著提高了重复、长上下文智能体工作流的性能。<sup>[17](https://lmstudio.ai/blog)</sup>

## References

1. [Element Labs Inc. – LM Studio company page](https://elementlabs.ai/)
2. [Download an LLM – LM Studio docs](https://lmstudio.ai/docs/app/basics/download-model?trk=article-ssr-frontend-pulse_little-text-block)
3. [LM Studio as a Local LLM API Server – LM Studio docs](https://lmstudio.ai/docs/developer/core/server)
4. [System Requirements – LM Studio docs](https://lmstudio.ai/docs/app/system-requirements?trk=article-ssr-frontend-pulse_little-text-block)
5. [Offline Operation – LM Studio docs](https://lmstudio.ai/docs/app/offline)
6. [LM Studio is free for use at work – LM Studio Blog](https://lmstudio.ai/blog/free-for-work)
7. [LM Studio 0.3.4 ships with Apple MLX – LM Studio Blog](https://lmstudio.ai/blog/lmstudio-v0.3.4)
8. [Introducing lmstudio-python and lmstudio-js – LM Studio Blog](https://lmstudio.ai/blog/introducing-lmstudio-sdk)
9. [LM Studio Desktop App Privacy Policy](https://lmstudio.ai/app-privacy)
10. [Manage chats – LM Studio docs](https://lmstudio.ai/docs/app/basics/chat)
11. [Import Models – LM Studio docs](https://lmstudio.ai/docs/app/advanced/import-model)
12. [Chat with Documents – LM Studio docs](https://lmstudio.ai/docs/app/basics/rag?trk=article-ssr-frontend-pulse_little-text-block)
13. [What Changes (llama.cpp / Hugging Face analysis) – InsiderLLM](https://insiderllm.com/pdfs/llamacpp-hugging-face-ggml-acquisition.pdf)
14. [Introducing the unified multi-modal MLX engine architecture – LM Studio Blog](https://lmstudio.ai/blog/unified-mlx-engine)
15. [Per-model Defaults – LM Studio docs](https://lmstudio.ai/docs/app/advanced/per-model)
16. [Load a model – LM Studio REST API docs](https://lmstudio.ai/docs/developer/rest/load)
17. [LM Studio Blog (release notes index)](https://lmstudio.ai/blog)
18. [Manage Models in Memory – LM Studio Python SDK docs](https://lmstudio.ai/docs/python/manage-models/loading)
19. [LM Studio 0.3.5 – LM Studio Blog](https://lmstudio.ai/blog/lmstudio-v0.3.5)
20. [lms server start – LM Studio CLI docs](https://lmstudio.ai/docs/cli/serve/server-start)
21. [Server Settings – LM Studio docs](https://lmstudio.ai/docs/developer/core/server/settings)
22. [Authentication – LM Studio docs](https://lmstudio.ai/docs/developer/core/authentication)
23. [Using MCP via API – LM Studio docs](https://lmstudio.ai/docs/developer/core/mcp)
24. [Introducing LM Studio 0.4.0 – LM Studio Blog](https://lmstudio.ai/blog/0.4.0)
25. [Using LM Link – LM Studio docs](https://lmstudio.ai/docs/developer/core/lmlink)
26. [Introducing LM Studio Bionic – LM Studio Blog](https://lmstudio.ai/blog/introducing-lm-studio-bionic)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 19, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI products and assistants › AI agents and developer tools

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/lm-studio

English original: https://www.edgepedia.org/lm-studio
