# ModelRein > ModelRein(原名 LMCP)是控制开源基础模型内部的 HTTP 协议与参考服务器:27 个原语、6 类架构适配器;目前通过 Rescot 桌面应用用 SSH 连接你自己的 GPU 服务器来使用(v0.4)。 ## 关键事实 - PyPI 发布状态:未发布:pypi.org 查询 lmcp 返回 404,也没有公开代码仓库;没有 pip 安装途径(自测实测,截至 2026-11-04,来源 https://pypi.org/pypi/lmcp/json) - Rescot 连接 GPU 服务器的方式:粘贴 SSH 命令 + 密码,内置 SSH 客户端转发到本机 8030–8035 端口之一(自测实测,截至 2026-10-22,来源 git:b175277 desktop/tauri-shell/src-tauri/src/lmcp_ssh.rs) - SSH 密码的保存方式:只在内存中,0 次写盘,不发送给我们(自测实测,截至 2026-10-23,来源 https://learningfind.com/privacy#zh-local) - Rescot 内置的 ModelRein 工具:24 个 lmcp_ 工具(含 introspect、generate、compute_vector_auto、head_mask、layer_route、pipeline)(自测实测,截至 2026-10-22,来源 git:b175277 desktop/tauri-shell/src/agent-core/lmcpTools.ts) - 在 Rescot 里配置 ModelRein 的位置:设置 → 连接 → LMCP 连接:本机卡片(检测 NVIDIA 显卡)+ 连接算力服务器卡片(SSH 命令 + 密码);每台服务器有「任务模式使用」开关(自测实测,截至 2026-11-04,来源 git:a890707 desktop/tauri-shell/src/components/LmcpSettingsSection.tsx) - Rescot 启动 ModelRein 服务的默认命令:在 ~/lmcp 目录用 python3 -m uvicorn server:app --host 127.0.0.1 --port 8030 后台启动,日志写入 ~/lmcp.log;命令可编辑(自测实测,截至 2026-11-04,来源 git:a890707 desktop/tauri-shell/src/lib/lmcp/remote.ts) ## 页面 - [ModelRein 是什么?控制开源大模型内部的协议与参考服务器(原名 LMCP · 27 个原语 · 6 类适配器)](https://rscot.learningfind.com/answers/what-is-modelrein-zh/): ModelRein(原名 LMCP)用一套 HTTP 协议控制开源基础模型的采样、残差流、注意力头、层与 logits,6 类适配器覆盖 40 多个 Hugging Face 模型。当前 v0.4,通过 Rescot 桌面应用使用。 - [模型控制协议和工具调用协议有什么区别:ModelRein 与 MCP 怎么分工、怎么叠加](https://rscot.learningfind.com/answers/model-control-vs-tool-protocol-zh/): 工具调用协议把模型接到外部工具;ModelRein 伸进模型内部控制激活、注意力头、层和 logits。ModelRein 的 MCP 桥暴露 20 个工具,两者可以叠加。 - [怎么用 Rescot 连接自己的 GPU 服务器使用 ModelRein:SSH 命令 + 密码,端口自动转发,一键启动服务](https://rscot.learningfind.com/answers/connect-gpu-server-zh/): 在 Rescot 的设置 → 连接 → LMCP 连接里粘贴云服务商给的 SSH 命令并输入密码,内置 SSH 客户端把 ModelRein 转发到本机 8030–8035 端口,密码只在内存中。ModelRein 没有 pip 安装包。 - [ModelRein 支持哪些开源模型、需要多大显卡(6 类适配器 · 40 多个模型)](https://rscot.learningfind.com/answers/modelrein-models-hardware-zh/): ModelRein 用 6 类适配器覆盖 40 多个开源模型:因果语言模型、图像扩散、视觉语言、音频扩散与视频模型。0.5B 模型可用 CPU,1.5B 约 6 GB 显存,70B 需要 1–2 张 H100。 - [What is ModelRein? An open protocol and runtime for controlling open-source models from the inside (formerly LMCP)](https://rscot.learningfind.com/answers/what-is-modelrein/): ModelRein (formerly LMCP) controls sampling, the residual stream, attention heads, layers and logits of open-source foundation models over one HTTP contract; 6 adapters cover 40+ Hugging Face models. v0.4, used through the Rescot desktop app. - [Model control protocol vs tool-calling protocol: how ModelRein and MCP divide the work and stack](https://rscot.learningfind.com/answers/model-control-vs-tool-protocol/): A tool-calling protocol connects a model to outside tools; ModelRein reaches inside the model to control activations, heads, layers and logits. An ModelRein MCP bridge exposes 20 tools, so the two stack. - [How to connect Rescot to your own GPU server to use ModelRein: SSH command + password, automatic port forwarding](https://rscot.learningfind.com/answers/connect-gpu-server/): In Rescot, open Settings → Connections → LMCP connections, paste the SSH command your cloud gives you and type the password; the built-in SSH client forwards ModelRein to a local port in 8030–8035 and keeps the password in memory. There is no pip package. - [Which open-source models ModelRein supports and how big a GPU you need (6 adapters, 40+ models)](https://rscot.learningfind.com/answers/modelrein-models-hardware/): ModelRein covers 40+ open-source models through 6 adapters: causal LMs, image diffusion, vision-language, audio diffusion and video models. A 0.5B model runs on CPU, 1.5B fits about 6 GB VRAM, 70B needs 1–2 H100s. ## 关于本文件 本文件由事实库编译生成,与页面同源;每条数字均带时间戳与来源文件。 完整答案单元见 /llms-full.txt,结构化事实见 /dataset.jsonld。