add '__init__.py' to Inference folder and fix lockfile compatibility issue