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

如何不使用CUDA运行 #31

Open
GaoZhipengCN opened this issue Jun 17, 2024 · 2 comments
Open

如何不使用CUDA运行 #31

GaoZhipengCN opened this issue Jun 17, 2024 · 2 comments

Comments

@GaoZhipengCN
Copy link

./decode.sh
INFO:main:import user_dir: /Users/gao/TeleSpeech-ASR/data2vec_dialect
Traceback (most recent call last):
File "/Users/gao/TeleSpeech-ASR/data2vec_dialect/run_scripts/../infer.py", line 464, in hydra_main
distributed_utils.call_main(cfg, main)
File "/Users/gao/fairseq/fairseq/distributed/utils.py", line 404, in call_main
main(cfg, **kwargs)
File "/Users/gao/TeleSpeech-ASR/data2vec_dialect/run_scripts/../infer.py", line 408, in main
raise ValueError("CUDA not found; set cpu=True to run without CUDA")
ValueError: CUDA not found; set cpu=True to run without CUDA

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

@TTTdas
Copy link
Contributor

TTTdas commented Jun 17, 2024

在执行decode.sh脚本中,添加一行common.cpu=true \

@GaoZhipengCN
Copy link
Author

谢谢,已解决。
通过在infer.py中的def main(cfg: InferConfig) -> float:开头添加cfg.common.cpu = True

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