Shortcuts

flash.core.serve.core.Servable

class flash.core.serve.core.Servable(*args, download_path=None, script_loader_cls=<class 'flash.core.serve.core.FlashServeScriptLoader'>)[source]

ModuleWrapperBase around a model object to enable serving at scale.

Create a Servable from either (LM, LOCATION) or (LOCATION,)

Parameters
  • *args – A model class and path to the asset file (url or local file path) OR a singular path to a torchscript asset which can be loaded without the model class definition.

  • download_path (Optional[Path]) – Optional url to download a model from.

Read the Docs v: 0.7.0
Versions
latest
stable
0.7.0
0.6.0
0.5.2
0.5.1
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0post1
docs-fix_typing
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.