stanford_alpaca icon indicating copy to clipboard operation
stanford_alpaca copied to clipboard

How to load model in all gpus during generation?

Open Hins opened this issue 2 years ago • 0 comments
trafficstars

I have completed fine-tuning in 8 A100 gpus, when loading the ft model by "model=model.to("cuda")" it appeared OOM. And I have set 'os.environ['CUDA_VISIBLE_DEVICES'] = "0,1,2,3,4,5,6,7"' during generation.

Hins avatar Mar 20 '23 06:03 Hins