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

Incorrect path while running mcts_agent_training.sh #1

Open
sun123-cmd opened this issue May 9, 2024 · 8 comments
Open

Incorrect path while running mcts_agent_training.sh #1

sun123-cmd opened this issue May 9, 2024 · 8 comments

Comments

@sun123-cmd
Copy link

sun123-cmd commented May 9, 2024

Thanks for your nice wok!

I set BENCHMARK_DIR in both main.py as /home/sun/Desktop/ABC-RL/arithmetic ;
I set HOME_DIR in mcts_agent_training.sh as /home/sun/Desktop/ABC-RL

While runing mcts_agent_training.sh, log file shows:

1 /home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
2   warnings.warn(
3 /home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
4   warnings.warn(
5 Incorrect path. Rerun

I wonder which path may be incorrect and how to solve this issue.
Thanks and best wishes!

@sun123-cmd
Copy link
Author

sun123-cmd commented May 9, 2024

I tried to only run python main.py --ttsplit 5001 --library /home/sun/Desktop/ABC-RL/lib/7nm/7nm.lib --dumpdir /home/sun/Desktop/ABC-RL/ABC-RL_ICLR/dump --runID 15001directly at the path of ICLR/src, failed same as follows:

/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Incorrect path. Rerun

@animeshbchowdhury
Copy link
Contributor

Can you modify the following in mcts_agent_training.sh?

--library ${HOME_DIR}/ABC_RL_ICLR/lib/7nm/7nm.lib. This should resolve it.

@sun123-cmd
Copy link
Author

Can you modify the following in mcts_agent_training.sh?

--library ${HOME_DIR}/ABC_RL_ICLR/lib/7nm/7nm.lib. This should resolve it.

Thanks for your replay!
I tried as your method but failed same as the past.
It seems that under ${HOME_DIR}/ABC_RL_ICLR path doesn 't have /lib/7nm/7nm.lib file, just containing /dump and /src

@animeshbchowdhury
Copy link
Contributor

Can you retry now with the original traning.sh script? The .gitignore didn't allow to push the library file so it was missed during commit. I've added it now. Please check.

@sun123-cmd
Copy link
Author

Can you retry now with the original traning.sh script? The .gitignore didn't allow to push the library file so it was missed during commit. I've added it now. Please check.

Hello!
Thanks for your replay! I solved the path error as your advice. However, while running mcts_agent_training,sh script, I met following error:

 85 Traceback (most recent call last):
 86   File "/home/sun/Desktop/ABC-RL/ABC-RL_ICLR/src/main.py", line 266, in <module>
 87     r = Parallel(n_jobs=5,verbose=10)(delayed(collect_experiences)(trainer,idx) for idx in range(len(destRootAIGPaths[0]))    )
 88   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 2007, in __call__
 89     return output if self.return_generator else list(output)
 90   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 1650, in _get_outputs
 91     yield from self._retrieve()
 92   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 1754, in _retrieve
 93     self._raise_error_fast()
 94   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 1789, in _raise_error_fast
 95     error_job.get_result(self.timeout)
 96   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 745, in get_result
 97     return self._return_or_raise()
 98   File "/home/sun/miniconda3/envs/abcrl/lib/python3.9/site-packages/joblib/parallel.py", line 763, in _return_or_raise
 99     raise self._result
100 AttributeError: 'abc_py.AbcInterface' object has no attribute 'write'

I wonder whether this error is caused by my abc_py install or our source codes? In abc_py repo, it seems that no one has met this issue~

@animeshbchowdhury
Copy link
Contributor

I added the functionality in my abc_py. Can you use this meanwhile?

abc_rl_dependency: https://drive.google.com/file/d/16DlMYZqBHb07Wi0p9sGES-MW3yyMOJvz/view?usp=drive_link

I need to push this code into the repository and clean it up. Thanks for your patience.

@sun123-cmd
Copy link
Author

I added the functionality in my abc_py. Can you use this meanwhile?

abc_rl_dependency: https://drive.google.com/file/d/16DlMYZqBHb07Wi0p9sGES-MW3yyMOJvz/view?usp=drive_link

I need to push this code into the repository and clean it up. Thanks for your patience.

Thank you! I can run mcts_agent_training.sh with your new dependency!
Here is my conda env, hopes I can help other developers run your code:
https://drive.google.com/file/d/1eleYv19AmxE5-WRhlFjsvAGvTHRyq96j/view?usp=drive_link

@animeshbchowdhury
Copy link
Contributor

Thanks @sun123-cmd. Appreciate this.

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