-
Notifications
You must be signed in to change notification settings - Fork 835
Closed
Description
after i run ./scripts/run_chatbot.sh ./llama-hf-path/llama-7b-hf ./output_models/llama7b-lora-medical/ (same error when run app.py and other .sh files) , errors occur:
File "/gpfs/share/home/2101212970/transformers-main/src/transformers/tokenization_utils_base.py", line 1141, in unk_token_id
return self.convert_tokens_to_ids(self.unk_token)
File "/gpfs/share/home/2101212970/transformers-main/src/transformers/tokenization_utils_fast.py", line 250, in convert_tokens_to_ids
return self._convert_token_to_id_with_added_voc(tokens)
File "/gpfs/share/home/2101212970/transformers-main/src/transformers/tokenization_utils_fast.py", line 260, in _convert_token_to_id_with_added_voc
return self.unk_token_id
File "/gpfs/share/home/2101212970/transformers-main/src/transformers/tokenization_utils_base.py", line 1141, in unk_token_id
return self.convert_tokens_to_ids(self.unk_token)
File "/gpfs/share/home/2101212970/transformers-main/src/transformers/tokenization_utils_base.py", line 1021, in unk_token
return str(self._unk_token)
RecursionError: maximum recursion depth exceeded while getting the str of an object
[2023-04-10 12:35:05,027] [INFO] [launch.py:318:sigkill_handler] Killing subprocess 114376
[2023-04-10 12:35:05,028] [ERROR] [launch.py:324:sigkill_handler] ['/gpfs/share/home/2101212970/software/miniconda3/envs/lmflow/bin/python', '-u', 'examples/chatbot.py', '--local_rank=0', '--deepspeed', 'configs/ds_config_chatbot.json', '--model_name_or_path', './llama-hf-path/llama-7b-hf', '--lora_model_path', './output_models/llama7b-lora-medical/'] exits with return code = 1
if i make some changes like this:
import sys
sys.setrecursionlimit(10000) # 增加最大递归深度限制
it will show
Segmentation fault (core dumped)
Metadata
Metadata
Assignees
Labels
No labels