problem with running predictions from the quickstart docs #237
gyulaweber
started this conversation in
General
Replies: 1 comment
-
Hi there, Also, good catch for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I hope its the right place to ask; I was trying to follow the documentation: https://eole-nlp.github.io/eole/docs/quickstart, and everything worked fine, until
eole predict -model_path toy-ende/run/model -src toy-ende/src-test.txt -output toy-ende/pred_1000.txt -gpu_ranks 0 -verbose
(the documentation mentions -gpu everywhere which doesnt work anymore because now there's gpu_backend and gpu_ranks.
where I'm getting
Traceback (most recent call last):
File "/home/user/build3/eole/venv/bin/eole", line 8, in
sys.exit(main())
File "/home/user/build3/eole/eole/bin/main.py", line 34, in main
bin_cls.run(args)
File "/home/user/build3/eole/eole/bin/run/predict.py", line 42, in run
config = cls.build_config(args)
File "/home/user/build3/eole/eole/bin/run/init.py", line 42, in build_config
config = cls.config_class(**config_dict)
File "/home/user/build3/eole/venv/lib/python3.10/site-packages/pydantic/main.py", line 253, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
File "/home/user/build3/eole/eole/config/run.py", line 127, in _validate_predict_config
self._update_with_model_config()
File "/home/user/build3/eole/eole/config/run.py", line 153, in _update_with_model_config
model_config = build_model_config(config_dict.get("model", {}))
File "/home/user/build3/eole/venv/lib/python3.10/site-packages/pydantic/type_adapter.py", line 421, in validate_python
return self.validator.validate_python(
File "/home/user/build3/eole/eole/config/models.py", line 698, in encoder_decoder_type
data["encoder"].encoder_type = "transformer"
AttributeError: 'dict' object has no attribute 'encoder_type'
I'm using pyenv (python 3.10.17) because the system versions doesnt work, and venv.
Also I'm on the most recent commit on main:
commit 9e559f3 (HEAD -> main, origin/main, origin/HEAD)
Author: Vincent Nguyen vince62s@yahoo.com
Date: Fri Apr 25 17:40:08 2025 +0200
can someone pls point me to the right direction ?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions