Open-Assistant README

The project's README from github.com/LAION-AI/Open-Assistant. As one markdown file: README.md.

Open-Assistant

:memo: NOTE: OpenAssistant is completed, and the project is now finished. Thank you to everyone who contributed! Check out our blog post for more information. The final published oasst2 dataset can be found on HuggingFace at OpenAssistant/oasst2

GitHub Repo stars Docs GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status GitHub release (latest by date) Translate

Table of Contents


What is Open Assistant?

Open Assistant is a project meant to give everyone access to a great chat based large language model.

We believe that by doing this we will create a revolution in innovation in language. In the same way that stable-diffusion helped the world make art and images in new ways we hope Open Assistant can help improve the world by improving language itself.

Useful Links

How To Try It Out

Chatting with the AI

The chat frontend is now live here. Log in and start chatting! Please try to react with a thumbs up or down for the assistant's responses when chatting.

Contributing to Data Collection

The data collection frontend is now live here. Log in and start taking on tasks! We want to collect a high volume of quality data. By submitting, ranking, and labelling model prompts and responses you will be directly helping to improve the capabilities of Open Assistant.

Running the Development Setup Locally (without chat)

You do not need to run the project locally unless you are contributing to the development process. The website link above will take you to the public website where you can use the data collection app and the chat.

If you would like to run the data collection app locally for development, you can set up an entire stack needed to run Open-Assistant, including the website, backend, and associated dependent services, with Docker.

To start the demo, run this in the root directory of the repository (check this FAQ if you have problems):

docker compose --profile ci up --build --attach-dependencies

Note: when running on MacOS with an M1 chip you have to use: DB_PLATFORM=linux/x86_64 docker compose ...

Then, navigate to http://localhost:3000 (It may take some time to boot up) and interact with the website.

Note: If an issue occurs with the build, please head to the FAQ and check out the entries about Docker.

Note: When logging in via email, navigate to http://localhost:1080 to get the magic email login link.

Note: If you would like to run this in a standardized development environment (a "devcontainer") using vscode locally or in a web browser using GitHub Codespaces, you can use the provided .devcontainer folder.

Running the Development Setup Locally for Chat

You do not need to run the project locally unless you are contributing to the development process. The website link above will take you to the public website where you can use the data collection app and the chat.

Also note that the local setup is only for development and is not meant to be used as a local chatbot, unless you know what you are doing.

If you do know what you are doing, then see the inference folder for getting the inference system up and running, or have a look at --profile inference in addition to --profile ci in the above command.

The Vision

We are not going to stop at replicating ChatGPT. We want to build the assistant of the future, able to not only write email and cover letters, but do meaningful work, use APIs, dynamically research information, and much more, with the ability to be personalized and extended by anyone. And we want to do this in a way that is open and accessible, which means we must not only build a great assistant, but also make it small and efficient enough to run on consumer hardware.

The Plan

We want to get to an initial MVP as fast as possible, by following the 3-steps outlined in the InstructGPT paper
  1. Collect high-quality human generated Instruction-Fulfillment samples (prompt + response), goal >50k. We design a crowdsourced process to collect and reviewed prompts. We do not want to train on flooding/toxic/spam/junk/personal information data. We will have a leaderboard to motivate the community that shows progress and the most active users. Swag will be given to the top-contributors.
  2. For each of the collected prompts we will sample multiple completions. Completions of one prompt will then be shown randomly to users to rank them from best to worst. Again this should happen crowd-sourced, e.g. we need to deal with unreliable potentially malicious users. At least multiple votes by independent users have to be collected to measure the overall agreement. The gathered ranking-data will be used to train a reward model.
  3. Now follows the RLHF training phase based on the prompts and the reward model.

We can then take the resulting model and continue with completion sampling step 2 for a next iteration.

Slide Decks

Vision & Roadmap

Important Data Structures

How You Can Help

All open source projects begin with people like you. Open source is the belief that if we collaborate we can together gift our knowledge and technology to the world for the benefit of humanity.

Check out our contributing guide to get started.

Open-Assistant (LAION-AI/Open-Assistant)

Searching Database…

这是什么?OpenAssistant 是一个社区项目,旨在打造一款免费、开放的聊天式 AI 助手,类似 ChatGPT,其训练依托众包的指令数据和 RLHF。该项目现已结束:最终的“oasst2”数据集已发布在 Hugging Face 上,此仓库作为这项工作的记录保留下来。
这是我能运行的聊天机器人,还是已经完成的研究项目?这是一个已经完成的社区项目,包含网页聊天前端、数据收集应用,以及用于训练开源大语言模型的 RLHF 训练流程。它不是你现在可以部署使用的、仍在积极维护的产品。
我该如何在本地运行开发环境?克隆仓库后,在项目根目录运行所提供的 Docker Compose 配置,它会启动网站、后端以及所有依赖服务。在 Apple Silicon 系列 Mac 上,需要相应地在命令前加上前缀。
试用它除了 Docker 还需要别的吗?只需要 Docker 和 Docker Compose;安装说明中没有提到任何 API 密钥。本地运行仅面向贡献者,并不适合日常使用聊天机器人。
这个项目还在积极维护吗?我能把本地环境当成自己的聊天机器人用吗?不能。README 明确标注该项目已完成、已结束,并特别提醒:除非你清楚自己在做什么,否则本地开发环境不应被当作本地聊天机器人使用。
今天谁最能从这个仓库中获益?主要是希望获取众包 RLHF 数据集(“oasst2”),或想研究和复现数据收集与训练流程的研究人员和开发者,而不是在找现成可用助手的人。
oasst2 是什么?oasst2 是 OpenAssistant 通过众包收集的提示词、回复和排序结果的最终数据集,现已发布在 Hugging Face 上,供训练其他助手使用。
为什么要自己做一个新助手,而不直接用 ChatGPT?团队希望打造一个开放、易于获取的替代方案,任何人都可以扩展和个性化定制,并最终做到足够小巧高效,能在消费级硬件上运行,而不必依赖封闭的 API。
训练数据到底是怎么收集的?遵循 InstructGPT 的方法:志愿者提交提示词与回复的配对,然后对每个提示词的多个回复进行排序,用来构建奖励模型,供 RLHF 训练阶段使用。
我还能在线和这个助手聊天吗?README 提到了项目期间上线的公开聊天和数据收集网站,但由于 OpenAssistant 现已结束,目前使用成果的实际途径是通过已发布的 oasst2 数据集,以及 Hugging Face 上基于它衍生的模型。
Creator
LAION-AI
Size
34.6 MB
Stars
37.4K
Age
3y
Commits · 90 Days