From 8e4e09edfae134a744539b15d3e3954edc76609c Mon Sep 17 00:00:00 2001 From: HatBoy Date: Fri, 12 Apr 2024 21:38:45 +0800 Subject: [PATCH 1/2] Fix the bug that openxlab platform cannot be deployed. --- app.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 6a650f3..bebcaf3 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,13 @@ import os -os.system('streamlit run web_internlm2.py --server.address=0.0.0.0 --server.port 7860') -#os.system('streamlit run web_demo-aiwei.py --server.address=0.0.0.0 --server.port 7860') + +#model = "EmoLLM_aiwei" +model = "EmoLLM_Model" + +if model == "EmoLLM_aiwei": + os.system("python download_model.py ajupyter/EmoLLM_aiwei") + os.system('streamlit run web_demo-aiwei.py --server.address=0.0.0.0 --server.port 7860') +elif model == "EmoLLM_Model": + os.system("python download_model.py jujimeizuo/EmoLLM_Model") + os.system('streamlit run web_internlm2.py --server.address=0.0.0.0 --server.port 7860') +else: + print("Please select one model") \ No newline at end of file From 507ac64fe09c3fb3db1288b4d6e5f44cb5286add Mon Sep 17 00:00:00 2001 From: HongCheng Date: Sat, 13 Apr 2024 10:00:40 +0900 Subject: [PATCH 2/2] [redo] update model config file links 20b --- README.md | 2 +- README_EN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 759318a..1e7a3be 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ | InternLM2_7B_chat | 全量微调 | [internlm2_chat_7b_full.py](./xtuner_config/internlm2_chat_7b_full.py) | | InternLM2_7B_base | QLORA | [internlm2_7b_base_qlora_e10_M_1e4_32_64.py](./xtuner_config/internlm2_7b_base_qlora_e10_M_1e4_32_64.py) | | InternLM2_1_8B_chat | 全量微调 | [internlm2_1_8b_full_alpaca_e3.py](./xtuner_config/internlm2_1_8b_full_alpaca_e3.py) | -| InternLM2_20B_chat | LORA | | +| InternLM2_20B_chat | LORA |[internlm2_20b_chat_lora_alpaca_e3.py](./xtuner_config/internlm2_20b_chat_lora_alpaca_e3.py)| | Qwen_7b_chat | QLORA | [qwen_7b_chat_qlora_e3.py](./xtuner_config/qwen_7b_chat_qlora_e3.py) | | Qwen1_5-0_5B-Chat | 全量微调 | [qwen1_5_0_5_B_full.py](./xtuner_config/qwen1_5_0_5_B_full.py) | | Baichuan2_13B_chat | QLORA | [baichuan2_13b_chat_qlora_alpaca_e3.py](./xtuner_config/baichuan2_13b_chat_qlora_alpaca_e3.py) | diff --git a/README_EN.md b/README_EN.md index 4d6c396..8bd4562 100644 --- a/README_EN.md +++ b/README_EN.md @@ -52,7 +52,7 @@ | InternLM2_7B_chat | full fine-tuning | [internlm2_chat_7b_full.py](./xtuner_config/internlm2_chat_7b_full.py) | | InternLM2_7B_base | QLORA | [internlm2_7b_base_qlora_e10_M_1e4_32_64.py](./xtuner_config/internlm2_7b_base_qlora_e10_M_1e4_32_64.py) | | InternLM2_1_8B_chat | full fine-tuning | [internlm2_1_8b_full_alpaca_e3.py](./xtuner_config/internlm2_1_8b_full_alpaca_e3.py) | -| InternLM2_20B_chat | LORA | | +| InternLM2_20B_chat | LORA |[internlm2_20b_chat_lora_alpaca_e3.py](./xtuner_config/internlm2_20b_chat_lora_alpaca_e3.py)| | Qwen_7b_chat | QLORA | [qwen_7b_chat_qlora_e3.py](./xtuner_config/qwen_7b_chat_qlora_e3.py) | | Qwen1_5-0_5B-Chat | full fine-tuning | [qwen1_5_0_5_B_full.py](./xtuner_config/qwen1_5_0_5_B_full.py) | | Baichuan2_13B_chat | QLORA | [baichuan2_13b_chat_qlora_alpaca_e3.py](./xtuner_config/baichuan2_13b_chat_qlora_alpaca_e3.py) |