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

Method _load_models

trl/inference.py:26–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self._load_models()
25
26 def _load_models(self):
27 self.model = blip3oQwenForInferenceLM.from_pretrained(self.config.model_path, torch_dtype=self.config.dtype).to(self.device)
28 self.tokenizer = AutoTokenizer.from_pretrained(self.config.model_path)
29
30 def generate_image(self, prompt: str) -> Image.Image:
31

Callers 1

__init__Method · 0.95

Calls 1

from_pretrainedMethod · 0.80

Tested by

no test coverage detected