Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: cannot pickle '_thread.RLock' object #141

Open
Cynthia11281128 opened this issue Feb 17, 2025 · 1 comment
Open

TypeError: cannot pickle '_thread.RLock' object #141

Cynthia11281128 opened this issue Feb 17, 2025 · 1 comment

Comments

@Cynthia11281128
Copy link

I met an error when running evaluation.py:

Traceback (most recent call last):
File "evaluation.py", line 189, in
output = evaluation.evaluation()
File "evaluation.py", line 146, in evaluation
scores["chatgpt"] = self.eval_chatGPT(self.GPT)
File "evaluation.py", line 39, in eval_chatGPT
scores = p.map(self.chatgpt_eval.forward, data)
File "/home/ps/anaconda3/envs/llama_adapter_v2/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/ps/anaconda3/envs/llama_adapter_v2/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
File "/home/ps/anaconda3/envs/llama_adapter_v2/lib/python3.8/multiprocessing/pool.py", line 537, in _handle_tasks
put(task)
File "/home/ps/anaconda3/envs/llama_adapter_v2/lib/python3.8/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/home/ps/anaconda3/envs/llama_adapter_v2/lib/python3.8/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: cannot pickle '_thread.RLock' object

Does anyone have any idea?

@ymxyll
Copy link

ymxyll commented Feb 26, 2025

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants