Closed aarnphm closed 2 years ago
Should we make it just bentoml.pytorch.import_from_hub
so that it's easier for PyTorch/BentoML users to discover? also since they are gonna share the same runner implementation
then we should also merge bentoml.torchscript
to bentoml.pytorch.save_model(..., save_as_torchscript=True)
. Since the runner implementation are also the same.
I think this is a pretty low triage.
Currently there aren't a way to fully support torch hub. https://github.com/bentoml/BentoML/issues/2602 like this often comes up due to different torch hub imports implementation.
Proposal
Provides a
bentoml.torchhub
that create interaction between bentoml and torch hub modules.For runner,
to_runner()
will return a PyTorchRunner