liguodongiot / llm-action

本项目旨在分享大模型相关技术原理以及实战经验。
https://www.zhihu.com/column/c_1456193767213043713
Apache License 2.0
9.1k stars 885 forks source link

ValueError: None is not in list #2

Closed wangzaistone closed 1 year ago

wangzaistone commented 1 year ago

参考知乎文章:https://zhuanlan.zhihu.com/p/622351059进入后,在当前llm-action这目录下的chatglm子目录代码已经没办法直接运行,相关文件不全,如ValueError: None is not in list。报多个错误。之前6月17日之前的还可以。是不是我进入的代码子目录不对吗? 具体 报错: ValueError: None is not in list [2023-07-03 13:53:45,648] [INFO] [launch.py:428:sigkill_handler] Killing subprocess 80489 [2023-07-03 13:53:45,649] [ERROR] [launch.py:434:sigkill_handler] ['/home/anaconda3/envs/chatglm/bin/python3.1', '-u', 'main.py', '--local_rank=0', '--deepspeed', 'deepspeed.json', '--do_train', '--train_file', '/home/zhaowang/ChatGLM/llm-action/chatglm/data/AdvertiseGen/train.json', '--test_file', '/home/zhaowang/ChatGLM/llm-action/chatglm/data/AdvertiseGen/dev.json', '--prompt_column', 'content', '--response_column', 'summary', '--overwrite_cache', '--model_name_or_path', '/home/model/chatglm2-6b', '--output_dir', '/home/zhaowang/ChatGLM/llm-action/chatglm/output/adgen-chatglm2-6b-ft-1e-4', '--overwrite_output_dir', '--max_source_length', '64', '--max_target_length', '64', '--per_device_train_batch_size', '1', '--per_device_eval_batch_size', '1', '--gradient_accumulation_steps', '2', '--predict_with_generate', '--num_train_epochs', '1', '--logging_steps', '10', '--save_steps', '300', '--learning_rate', '1e-4', '--fp16'] exits with return code = 1

liguodongiot commented 1 year ago

有可能是因为版本迭代太快,不兼容,切换到对应的commit 进行执行。

git clone https://github.com/THUDM/ChatGLM-6B.git
cd ChatGLM-6B
git checkout 8633db1