DB-GPT-Hub icon indicating copy to clipboard operation
DB-GPT-Hub copied to clipboard

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

Open Matter-Charles opened this issue 1 year ago • 1 comments

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']

Matter-Charles avatar Sep 05 '23 09:09 Matter-Charles

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", ..... "

wangzaistone avatar Sep 11 '23 01:09 wangzaistone