MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / __init__

Method __init__

inference.py:35–38  ·  view source on GitHub ↗
(self, config: T2IConfig)

Source from the content-addressed store, hash-verified

33
34class TextToImageInference:
35 def __init__(self, config: T2IConfig):
36 self.config = config
37 self.device = torch.device(config.device)
38 self._load_models()
39
40 def _load_models(self):
41 self.model = blip3oQwenForInferenceLM.from_pretrained(self.config.model_path, torch_dtype=self.config.dtype).to(self.device)

Callers

nothing calls this directly

Calls 2

_load_modelsMethod · 0.95
deviceMethod · 0.45

Tested by

no test coverage detected