> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/lm-studio.md).

# LM Studio

LM Studioは人気の **ローカル大規模モデルのGUI**、さまざまなオープンソースモデルのダウンロード、量子化、そしてローカル端末での推論に対応しています。Cherry Studio はフロントエンドとして LM Studio のローカルサービスに接続でき、ローカルのプライバシーを保ちながら、より良い会話体験を得られます。

## 事前準備

1. から [LM Studio公式サイト](https://lmstudio.ai/) クライアントをダウンロードしてインストールする
2. LM Studioで少なくとも1つモデルをダウンロードする（まずは Llama 3.x 8B または Qwen シリーズを試すのがおすすめ）
3. LM Studio上部を開き **Server** タブをクリックし、 **Start Server**（デフォルトポート `1234`）

## Cherry Studio で設定

* 有効にすると `設定 → モデルサービス`、を見つける **LM Studio** Provider に入って詳細ページへ
* **API アドレス** デフォルトで `http://localhost:1234`で、LM Studioのポートを変更している場合は同様に変更してください
* **API キー** 空欄でも可（ローカル推論に認証は不要）、または LM Studio で認証を有効にしてから入力してください
* をクリック **モデル一覧を取得**、Cherry Studio は LM Studio で読み込まれているモデルを自動で取得します

{% hint style="info" %}
**モデル一覧が空ですか？** LM Studio は **すでに `Load` をメモリに** したモデルのみを公開します。Loadしていないモデルは一覧に表示されません。LM Studio に戻って先にモデルを Load してから、もう一度「モデル一覧を取得」してください。
{% endhint %}

## 推奨の使い方

| シーン                     | おすすめ                                           |
| ----------------------- | ---------------------------------------------- |
| プライバシーに敏感な会話            | 小型モデル（8B以下）を選んでローカルで実行し、完全オフライン                |
| Apple Silicon（Mシリーズチップ） | LM StudioはMLXバックエンドを使用しており、効率はllama.cppより著しく高い |
| 埋め込みモデル                 | LM Studioは埋め込みモデルも読み込め、ナレッジベースに利用できます          |

## Ollamaとの違い

|       | LM Studio     | [Ollama](/docs/jp/pre-basic/providers/ollama.md) |
| ----- | ------------- | ------------------------------------------------ |
| 形態    | GUI + Server  | コマンドライン / バックグラウンドサービス                           |
| モデル管理 | GUIで閲覧/ダウンロード | `ollama pull`                                    |
| API   | OpenAI互換      | OpenAI互換                                         |
| 向いている | GUI操作を好むユーザー  | コマンドライン / Dockerデプロイを好むユーザー                      |

どちらも Cherry Studio に接続できるため、好みに応じて選べばよいです。

## よくある質問

* **Cherry Studio が接続できない**：LM Studio の Server が Start 済みか（緑の点灯状態）を確認してください
* **応答が非常に遅い**：モデルが大きすぎる / VRAM不足です。より小さいモデル、またはより強い量子化（例：Q4 → Q3）に変更してください
* **文字化け / 出力が途中で切れる**：コンテキスト長がモデルの制限を超えています。LM Studioで引き上げてください `n_ctx`

***

### ヘルプの取得とフィードバックの送信

設定または使用中に不明点、バグ、機能改善の提案がある場合は、 [フィードバックと提案](/docs/jp/question-contact/suggestions.md) に記載の公式チャネルをご参照ください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/jp/pre-basic/providers/lm-studio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
