Open alexhegit opened 1 year ago
The accelerate lib provides some functions to do the device_map automaticlly. This patch use infer_auto_device_map() to relpace the hard codes which splite the model by hand.
It works well with my two GPUs(6GB-RTX3060 + 12GB-RTX3060).
The accelerate lib provides some functions to do the device_map automaticlly. This patch use infer_auto_device_map() to relpace the hard codes which splite the model by hand.
It works well with my two GPUs(6GB-RTX3060 + 12GB-RTX3060).