IntelLabs / nlp-architect

A model library for exploring state-of-the-art deep learning topologies and techniques for optimizing Natural Language Processing neural networks
https://intellabs.github.io/nlp-architect
Apache License 2.0
2.94k stars 447 forks source link

bug: [an error occurred while running Q8BERT] #195

Closed Shinonome233 closed 3 years ago

Shinonome233 commented 3 years ago

hello, I come from #157. When I run the nlp-train for Q8BERT on MRPC benchmark, an error occurred. The code is like this

/.local/lib/python3.7/site-packages/sklearn/metrics/classification.py:1143: UndefinedMetricWarning: F-score is ill-defined and being set to 0.0 due to no predicted samples. File "/home/anaconda3/lib/python3.7/site-packages/nlp_architect/models/transformers/base_model.py", line 409, in update_best_model if i == 0 and f1 > best_dev: # dev set TypeError: '>' not supported between instances of 'NoneType' and 'int'

Could you please tell me whether this is a bug and how can I solve it. If so, could you fix it soon?

Thanks very much.

peteriz commented 3 years ago

Hi @Shinonome233 , are you using the latest version of NLP Architect from the master branch?

Shinonome233 commented 3 years ago

Hi @Shinonome233 , are you using the latest version of NLP Architect from the master branch?

I am using the version 0.5.5, since there is another error when I try to use 0.5.5.1, like OSError: Couldn't reach server to download pretrained model configuration file

rmovva commented 3 years ago

This error still seems to be occurring, even when using the latest version from master.