-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yuanmingqi
committed
Oct 10, 2023
1 parent
705a431
commit 8084fea
Showing
7 changed files
with
54 additions
and
126 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,43 @@ | ||
# rllte-copilot | ||
Large language model (LLM)-empowered copilot for RL. | ||
<div align=center> | ||
<br> | ||
<img src='./images/copilot_logo.png' style="width: 75%"> | ||
<br> | ||
|
||
RLLTE Copilot: LLM-Empowered Assistant for RL | ||
</div> | ||
|
||
# Introduction | ||
<img src="./images/arch.png" align="right" width="60%"/> | ||
|
||
**Copilot** is the first attempt to integrate an LLM into an RL framework, which aims to help developers reduce the learning cost and facilitate application construction. We follow the design of [LocalGPT](https://github.com/PromtEngineer/localGPT) that interacts privately with documents using the power of GPT. The source documents are first ingested by an instructor embedding tool to create a local vector database. After that, a local LLM is used to understand questions and create answers based on the database. In practice, we utilize Vicuna-7B as the base model and build the database using various corpora, including API documentation, tutorials, and RL references. The powerful understanding ability of the LLM model enables the copilot to accurately answer questions about the use of the framework and any other questions of RL. Moreover, no additional training is required, and users are free to replace the base model according to their computing power. | ||
|
||
# Usage | ||
## Online | ||
We plan to deploy the **Copilot** on the Hugging Face platform. Currently, we're dealing with the problem of computing power. The online server is coming soon. | ||
|
||
## Offline | ||
|
||
Firstly, clone the repository by: | ||
``` sh | ||
git clone https://github.com/RLE-Foundation/rllte-copilot.git | ||
``` | ||
|
||
Then install the necessary dependencies: | ||
``` sh | ||
pip install -r requirements.txt | ||
``` | ||
|
||
Finally, open a terminal and run the `app.py`: | ||
``` sh | ||
python app.py | ||
``` | ||
|
||
After that, launch the browser and you'll see the following page: | ||
|
||
<div align=center> | ||
<br> | ||
<img src='./images/screenshot.png' style="width: 90%"> | ||
<br> | ||
|
||
RLLTE Copilot: LLM-Empowered Assistant for RL | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ Streamlit-extras | |
|
||
# Excel File Manipulation | ||
openpyxl | ||
gradio | ||
gradio==3.44.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters