-
求助: 4060TI 16G 部署无论怎么调整max_split_size_mb都会在加载第四个checkpoint后报 CUDA out of memory. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
设置max_split_size_mb为214以下时,加载第三个checkpoint后报 ...Tried to allocate 214.00 MiB.... |
Beta Was this translation helpful? Give feedback.
-
解决了。。。使用的是cli_demo.py model = AutoModel.from_pretrained(MODEL_PATH, trust_remote_code=True, device_map="auto").eval() 这行的device_map="auto"删掉,不需要设置max_split_size_mb直接过了 |
Beta Was this translation helpful? Give feedback.
解决了。。。使用的是cli_demo.py
把
这行的device_map="auto"删掉,不需要设置max_split_size_mb直接过了