JulesBelveze / bert-squeeze

🛠️ Tools for Transformers compression using PyTorch Lightning ⚡
https://julesbelveze.github.io/bert-squeeze/
78 stars 10 forks source link

Logging issue when `accumulation_steps` > 1 #7

Closed JulesBelveze closed 2 years ago

JulesBelveze commented 2 years ago

When train.accumulation_steps > 1 it causes the first accumulation_steps steps to try to log the same thing as self.global_step is still 0.

[2021-10-27 08:35:47,478][neptune.new.internal.operation_processors.async_operation_processor][ERROR] - Error occurred during asynchronous operation processing: X-coordinates (step) must be strictly increasing for series attribute: train/acc. Invalid point: 0.0