LocalBackend
Attributes
attributenamestr= 'local'attributeConfigtype= LocalBackendConfigattributedtype= dtypeattributedevice= deviceattributetrust_remote_code= trust_remote_codeFunctions
func__init__(self, *, dtype='float32', device='auto', trust_remote_code=True) -> Noneparamselfparamdtypestr= 'float32'paramdevicestr= 'auto'paramtrust_remote_codebool= TrueReturns
Nonefunc_resolve_device(self) -> strparamselfReturns
strfuncprepare(self, *, model, run_dir) -> dict[str, Any]paramselfparammodeldict[str, Any]paramrun_dirstrReturns
dict[str, typing.Any]functeardown(self, handles) -> Noneparamselfparamhandlesdict[str, Any]Returns
None