Closed fightingaaa closed 10 months ago
Try deleting this sentence "device_map='auto'"
Try deleting this sentence "device_map='auto'"
Thanks for your answer. But when I delete this sentence, It will show cuda has insufficient memory. my device is V100-32G , while inference with valley-7B
Could you try using my inference script? The file is valley/inference/run_valley.py
Could you try using my inference script? The file is valley/inference/run_valley.py
yes. I used the code:
python3 valley/inference/run_valley.py --model-name ../../weights/Valley2-7b/ --video-file sample_2.mp4 --query "Provide a brief description of the given video.\n<video>
Hello, By setting the model as "auto", the following error occurred. How to solve it? Thanks in advance.
code :
model = ValleyLlamaForCausalLM.from_pretrained(model_name, torch_dtype=torch.float16, device_map='auto')
Error: Expected all tensors to be on the same device, but found at least two devices, cuda:1 and cuda:0!
infos: model.hf_device_map: