Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-13970 RunInference V1
  3. BEAM-14368

Investigate load state_dict vs loading whole model

Details

    Description

      Loading pytorch model as whole has some issues with pickling. Investigate it with running some experiments. If the model size is too large, the current implementation of the RunInference for PyTorch would fail because of memory limits.

       

      1. We can pass the model class to the `load_model` of PyTorchModelLoader and load the model there. This wouldn't pickle the model object but would pickle the class and the model would be instantiated on the workers.

      Attachments

        Issue Links

          Activity

            People

              Anand Inguva Anand Inguva
              Anand Inguva Anand Inguva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 20m
                  2h 20m