-
Notifications
You must be signed in to change notification settings - Fork 943
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-ci-e2e-test-containers
- Loading branch information
Showing
181 changed files
with
11,920 additions
and
7,718 deletions.
There are no files selected for viewing
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
 | ||
|
||
# FlowerTune LLM Leaderboard | ||
|
||
This repository guides you through the process of federated LLM instruction tuning with a | ||
pre-trained [Mistral-7B](https://huggingface.co/mistralai/Mistral-7B-v0.3) model across 4 domains --- general NLP, finance, medical and code. | ||
|
||
Please follow the instructions to run and evaluate the federated LLMs. | ||
|
||
## Create a new project | ||
|
||
As the first step, please register a Flower account on [Flower website](https://flower.ai/login). | ||
Assuming `flwr` package is already installed on your system (check [here](https://flower.ai/docs/framework/how-to-install-flower.html) for `flwr` installation). | ||
We provide a single-line command to create a new project directory based on your selected challenge: | ||
|
||
```shell | ||
flwr new --framework=flwrtune --username=your_flower_account | ||
``` | ||
|
||
Then you will see a prompt to ask your project name and the choice of LLM challenges from the set of general NLP, finance, medical and code. | ||
Type your project name and select your preferred challenge, | ||
and then a new project directory will be generated automatically. | ||
|
||
### Structure | ||
|
||
After running `flwr new`, you will see a new directory generated with the following structure: | ||
|
||
```bash | ||
<project-name> | ||
├── README.md # <- Instructions | ||
├── pyproject.toml # <- Environment dependencies | ||
└── <project_name> | ||
├── app.py # <- Flower ClientApp/ServerApp build | ||
├── client.py # <- Flower client constructor | ||
├── server.py # <- Sever-related functions | ||
├── models.py # <- Model build | ||
├── dataset.py # <- Dataset and tokenizer build | ||
├── conf/config.yaml # <- User configuration | ||
└── conf/static_config.yaml # <- Static configuration | ||
``` | ||
|
||
This can serve as the starting point for you to build up your own federated LLM fine-tuning methods. | ||
Please note that any modification to the content of `conf/static_config.yaml` is strictly prohibited for those who wish to participate in the [LLM Leaderboard](https://flower.ai/benchmarks/llm-leaderboard). | ||
Otherwise, the submission will not be considered. | ||
|
||
## Run FlowerTune LLM challenges | ||
|
||
With a new project directory created, running a baseline challenge can be done by: | ||
|
||
1. Navigate inside the directory that you just created. | ||
|
||
|
||
2. Follow the `Environments setup` section of `README.md` in the project directory to install project dependencies. | ||
|
||
|
||
3. Run the challenge as indicated in the `Running the challenge` section in the `README.md`. | ||
|
||
## Evaluate pre-trained LLMs | ||
|
||
After the LLM fine-tuning finished, evaluate the performance of your pre-trained LLMs | ||
following the `README.md` in `evaluation` directory. |
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
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
Binary file added
BIN
+35.2 KB
datasets/doc/source/_static/readme/comparison_of_partitioning_schemes.png
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
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
1,122 changes: 1,122 additions & 0 deletions
1,122
datasets/doc/source/how-to-visualize-label-distribution.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.