ssbuild / chatglm_finetuning

chatglm 6b finetuning and alpaca finetuning
1.54k stars 176 forks source link

AttributeError: module 'inspect' has no attribute 'ArgSpec' #255

Closed SeekPoint closed 1 year ago

SeekPoint commented 1 year ago

(gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:~/llm_dev/chatglm_finetuning$ python infer.py Traceback (most recent call last): File "/home/ub2004/llm_dev/chatglm_finetuning/infer.py", line 4, in from deep_training.data_helper import ModelArguments, TrainingArguments, DataArguments File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/init.py", line 4, in from .data_helper import DataHelper,load_tokenizer, load_configure File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/data_helper.py", line 8, in from fastdatasets import memory as MEMORY File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/fastdatasets/init.py", line 5, in from tfrecords.python.io import gfile File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/init.py", line 4, in from .python import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/init.py", line 6, in from .framework import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/init.py", line 5, in from .errors import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors.py", line 22, in from tfrecords.python.framework.errors_impl import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors_impl.py", line 21, in from tfrecords.python.util import tf_inspect File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/util/tf_inspect.py", line 38, in ArgSpec = _inspect.ArgSpec ^^^^^^^^^^^^^^^^ AttributeError: module 'inspect' has no attribute 'ArgSpec' (gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:~/llm_dev/chatglm_finetuning$ python data_utils.py Traceback (most recent call last): File "/home/ub2004/llm_dev/chatglm_finetuning/data_utils.py", line 10, in from deep_training.data_helper import DataHelper, ModelArguments, TrainingArguments, DataArguments File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/init.py", line 4, in from .data_helper import DataHelper,load_tokenizer, load_configure File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/deep_training/data_helper/data_helper.py", line 8, in from fastdatasets import memory as MEMORY File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/fastdatasets/init.py", line 5, in from tfrecords.python.io import gfile File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/init.py", line 4, in from .python import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/init.py", line 6, in from .framework import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/init.py", line 5, in from .errors import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors.py", line 22, in from tfrecords.python.framework.errors_impl import File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/framework/errors_impl.py", line 21, in from tfrecords.python.util import tf_inspect File "/home/ub2004/anaconda3/envs/gh_chatglm_finetuning/lib/python3.11/site-packages/tfrecords/python/util/tf_inspect.py", line 38, in ArgSpec = _inspect.ArgSpec ^^^^^^^^^^^^^^^^ AttributeError: module 'inspect' has no attribute 'ArgSpec' (gh_chatglm_finetuning) ub2004@ub2004-B85M-A0:~/llm_dev/chatglm_finetuning$

ssbuild commented 1 year ago

https://github.com/ssbuild/deep_training/issues/18