Closed CanvaChen closed 3 months ago
came across the same issue
This issue does not provide a reproducible context and requires more information to help resolve it. If you still need assistance, please provide your code environment and running code to help us reproduce the issue
This issue does not provide a reproducible context and requires more information to help resolve it. If you still need assistance, please provide your code environment and running code to help us reproduce the issue
你好,可以看下这个issues里面的问题吗?https://github.com/OpenBMB/MiniCPM-V/issues/260
和这里的问题一样。LoRA后,模型推理失败,加载模型代码:
model = AutoPeftModelForCausalLM.from_pretrained(
path_to_adapter,
device_map="auto",
trust_remote_code=True).eval()
(1) 报错 File "/***/entry/minicpm-eval-lora.py", line 57, in
(2)若device_map = 'cuda',加载模型会失败,报OOM
device_map='auto'