> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> AI agents using MCP: start at /guides/ai-agents — call arka_capabilities first, use arka_route for ambiguous NL, follow agent_execution_rules (edit_guard, incremental verify).
> Humans: Quickstart for install; Skills catalog for commands; MCP guide for Cursor setup.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# 本地模型优化与设置

> 为你的硬件选择并配置可运行的本地模型。

预览一个感知硬件的推荐与设置命令：

```bash theme={null}
arka model-optimizer recommend
arka model-optimizer setup --backend ollama
```

使用 `--apply` 显式应用服务提供商配置：

```bash theme={null}
arka model-optimizer setup --backend ollama --apply
```

`vllm` 用于已配置的 GPU 服务器，`lmstudio` 用于其 OpenAI 兼容的桌面服务器。
Arka 不会隐式下载权重或启动服务。它会打印下一条命令，让设置保持显式且
可回退。

对于部署预览，Arka 支持 Vercel、Netlify、Railway、Render、Hugging Face
Spaces、Cloudflare Workers 和 GitHub Pages：

```bash theme={null}
arka deploy --platform huggingface --json
```


## Related topics

- [研究型优化](/cn/guides/optimization.md)
- [本地模型量化](/cn/guides/quantization.md)
- [本地 LLM 研究笔记](/cn/guides/local-llm-research.md)
- [硬件感知的模型选择](/cn/guides/select-model.md)
- [集成](/cn/guides/integrations.md)
