Inconsistent model training across different computers #11906
-
Hi, I have an issue with consistency when training a NER-model. This is the code I have been using:
The above code produces identical predictions on the 500 randomly produced strings when the code is run multiple times on the same computer. However, if this code is run on two separate computers, the results are different (on approximately every second prediction). I have run the tests inside a Docker container so the environments on the two computers are identical. Is this an expected behavior or a bug? Python 3.8.10 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Let me link in the reproducibility FAQ... In general, it's hard to ensure exact reproducibility between two different machines, though if you're using Docker to make sure everything is exactly the same I would expect consistent results. Is there any difference in the hardware or configuration of the two host machines? Are you using a GPU? |
Beta Was this translation helpful? Give feedback.
Let me link in the reproducibility FAQ...
In general, it's hard to ensure exact reproducibility between two different machines, though if you're using Docker to make sure everything is exactly the same I would expect consistent results. Is there any difference in the hardware or configuration of the two host machines? Are you using a GPU?