MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / __init__

Method __init__

bmtools/models/t5_model.py:13–17  ·  view source on GitHub ↗
(self, huggingface_model_name: str)

Source from the content-addressed store, hash-verified

11 model: T5ForConditionalGeneration = None
12
13 def __init__(self, huggingface_model_name: str) -> None:
14 super().__init__()
15 self.model_name = huggingface_model_name
16 self.tokenizer = T5Tokenizer.from_pretrained(self.model_name)
17 self.model = T5ForConditionalGeneration.from_pretrained(self.model_name)
18
19 @property
20 def _llm_type(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected