You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* support rerank model finetuning.
Signed-off-by: Ye, Xinyu <[email protected]>
* adapt rerank model to transformers' scheme.
Signed-off-by: Ye, Xinyu <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix typo.
Signed-off-by: Ye, Xinyu <[email protected]>
* refined readme.
Signed-off-by: Ye, Xinyu <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* modify command due to api change.
Signed-off-by: Ye, Xinyu <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Signed-off-by: Ye, Xinyu <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: lkk <[email protected]>
Copy file name to clipboardExpand all lines: comps/finetuning/README.md
+38-11Lines changed: 38 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# LLM Fine-tuning Microservice
1
+
# Fine-tuning Microservice
2
2
3
-
LLM Fine-tuning microservice involves adapting a base model to a specific task or dataset to improve its performance on that task.
3
+
Fine-tuning microservice involves adapting a model to a specific task or dataset to improve its performance on that task, we currently supported instruction tuning for LLMs, finetuning for reranking and embedding models.
4
4
5
5
## 🚀1. Start Microservice with Python (Optional 1)
Assuming a training file`alpaca_data.json`is uploaded, it can be downloaded in [here](https://github.com/tatsu-lab/stanford_alpaca/blob/main/alpaca_data.json), the following script launches a finetuning job using `meta-llama/Llama-2-7b-chat-hf` as base model:
91
+
Download a training file, such as `alpaca_data.json`for instruction tuning and upload it to the server with below command, this file can be downloaded in [here](https://github.com/tatsu-lab/stanford_alpaca/blob/main/alpaca_data.json):
For reranking and embedding models finetuning, the training file [toy_finetune_data.jsonl](https://github.com/FlagOpen/FlagEmbedding/blob/master/examples/finetune/toy_finetune_data.jsonl) is an toy example.
99
+
100
+
## 3.2 Create fine-tuning job
96
101
102
+
After a training file like `alpaca_data.json` is uploaded, use the following command to launch a finetuning job using `meta-llama/Llama-2-7b-chat-hf` as base model:
0 commit comments