Method
__init__
(
self,
config: InferenceModelConfig,
)
Source from the content-addressed store, hash-verified
| 17 | |
| 18 | class TinkerModel(BaseInferenceModel): |
| 19 | def __init__( |
| 20 | self, |
| 21 | config: InferenceModelConfig, |
| 22 | ) -> None: |
| 23 | super().__init__(config) |
| 24 | self.model_version = -1 |
| 25 | self.synchronizer = Synchronizer.get_actor(namespace=ray.get_runtime_context().namespace) |
| 26 | self.model = None |
| 27 | self.model_path = config.model_path |
| 28 | |
| 29 | async def _initialize_tokenizer(self) -> None: |
| 30 | """Initialize the tokenizer.""" |
Callers
nothing calls this directly
Tested by
no test coverage detected