# OpenPlayground（原 nat.dev）

页面：https://maomu.com/p/nat-dev

自托管语言模型试验台，查看采样参数与输出

资料核验日期：2026-11-24

## 产品介绍

OpenPlayground 是 Nat Friedman 发起的开源语言模型试验台，原 nat.dev 托管入口已失效。官方仓库和安装包可用于本地运行。它适合想在浏览器里查看模型补全文本，或固定同一个提示词再比较不同模型和采样参数的开发者。

## 先在 Settings 启用模型

运行官方 Python 包后，浏览器打开本地 Playground。在 Settings 里选择提供方和模型，启用后再回到 Playground 的 Model 菜单。本次从 PyPI 安装 0.1.5，在独立环境用 Hugging Face 的小型测试模型验证了启用与加载过程，未配置云服务密钥。 [官方自托管说明](https://github.com/nat/openplayground) · [PyPI 发行包](https://pypi.org/project/openplayground/0.1.5/)

![OpenPlayground 本地 Settings 中启用并显示 ready 的 Hugging Face 测试模型](https://static.nofy.cn/maomu/uploads/products/screenshots/8623/6b86a0f5d0fc7b059103ac26d2862b7ecfbdd65718f2113be244a18f0981be96.png)

*图为本次在本机运行的 0.1.5。右侧是已启用的本地模型，其状态为 ready。*

## 用同一个输入观察参数与输出

选好模型后，可以在 Playground 输入一段短文，在右边调节 Maximum Length、Temperature 或 Top P，再提交。要比较两个模型时，官方 Compare 页面可以共用同一个提示词；先固定提示词和参数，再观察差异，便于分清是哪项设置改变了结果。

![OpenPlayground 本地 Playground 的生成文本与右侧采样参数](https://static.nofy.cn/maomu/uploads/products/screenshots/8623/1550492c6ff8039da25d400f2732b3dc175f12b7aa371c4dee96fa53269e05a4.png)

*图为本次使用小型随机测试模型生成的文本。这一测试只验证本地推理和结果回显。模型未经用于写作的训练，出现重复字符属于该测试的输出。 [Hugging Face 测试模型](https://huggingface.co/hf-internal-testing/tiny-random-gpt2)*

PyPI 上的 0.1.5 发布于 2023 年。此次核验覆盖本机的一个模型和参数界面，其他版本的依赖、当前云服务接口和在线托管均未验证可用。计划接远程模型时，先核所选服务商仍支持的接口与调用费用。

## 官网入口

https://github.com/nat/openplayground

## 参考来源

- OpenPlayground 官方仓库：https://github.com/nat/openplayground
- 官方 PyPI 发行包：https://pypi.org/project/openplayground/0.1.5/
- 本机推理源模型：https://huggingface.co/hf-internal-testing/tiny-random-gpt2
- 原 nat.dev 入口：https://nat.dev/
