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

Method __init__

src/retrieval/server.py:138–141  ·  view source on GitHub ↗
(self, model_path, max_length)

Source from the content-addressed store, hash-verified

136
137class Encoder:
138 def __init__(self, model_path, max_length):
139 self.max_length = max_length
140 self.tokenizer, self.model = load_model(model_path=model_path)
141 self.model.eval()
142
143 @torch.no_grad()
144 def encode(self, query_list: List[str]):

Callers

nothing calls this directly

Calls 2

evalMethod · 0.80
load_modelFunction · 0.70

Tested by

no test coverage detected