OpenNMT Forum

AssertionError: Found no NVIDIA driver on your system

while running serve.py i get error that i need to install nividia gpu,

(base) victor@mudaki:~/OpenNMT-py$ python server.py --ip $IP --port $PORT --url_root $URL_ROOT --config $CONFIG
Pre-loading model 100
[2019-09-14 15:46:38,348 INFO] Loading model 100
Traceback (most recent call last):
File “server.py”, line 129, in
debug=args.debug)
File “server.py”, line 24, in start
translation_server.start(config_file)
File “/home/victor/OpenNMT-py/onmt/translate/translation_server.py”, line 104, in start
self.preload_model(opt, model_id=model_id, **kwargs)
File “/home/victor/OpenNMT-py/onmt/translate/translation_server.py”, line 142, in preload_model
model = ServerModel(opt, model_id, **model_kwargs)
File “/home/victor/OpenNMT-py/onmt/translate/translation_server.py”, line 236, in init
self.load()
File “/home/victor/OpenNMT-py/onmt/translate/translation_server.py”, line 291, in load
os.devnull, “w”, “utf-8”))
File “/home/victor/OpenNMT-py/onmt/translate/translator.py”, line 28, in build_translator
fields, model, model_opt = load_test_model(opt)
File “/home/victor/OpenNMT-py/onmt/model_builder.py”, line 109, in load_test_model
opt.gpu)
File “/home/victor/OpenNMT-py/onmt/model_builder.py”, line 232, in build_base_model
model.to(device)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 432, in to
return self._apply(convert)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 208, in _apply
module._apply(fn)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 208, in _apply
module._apply(fn)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 208, in _apply
module._apply(fn)
[Previous line repeated 2 more times]
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 230, in _apply
param_applied = fn(param)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py”, line 430, in convert
return t.to(device, dtype if t.is_floating_point() else None, non_blocking)
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/cuda/init.py”, line 178, in _lazy_init
_check_driver()
File “/home/victor/anaconda3/lib/python3.7/site-packages/torch/cuda/init.py”, line 99, in _check_driver
http://www.nvidia.com/Download/index.aspx""")
AssertionError:
Found no NVIDIA driver on your system. Please check that you
have an NVIDIA GPU and installed a driver from
http://www.nvidia.com/Download/index.aspx

Most likely you requested a GPU but your system does not have one.