(self, model_path)
| 162 | |
| 163 | class MiniCPMV2_5: |
| 164 | def __init__(self, model_path) -> None: |
| 165 | self.model = AutoModel.from_pretrained(model_path, trust_remote_code=True).to(dtype=torch.float16) |
| 166 | self.tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) |
| 167 | self.model.eval().cuda() |
| 168 | |
| 169 | def chat(self, input): |
| 170 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected