Closed matteonardelli closed 1 year ago
Hi, the code is pretty old at this point and you will need to pin an older version of transformers (because I didn't put an upper bound in requirements.txt
). In #35, there are some reports that installing transformers==2.9.1
fixes the problem, and 2.1.1
was the latest version when the model was published in Nov 2019. Will close this in as duplicate of #35.
Hi there, when I try to start the detector (
python -m detector.server detector-base.pt
), I obtain the error:Missing key(s) in state_dict: "roberta.embeddings.position_ids".
.How can I solve this and play around with the detector? Thanks
Precondition I downloaded (and tried with) both detector-base.pt and detector-large.pt. Either way, I get the same error. I can see that in previous issues, people correctly started the detector, so maybe there is an issue with the .pt files I am downloading.
Full execution log