(self, model_path)
| 138 | |
| 139 | class MiniCPMV: |
| 140 | def __init__(self, model_path) -> None: |
| 141 | self.model = AutoModel.from_pretrained(model_path, trust_remote_code=True).to(dtype=torch.bfloat16) |
| 142 | self.tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True) |
| 143 | self.model.eval().cuda() |
| 144 | |
| 145 | def chat(self, input): |
| 146 | try: |
nothing calls this directly
no outgoing calls
no test coverage detected