AlibabaResearch / DAMO-ConvAI

DAMO-ConvAI: The official repository which contains the codebase for Alibaba DAMO Conversational AI.
MIT License
1.21k stars 186 forks source link

Permission denied happend when i try to run `sudo make eval` graphix-3b #49

Closed kanseaveg closed 1 year ago

kanseaveg commented 1 year ago

When i try to run evaluation, i just enter the sudo make eval command. When evaluating is finished, the scrits got some wrongs about:

Traceback (most recent call last):
  File "seq2seq/run_seq2seq_eval.py", line 284, in <module>
    main()
  File "seq2seq/run_seq2seq_eval.py", line 252, in main
    metric_key_prefix="eval",
  File "/app/seq2seq/utils/trainer.py", line 104, in evaluate
    output.metrics.update(self.compute_metrics(eval_preds))
  File "/app/seq2seq/utils/spider.py", line 142, in _compute_metrics
    return self.metric.compute(predictions=predictions, references=references)
  File "/opt/conda/lib/python3.7/site-packages/datasets/metric.py", line 419, in compute
    self.add_batch(**inputs)
  File "/opt/conda/lib/python3.7/site-packages/datasets/metric.py", line 465, in add_batch
    self._init_writer()
  File "/opt/conda/lib/python3.7/site-packages/datasets/metric.py", line 539, in _init_writer
    cache_file_name, filelock = self._create_cache_file()  # get ready
  File "/opt/conda/lib/python3.7/site-packages/datasets/metric.py", line 257, in _create_cache_file
    filelock.acquire(timeout=timeout)
  File "/opt/conda/lib/python3.7/site-packages/datasets/utils/filelock.py", line 273, in acquire
    self._acquire()
  File "/opt/conda/lib/python3.7/site-packages/datasets/utils/filelock.py", line 408, in _acquire
    fd = os.open(self._lock_file, open_mode)
PermissionError: [Errno 13] Permission denied: '/transformers_cache/metrics/spider/both/default_experiment-1-0.arrow.lock'

image

What happened to the evaluation process of official github code? Could you please help me to solve it?

I try to use these command below:

chmod 777 train_db_id
chmod 777 transformers_cache
chmod 777 wandb

When i just use make eval, it still gets the permission wrong error. So i try to use `sudo make eval, still error.

Could you please help me to solve the problem?

kanseaveg commented 1 year ago

I think it might be due to lack of write permissions.

huybery commented 1 year ago

Sorry, didn't encounter this problem, it seems to be related to your permission configuration.

kanseaveg commented 1 year ago

Thank you.