eosphoros-ai / DB-GPT-Hub

A repository that contains models, datasets, and fine-tuning techniques for DB-GPT, with the purpose of enhancing model performance in Text-to-SQL
MIT License
1.46k stars 186 forks source link

运行脚本get_predict_qlora.sh的时候,如何传入模型地址 #71

Open Matter-Charles opened 1 year ago

Matter-Charles commented 1 year ago

Traceback (most recent call last): File "/root/xx/DB-GPT-Hub/predict_qlora.py", line 233, in dataset_name, result = predict() File "/root/xx/DB-GPT-Hub/predict_qlora.py", line 109, in predict ) = parser.parse_args_into_dataclasses() File "/root/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/hf_argparser.py", line 347, in parse_args_into_dataclasses raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {remaining_args}") ValueError: Some specified arguments are not used by the HfArgumentParser: ['--peft_ckpt_path', 'adapterqlora']

wangzaistone commented 1 year ago

i

Traceback (most recent call last): File "/root/xx/DB-GPT-Hub/predict_qlora.py", line 233, in dataset_name, result = predict() File "/root/xx/DB-GPT-Hub/predict_qlora.py", line 109, in predict ) = parser.parse_args_into_dataclasses() File "/root/anaconda3/envs/dbgpt_hub/lib/python3.10/site-packages/transformers/hf_argparser.py", line 347, in parse_args_into_dataclasses raise ValueError(f"Some specified arguments are not used by the HfArgumentParser: {remaining_args}") ValueError: Some specified arguments are not used by the HfArgumentParser: ['--peft_ckpt_path', 'adapterqlora']

if not works , you can difine the model path in the predict_qlora.py , the function : " def get_args(): parser = argparse.ArgumentParser() parser.add_argument( "--base_model_name_or_path", type=str, default="/home/model_files/Llama-2-13b-chat-hf", ) parser.add_argument( "--peft_ckpt_path", type=str, default="/home/LLM/DB-GPT-Hub/llama_adapter/qlora_32_lr_2e4_drop1e1/checkpoint-500", ..... "