LMFlow icon indicating copy to clipboard operation
LMFlow copied to clipboard

There is something wrong, please query again

Open karry5921 opened this issue 2 years ago • 4 comments

运行app.py脚本时,出现了这个错误:There is something wrong, please query again。 报错信息如下: 截屏2023-06-27 16 58 11

截屏2023-06-27 10 02 20 微调后生成的文件在截图里所示的目录下,那么,运行app.py时,model_name_or_path的值如何指向微调后的模型,这个值应该是什么呢? 截屏2023-06-27 10 10 14 那如果是lora微调,情况又是怎么样呢?

karry5921 avatar Jun 27 '23 02:06 karry5921

Thanks for your interest in LMFlow! If you would like to use a finetuned model, you can simply change line 27 to model_name_or_path = path-to-your-finetuned-model, which specifies the path to the finetuned model. To load lora model, you may specifies

lora_model_path = path-to-your-finetuned-lora
model_args = ModelArguments(model_name_or_path=model_name_or_path, lora_model_path=lora_model_path)

Hope that can solve your question. Thanks 😄

research4pan avatar Jun 27 '23 12:06 research4pan

Hi, For the first question, it seems you are running an old version of LMFlow, where app.py may not support multi GPUs serving, and you are using multi GPUs. You can either try specify CUDA_VISIBLE_DEVICES=0 to only one device, or update to our latest code to run multi GPUs setting.

SHUMKASHUN avatar Jun 27 '23 13:06 SHUMKASHUN

Got it ! Thank you !

karry5921 avatar Jun 28 '23 01:06 karry5921

Hi ! I solved above issuses, but there is another question. The finetuned model is still unable to give the correct answer. 截屏2023-06-28 10 10 58 I can't figured out what caused this problem . Could you please give me some suggestion?

karry5921 avatar Jun 28 '23 02:06 karry5921

The model you are using is not good. You might want to try our released model first. https://github.com/OptimalScale/LMFlow#53-reproduce-the-result

shizhediao avatar Jul 05 '23 00:07 shizhediao

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks

shizhediao avatar Sep 30 '23 19:09 shizhediao