MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / __init__

Method __init__

index/dense/models.py:65–67  ·  view source on GitHub ↗
(self, model_path)

Source from the content-addressed store, hash-verified

63# TCTColBERT model
64class TCTColBERT(nn.Module):
65 def __init__(self, model_path) -> None:
66 super(TCTColBERT, self).__init__()
67 self.model = BertModel.from_pretrained(model_path)
68
69 def forward(self, input_ids, attention_mask, **kwargs):
70 outputs = self.model(input_ids=input_ids, attention_mask=attention_mask).last_hidden_state

Callers

nothing calls this directly

Calls 2

from_pretrainedMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected