Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
07fdde7
Update: Pydantic version from 1.10.4 to 1.10.7 (#3615)
Ali1858 Jul 29, 2023
c2c1318
Changes for orcacode experiment (#3612)
andreaskoepf Jul 29, 2023
b9ac30a
Added support for LLongMA (#3616)
shahules786 Jul 29, 2023
7a68b59
Custom instructions feature (#3597)
draganjovanovich Jul 30, 2023
2d058dd
update ru-translation (#3619)
echo0x22 Jul 31, 2023
7fc07d3
Bump @storybook/testing-library from 0.1.0 to 0.2.0 in /website (#3620)
dependabot[bot] Aug 1, 2023
2d06124
Bump pino-pretty from 10.0.0 to 10.2.0 in /website (#3622)
dependabot[bot] Aug 1, 2023
aa96100
Fix Typo (#3610)
Aug 1, 2023
65f5c2b
Add Wikipedia Persian Dataset (#3629)
pourmand1376 Aug 3, 2023
0d4adb5
Add Isna Persian Dataset (#3631)
pourmand1376 Aug 3, 2023
aae9e5e
Revert "Cleanup `handle_worker()` in preparation for #2815 (Stop gene…
yk Aug 8, 2023
d7111bc
To support pip install for model_training package. (#3643)
zhanglu0704 Aug 8, 2023
cbb46c1
Added plugin repositories to add-plugin menu (#3638)
yk Aug 8, 2023
80c9ca5
Add paper acknowledgement form (#3637)
yk Aug 8, 2023
a2a7448
Add rope-scaling parameters to export_model.py (#3618)
andreaskoepf Aug 8, 2023
9cee57d
Bump eslint from 8.41.0 to 8.46.0 in /website (#3642)
dependabot[bot] Aug 8, 2023
3b30c04
Bump react-hook-form from 7.44.3 to 7.45.4 in /website (#3641)
dependabot[bot] Aug 8, 2023
9a208ea
Web App Manifest - Save as desktop or mobile app (#3632)
sun-jay Aug 8, 2023
c4c9f37
Long context datasets (#3646)
shahules786 Aug 9, 2023
90e442a
Make sure eval subset is sampled without replacing (#3651)
andreaskoepf Aug 14, 2023
f747529
Add loader for megacode2 (rombodawg/LosslessMegaCodeTrainingV2_1m_Evo…
andreaskoepf Aug 14, 2023
f182486
Add pretokenizer utility (#3654)
andreaskoepf Aug 15, 2023
0a008ab
Add megacode3 dataset (#3656)
andreaskoepf Aug 18, 2023
2cc90ff
fix: unsupported message typo (#3658)
0o001 Aug 18, 2023
cf166c4
Add dataset adapter for loading dolly15k_multilingual dataset (#3660)
andreaskoepf Aug 18, 2023
8c0e1a3
More translations into german (#3662)
Lo10Th Aug 22, 2023
d613c81
Support ChatML prompt format in worker (#3668)
olliestanley Aug 28, 2023
adcf8dc
Fixes for worker prompt truncation in ChatML case (#3673)
olliestanley Aug 29, 2023
fd9ecfa
Fix german leaderboard translation (#3674)
andreaskoepf Aug 29, 2023
7e40ee3
Dev zhanglu (#3649)
zhanglu0704 Aug 29, 2023
709bb99
[Fix] Consume much more gpt memory running eval_rm (#3614)
SingL3 Aug 30, 2023
5e9ba5f
add blog of video about project being completed (#3719)
andrewm4894 Oct 25, 2023
7558fa8
add note to readme about project being completed (#3724)
andrewm4894 Nov 7, 2023
de1f5c3
Update docs for current project status. (#3730)
someone13574 Nov 12, 2023
1f621d3
added bye page
yk Nov 25, 2023
fcd2453
pre-commit
yk Nov 25, 2023
5c0efa6
added dashboard redirect
yk Nov 25, 2023
46520c3
deployment workflows for bye
yk Nov 25, 2023
29c50ee
ansible fix
yk Nov 25, 2023
ca7dc79
apparently, prod ignores redirects or process env
yk Nov 25, 2023
e1769c1
next build fixes
yk Nov 25, 2023
f1e6ed9
add note about oasst2 being available (#3743)
andrewm4894 Jan 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/deploy-to-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
BACKEND_CORS_ORIGINS: ${{ vars.BACKEND_CORS_ORIGINS }}
WEB_INFERENCE_SERVER_HOST: ${{ vars.WEB_INFERENCE_SERVER_HOST }}
WEB_ENABLE_CHAT: ${{ vars.WEB_ENABLE_CHAT }}
WEB_BYE: ${{ vars.WEB_BYE }}
WEB_ENABLE_DRAFTS_WITH_PLUGINS: ${{ vars.WEB_ENABLE_DRAFTS_WITH_PLUGINS }}
WEB_NUM_GENERATED_DRAFTS: ${{ vars.WEB_NUM_GENERATED_DRAFTS }}
WEB_CURRENT_ANNOUNCEMENT: ${{ vars.WEB_CURRENT_ANNOUNCEMENT }}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<img width="auto" height="50px" src="https://github.com/LAION-AI/Open-Assistant/blob/main/assets/logo_crop.png"/>
</h1>

<blockquote>
<p>:memo: <strong>NOTE</strong>: OpenAssistant is completed, and the project is now finished. Thank you to everyone who contributed! Check out our <a href="https://projects.laion.ai/Open-Assistant/blog/2023/10/25/open-assistant-is-completed">blog post</a> for more information. The final published oasst2 dataset can be found on HuggingFace at <a href="https://huggingface.co/datasets/OpenAssistant/oasst2">OpenAssistant/oasst2</a></p>
</blockquote>

<div align="center">

<a href="https://github.com/LAION-AI/Open-Assistant/stargazers">![GitHub Repo stars](https://img.shields.io/github/stars/LAION-AI/Open-Assistant?style=social)</a>
Expand Down
1 change: 1 addition & 0 deletions ansible/deploy-to-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
INFERENCE_SERVER_API_KEY:
"{{ lookup('ansible.builtin.env', 'WEB_INFERENCE_SERVER_API_KEY') }}"
ENABLE_CHAT: "{{ lookup('ansible.builtin.env', 'WEB_ENABLE_CHAT') }}"
BYE: "{{ lookup('ansible.builtin.env', 'WEB_BYE') }}"
ENABLE_DRAFTS_WITH_PLUGINS:
"{{ lookup('ansible.builtin.env',
'WEB_ENABLE_DRAFTS_WITH_PLUGINS')}}"
Expand Down
4 changes: 2 additions & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ loguru==0.6.0
numpy>=1.23.2
prometheus-fastapi-instrumentator==5.9.1
psycopg2-binary==2.9.5
pydantic==1.10.4
pydantic[email]==1.10.4
pydantic==1.10.7
pydantic[email]==1.10.7
python-dotenv==0.21.0
python-jose[cryptography]==3.3.0
redis==4.5.5
Expand Down
2 changes: 2 additions & 0 deletions data/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"tv_dialogue": "sedthh/tv_dialogue", # TV and Movie dialogues and transcripts
"fd_dialogue": "sedthh/fd_dialogue", # TV and Movie dialogues and transcripts from ForeverDreaming
"tlcv2.0_oa": "pythainlp/tlcv2.0_oa", # Thai classical literature texts
"fa-isna-news": "pourmand1376/isna-news", # Isna Persian News
"fa-wikipedia": "pourmand1376/fa-wikipedia", # Farsi Wikipedia texts
}

INSTRUCTION_DATASETS = {
Expand Down
2 changes: 2 additions & 0 deletions data/datasets/fa-isna-news/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This text-only dataset is crawled from [Isna news](https://isna.ir/). This is
biggest farsi news agency and thus the text is pretty clean.
6 changes: 6 additions & 0 deletions data/datasets/fa-wikipedia/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This dataset is crawled from
[farsi wikipedia](https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C).
This is valuable clean text data in persian (Farsi). It contains information
about all subjects.

It has 2.53M Articles.
2 changes: 1 addition & 1 deletion docs/blog/2023-02-11-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ I thought it would make sense to document our architecture as a blog post, since
it would be easily visible for everyone, and it would also be nice to look back
a couple months from now and see how stuff has changed :)

A lot of work was done in the past couple of week to establish the needed
A lot of work was done in the past couple of weeks to establish the needed
infrastructure both for data collection and inference purposes. Thanks to
everyone, and especially community members who supported us so far!

Expand Down
20 changes: 20 additions & 0 deletions docs/blog/2023-10-25-open-assistant-is-completed/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: OpenAssistant is Completed!
description: OpenAssistant is Completed!
authors: [yk]
tags: [open-assistant, youtube]
image: https://img.youtube.com/vi/gqtmUHhaplo/0.jpg
---

import ReactPlayer from "react-player";

<ReactPlayer
controls
width="100%"
url="https://www.youtube.com/embed/gqtmUHhaplo"
/>

The final published oasst2 dataset can be found on HuggingFace at
[OpenAssistant/oasst2](https://huggingface.co/datasets/OpenAssistant/oasst2).

<!--truncate-->
186 changes: 29 additions & 157 deletions docs/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ In this page, there are some of the most frequently asked questions.

</summary>

We have released candidate supervised finetuning (SFT) models using both Pythia
and LLaMa, as well as candidate reward models for reinforcement learning from
human feedback training using Pythia, which you can try, and are beginning the
process of applying (RLHF). We have also released the first version of the
OpenAssistant Conversations dataset
[here](https://huggingface.co/datasets/OpenAssistant/oasst1).
This project has concluded. We have released supervised finetuning (SFT) models
using Llama 2, LLaMa, Falcon, Pythia, and StabeLM as well as reinforcement
learning from human feedback trained models and reward models, all of which are
available at [here](https://huggingface.co/OpenAssistant). In addition to our
models, we have released three datasets from OpenAssistant conversations, and a
[research paper](https://arxiv.org/abs/2304.07327).

</details>

Expand All @@ -31,9 +31,8 @@ OpenAssistant Conversations dataset

</summary>

You can play with our best candidate model
[here](https://open-assistant.io/chat) and provide thumbs up/down responses to
help us improve the model in future!
Our online demonstration is no longer available, but the models remain available
to download [here](https://huggingface.co/OpenAssistant).

</details>

Expand All @@ -44,37 +43,18 @@ help us improve the model in future!

</summary>

The candidate Pythia SFT models are
All of our models are
[available on HuggingFace](https://huggingface.co/OpenAssistant) and can be
loaded via the HuggingFace Transformers library. As such you may be able to use
them with sufficient hardware. There are also spaces on HF which can be used to
chat with the OA candidate without your own hardware. However, these models are
not final and can produce poor or undesirable outputs.
loaded via the HuggingFace Transformers library or other runners if converted.
As such you may be able to use them with sufficient hardware. There are also
spaces on HF which can be used to chat with the OA candidate without your own
hardware. However, some of these models are not final and can produce poor or
undesirable outputs.

LLaMa SFT models cannot be released directly due to Meta's license but XOR
LLaMa (v1) SFT models cannot be released directly due to Meta's license but XOR
weights are released on the HuggingFace org. Follow the process in the README
there to obtain a full model from these XOR weights.

</details>

<details>
<summary>

### Is there an API available?

</summary>

There is no API currently available for Open Assistant. Any mention of an API in
documentation is referencing the website's internal API. We understand that an
API is a highly requested feature, but unfortunately, we can't provide one at
this time due to a couple of reasons. Firstly, the inference system is already
under high load and running off of compute from our sponsors. Secondly, the
project's primary goal is currently data collection and model training, not
providing a product.

However, if you're looking to run inference, you can host the model yourself
either on your own hardware or with a cloud provider. We appreciate your
understanding and patience as we continue to develop this project.
there to obtain a full model from these XOR weights. Llama 2 models are not
required to be XORed.

</details>

Expand Down Expand Up @@ -102,15 +82,13 @@ inference setup and UI locally unless you wish to assist in development.
All Open Assistant code is licensed under Apache 2.0. This means it is available
for a wide range of uses including commercial use.

The Open Assistant Pythia based models are released as full weights and will be
licensed under the Apache 2.0 license.

The Open Assistant LLaMa based models will be released only as delta weights
meaning you will need the original LLaMa weights to use them, and the license
restrictions will therefore be those placed on the LLaMa weights.
Open Assistant models are released under the license of their respective base
models, be that Llama 2, Falcon, Pythia, or StableLM. LLaMa (not 2) models are
only released as XOR weights, meaning you will need the original LLaMa weights
to use them.

The Open Assistant data is released under a Creative Commons license allowing a
wide range of uses including commercial use.
The Open Assistant data is released under Apache-2.0 allowing a wide range of
uses including commercial use.

</details>

Expand Down Expand Up @@ -138,9 +116,8 @@ you to everyone who has taken part!

</summary>

The model code, weights, and data are free. We are additionally hosting a free
public instance of our best current model for as long as we can thanks to
compute donation from Stability AI via LAION!
The model code, weights, and data are free. Our free public instance of our best
models is not longer available due to the project's conclusion.

</details>

Expand All @@ -151,10 +128,9 @@ compute donation from Stability AI via LAION!

</summary>

The current smallest (Pythia) model is 12B parameters and is challenging to run
on consumer hardware, but can run on a single professional GPU. In future there
may be smaller models and we hope to make progress on methods like integer
quantisation which can help run the model on smaller hardware.
The current smallest models are 7B parameters and are challenging to run on
consumer hardware, but can run on a single professional GPU or be quantized to
run on more widely available hardware.

</details>

Expand All @@ -165,13 +141,7 @@ quantisation which can help run the model on smaller hardware.

</summary>

If you want to help in the data collection for training the model, go to the
website [https://open-assistant.io/](https://open-assistant.io/).

If you want to contribute code, take a look at the
[tasks in GitHub](https://github.com/orgs/LAION-AI/projects/3) and comment on an
issue stating your wish to be assigned. You can also take a look at this
[contributing guide](https://github.com/LAION-AI/Open-Assistant/blob/main/CONTRIBUTING.md).
This project has now concluded.

</details>

Expand All @@ -190,104 +160,6 @@ well as accelerate, DeepSpeed, bitsandbytes, NLTK, and other libraries.

</details>

## Questions about the data collection website

<details>
<summary>

### Can I use ChatGPT to help in training Open Assistant, for instance, by generating answers?

</summary>

No, it is against their terms of service to use it to help train other models.
See
[this issue](https://github.com/LAION-AI/Open-Assistant/issues/471#issuecomment-1374392299).
ChatGPT-like answers will be removed.

</details>

<details>
<summary>

### What should I do if I don't know how to complete the task as an assistant?

</summary>
Skip it.
</details>

<details>
<summary>

### Should I fact check the answers by the assistant?

</summary>

Yes, you should try. If you are not sure, skip the task.

</details>

<details>
<summary>

### How can I see my score?

</summary>

In your [account settings](https://open-assistant.io/account).

</details>

<details>
<summary>

### Can we see how many data points have been collected?

</summary>

You can see a regularly updated interface at
[https://open-assistant.io/stats](https://open-assistant.io/stats).

</details>

<details>
<summary>

### How do I write and label prompts?

</summary>

Check the
[guidelines](https://projects.laion.ai/Open-Assistant/docs/guides/guidelines).

</details>

<details>
<summary>

### Where can I report a bug or create a new feature request?

</summary>

In the [GitHub issues](https://github.com/LAION-AI/Open-Assistant/issues).

</details>

<details>
<summary>

### Why am I not allowed to write about this topic, even though it isn't illegal?

</summary>

We want to ensure that the Open Assistant dataset is as accessible as possible.
As such, it's necessary to avoid any harmful or offensive content that could be
grounds for removal on sites such as Hugging Face. Likewise, we want the model
to be trained to reject as few questions as possible, so it's important to not
include prompts that leave the assistant with no other choice but to refuse in
order to avoid the generation of harmful content.

</details>

## Questions about the development process

<details>
Expand Down
6 changes: 6 additions & 0 deletions docs/docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Notice

**Open Assistant has now concluded.** Please see
[this video](https://www.youtube.com/watch?v=gqtmUHhaplo) for more information.
Thanks you to all those who made this project possible.

# Introduction

> The FAQ page is available at
Expand Down
2 changes: 2 additions & 0 deletions inference/server/oasst_inference_server/routes/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ async def create_assistant_message(
system_prompt=request.system_prompt,
plugins=request.plugins,
plugin_max_depth=settings.plugin_max_depth,
user_profile=request.user_profile,
user_response_instructions=request.user_response_instructions,
)
assistant_message = await ucr.initiate_assistant_message(
parent_id=request.parent_id,
Expand Down
Loading