百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

openplayground

> 编程语言
开源

一个可以在你的笔记本电脑上运行的 LLM 练习场

6.4K stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个可以在你的笔记本电脑上运行的 LLM 练习场

openplayground

一个可以在你的笔记本电脑上运行的 LLM 演练场。

https://user-images.githubusercontent.com/111631/227399583-39b23f48-9823-4571-a906-985dbe282b20.mp4

特性

  • 使用来自 OpenAI、Anthropic、Cohere、Forefront、HuggingFace、Aleph Alpha、Replicate、Banana 和 LLaMA.cpp 的任意模型。
  • 完整的演练场界面,包括历史记录、参数调节、键盘快捷键和 logprops。
  • 使用相同的提示词并排比较多个模型,单独调节各模型的参数,并可用不同参数重试。
  • 自动检测你 HuggingFace 缓存中的本地模型,并允许你安装新模型。
  • 在手机上也能正常使用。
  • 大概不会毁灭全人类。

在 nat.dev 上试用

试用托管版本:nat.dev。

如何安装和运行

bash
pip install openplayground
openplayground run

或者,将其作为 Docker 容器运行:

bash
docker run --name openplayground -p 5432:5432 -d --volume openplayground:/web/config natorg/openplayground

这会运行一个 Flask 进程,因此你可以添加常见的参数,例如设置不同的端口 openplayground run -p 1235 等。

如何以开发模式运行

bash
git clone https://github.com/nat/openplayground
cd app && npm install && npx parcel watch src/index.html --no-cache
cd server && pip3 install -r requirements.txt && cd .. && python3 -m server.app

Docker

bash
docker build . --tag "openplayground"
docker run --name openplayground -p 5432:5432 -d --volume openplayground:/web/config openplayground

第一个卷是可选的。它用于存储 API 密钥和模型设置。

贡献想法

  • 在 playground 中添加 token 计数器
  • 在 playground 和对比页面中添加成本计数器
  • 测量并显示首 token 时间
  • 使用 GitHub Actions 设置自动构建
  • 每个模型的默认参数配置在 server/models.json 文件中。如果你发现了某个模型更好的默认参数,请提交

Issues· 106 开放

查看全部 Issues在 GitHub 打开
  • #128

    在模型选择下拉菜单中添加令牌限制

    更新于 2026年6月29日
  • #147

    Docker 太大了吧?!

    更新于 2025年4月30日
  • #143

    模型错误 (所有 OpenAI 模型)

    更新于 2024年12月1日
  • #97

    电话验证码无法发送或接收。

    更新于 2024年5月27日
  • #107

    项目还活着吗?

    更新于 2024年5月22日
  • #130

    您能否为 gpt4 vision 和 Claude 3 opus 添加图像输入选项?

    更新于 2024年5月21日
  • #116

    骗子chatgpt4

    更新于 2024年5月19日
  • #129

    如何指定地址和端口?

    更新于 2024年3月19日
  • #126

    真的很喜欢这个想法,这个仓库是否仍在维护中?

    更新于 2024年3月16日
  • #125

    OPENplayground 错误

    更新于 2024年3月8日

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月25日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言