wsinfer.modellib.models#
Classes#
Functions#
|
|
|
Get a PyTorch Module with weights loaded. |
|
JIT-compile a model for inference. |
Module Contents#
- wsinfer.modellib.models.get_registered_model(name: str) wsinfer_zoo.client.HFModelTorchScript [source]#
- wsinfer.modellib.models.get_pretrained_torch_module(model: wsinfer_zoo.client.HFModelTorchScript | LocalModelTorchScript) torch.nn.Module [source]#
Get a PyTorch Module with weights loaded.
- wsinfer.modellib.models.jit_compile(model: torch.nn.Module) torch.jit.ScriptModule | torch.nn.Module | Callable [source]#
JIT-compile a model for inference.
A torchscript model may be JIT compiled here as well.