You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.虚拟机:PyTorch 2.1.0 Python 3.10(ubuntu22.04) Cuda 12.1
2.新建了python虚拟环境,并指定python版本为3.11.10.
3.之后按照mcts文档下载相应版本的包
4.安装fairseq:git clone→ cd fairseq→ 按照文档下载特定版本的fairseq→pip install 特定的版本
5.显示安装成功,但有报错和警告: DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 Installing collected packages: fairseq Attempting uninstall: fairseq Found existing installation: fairseq 1.0.0a0+06c65c8 Uninstalling fairseq-1.0.0a0+06c65c8: Successfully uninstalled fairseq-1.0.0a0+06c65c8 Successfully installed fairseq-1.0.0a0+06c65c8 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: There was an error checking the latest version of pip.
(forst) root@autodl-container-98e944be4b-90b41232:/fairseq# python -c "import fairseq; print(fairseq.version)"
common - <dataclasses._MISSING_TYPE object at 0x7fb1f649c290>
Traceback (most recent call last):
File "", line 1, in
File "/root/fairseq/fairseq/init.py", line 31, in
hydra_init()
File "/root/fairseq/fairseq/dataclass/initialize.py", line 25, in hydra_init
cs.store(name=k, node=v)
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/hydra/core/config_store.py", line 85, in store
cfg = OmegaConf.structured(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/omegaconf/omegaconf.py", line 140, in structured
return OmegaConf.create(obj, parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/omegaconf/omegaconf.py", line 177, in create
return OmegaConf._create_impl(obj=obj, parent=parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/omegaconf/omegaconf.py", line 245, in _create_impl
format_and_raise(node=None, key=None, value=None, msg=str(e), cause=e)
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/omegaconf/_utils.py", line 694, in format_and_raise
_raise(ex, cause)
File "/root/miniconda3/envs/forst/lib/python3.11/site-packages/omegaconf/_utils.py", line 610, in _raise
raise ex # set end OC_CAUSE=1 for full backtrace
^^^^^^^^
omegaconf.errors.ValidationError: Object of unsupported type: '_MISSING_TYPE'
full_key:
reference_type=None
object_type=None
1.虚拟机:PyTorch 2.1.0 Python 3.10(ubuntu22.04) Cuda 12.1
2.新建了python虚拟环境,并指定python版本为3.11.10.
3.之后按照mcts文档下载相应版本的包
4.安装fairseq:git clone→ cd fairseq→ 按照文档下载特定版本的fairseq→pip install 特定的版本
5.显示安装成功,但有报错和警告:
DEPRECATION: omegaconf 2.0.6 has a non-standard dependency specifier PyYAML>=5.1.*. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063 Installing collected packages: fairseq Attempting uninstall: fairseq Found existing installation: fairseq 1.0.0a0+06c65c8 Uninstalling fairseq-1.0.0a0+06c65c8: Successfully uninstalled fairseq-1.0.0a0+06c65c8 Successfully installed fairseq-1.0.0a0+06c65c8 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: There was an error checking the latest version of pip.
6.利用python -c "import fairseq; print(fairseq.version)"查询是否安装成功,报错如下:
7.显示错误如上,我对下载好的特定版本的fairseq的config配置文件进行了修改:
8.然后还是不行。
事实上在pip命令提示安装成功后,我就利用bash /root/mcts/scripts/simplification/data_process.sh命令尝试运行bpe.py和预处理文件,bpe文件可以正常运行输出,然后process文件就一开始缺少必要的依赖项,我按照提示下载了依赖项:omegaconf==2.0.6 和 hydra-core==1.0.7。之后,我又重新安装了fairseq,重新sh命令,这时候开始显示各种fairseq的依赖问题(命令行输出我已经找不到了,忘记记录了),我在chatgpt的指引下修改了config文件。但是一直还是不行,我刚才贴出的报错代码是在我修改了一番后的最新报错。
9.我的pip list:
10.我在怀疑是不是pip、python的版本太高导致,但是我觉得我实在是处理不了了,我可能写得不专业,因为我完全是小白,如有问题,请联系我。谢谢!
The text was updated successfully, but these errors were encountered: