Open ianbstewart opened 1 year ago
not sure what is the issue here but did:
output_dir = 'trained_model'
insted of output_dir = 'trained_model/'
model_name_or_path='distilroberta-base',
insted of model_name_or_path=pretrained_model.model.roberta.name_or_path,
and everything worked.
@ianbstewart we can close this since no activity here?
Thanks for the update! I get the same problem as before when I make the changes you specified. Might be a version difference? I am using fastcoref==2.1.5
.
you can try the latest on a brand new env? (fastcoref 2.1.6)
I do have the same problem as the OP using the latest version (2.1.6) and with the changes specified: RuntimeError: Could not infer dtype of NoneType
Another edge case I've found, this time with data that has no coreference. During training, when a batch of data is generated for the model, it looks like the
gold_clusters
feature is set toNone
when none of the data in the batch has any coreference, which causes errors downstream. Example below:Error: