MiniCPM-V icon indicating copy to clipboard operation
MiniCPM-V copied to clipboard

Questions about resource configuration

Open uuhc opened this issue 1 year ago • 3 comments

Hi, if I want to achieve the same effect as Online Demo, what resource configuration should I use?

uuhc avatar May 22 '24 02:05 uuhc

MiniCPM-Llama3-V 2.5 need at least 17GB GPU memory, NVIDIA RTX 3090 24GB is ok. The int4 version need 9GB GPU memory.

iceflame89 avatar May 22 '24 05:05 iceflame89

I can see that this runs on MPS - but then I noticed this issue when its running - - IM on M1, and usually run things fairlwell like stable diffusion / fooocus - Not sure why this falling back to CPU

packages/transformers/generation/stopping_criteria.py:149: UserWarning: The operator 'aten::isin.Tensor_Tensor_out' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/mps/MPSFallback.mm:13.) is_done = torch.isin(input_ids[:, -1], self.eos_token_id.to(input_ids.device))

clearsitedesigns avatar May 22 '24 23:05 clearsitedesigns

I had to force a pytorch override - then I got it to work, how do you switch languages it replied in Chinese:)

你如何切换它用中文回复的语言:)

clearsitedesigns avatar May 22 '24 23:05 clearsitedesigns

Nice, you can try asking the question directly in Chinese, which usually makes it answer in Chinese. 如果有更多问题,欢迎继续提问

Cuiunbo avatar May 23 '24 09:05 Cuiunbo