Open JohnGiorgi opened 2 years ago
Weird. @armancohan would you please check this out? I'm out until Sept 1.
I unable reproduce this and it seems to work fine for me.
For me, the content of the /content/scidocs/data/recomm-tmp/
doesn't have the model.tar.gz
file.
It should be able to load that model using the following files:
$ ls -alh data/recomm-tmp/
best.th
config.json
....
Is there a chance that you are using a different version of AllenNLP than what is in requirements
?
I faced the same issue a while ago. The recomm.jsonl file was not being read properly and the code threw a TypeError: ArrayField.empty_field: return type None is not a <class 'allennlp.data.fields.field.Field'>
. This, in turn, lead to no model being trained and consequently, model.tar.gz was not being saved in recomm-tmp. You could check if allennlp version is 0.9.0 and overrides==3.1.0, this solved the issue for me.
You could run the following command separately to check:
allennlp train ./data/recomm/train_similar_papers_model.json -s data/recomm-tmp --include-package scidocs.recommender
Hi! Trying to run SciDocs on my own model. I produce the three files of embeddings and then run the evaluation suite:
The first few tasks seem to work okay:
But when it hits the
recomm
task it errors out:Looks like it can't find
/content/scidocs/data/recomm-tmp/model.tar.gz
. Should this have been downloaded by the call toaws s3 sync
?