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

About command execution error #8

Open
kKKainga opened this issue Jun 23, 2024 · 0 comments
Open

About command execution error #8

kKKainga opened this issue Jun 23, 2024 · 0 comments

Comments

@kKKainga
Copy link

I got an error when running the following command python run.py predict serialization_dir/select_and_answer_model_answerer_for_musique_ans/model.tar.gz
serialization_dir/select_and_answer_model_selector_for_musique_ans/predictions/musique_ans_dev.jsonl
--output-file serialization_dir/select_and_answer_model_answerer_for_musique_ans/predictions/serialization_dir__select_and_answer_model_selector_for_musique_ans__predictions__musique_ans_dev.jsonl
--predictor inplace_text_ranker --batch-size 16 --cuda-device 0 --silent

Traceback (most recent call last):
File "run.py", line 35, in
main(prog="allennlp")
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/init.py", line 119, in main
args.func(args)
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 239, in _predict
manager.run()
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 211, in run
for model_input_json, result in zip(batch_json, self._predict_json(batch_json)):
File "/data/users/xh/experiments/musique-main/allennlp/allennlp/commands/predict.py", line 159, in _predict_json
results = self._predictor.predict_batch_json(batch_data)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 36, in predict_batch_json
predictions = self.predict_batch_instance(instances)
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 60, in predict_batch_instance
predictions = [{
File "/data/users/xh/experiments/musique-main/allennlp_lib/predictors/inplace_text_ranker.py", line 63, in
for index in output["predicted_ordered_indices"]
KeyError: 'predicted_ordered_indices'

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

1 participant