C:\Users\cast\.conda\envs\AiTest001\python.exe "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py" C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\utils\modeling.py:1405: UserWarning: Current model requires 1811942784 bytes of buffer for offloaded layers, which seems does not fit any GPU's remaining memory. If you are experiencing a OOM later, please consider using offload_buffers=True. warnings.warn( Loading checkpoint shards: 100%|██████████| 4/4 [00:02<00:00, 1.37it/s] Some parameters are on the meta device device because they were offloaded to the cpu. You shouldn't move a model that is dispatched using accelerate hooks. Traceback (most recent call last): File "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py", line 74, in <module> model.to(device) File "C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\big_modeling.py", line 456, in wrapper raise RuntimeError("You can't move a model that has some modules offloaded to cpu or disk.") RuntimeError: You can't move a model that has some modules offloaded to cpu or disk.
理解问题C:\Users\cast\.conda\envs\AiTest001\python.exe "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py" C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\utils\modeling.py:1405: UserWarning: Current model requires 1811942784 bytes of buffer for offloaded layers, which seems does not fit any GPU's remaining memory. If you are experiencing a OOM later, please consider using offload_buffers=True. warnings.warn( Loading checkpoint shards: 100%|██████████| 4/4 [00:02<00:00, 1.37it/s] Some parameters are on the meta device device because they were offloaded to the cpu. You shouldn't move a model that is dispatched using accelerate hooks. Traceback (most recent call last): File "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py", line 74, in <module> model.to(device) File "C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\big_modeling.py", line 456, in wrapper raise RuntimeError("You can't move a model that has some modules offloaded to cpu or disk.") RuntimeError: You can't move a model that has some modules offloaded to cpu or disk.
已完成理解「C:\Users\cast\.conda\envs\AiTest001\python.exe "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py" C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\utils\modeling.py:1405: UserWarning: Current model requires 1811942784 bytes of buffer for offloaded layers, which seems does not fit any GPU's remaining memory. If you are experiencing a OOM later, please consider using offload_buffers=True. warnings.warn( Loading checkpoint shards: 100%|██████████| 4/4 [00:02<00:00, 1.37it/s] Some parameters are on the meta device device because they were offloaded to the cpu. You shouldn't move a model that is dispatched using accelerate hooks. Traceback (most recent call last): File "D:\PyCharm 2024.1.1\PycharmWorkPlace\pythonProject\01 test_Qwen2-2(success).py", line 74, in <module> model.to(device) File "C:\Users\cast\.conda\envs\AiTest001\lib\site-packages\accelerate\big_modeling.py", line 456, in wrapper raise RuntimeError("You can't move a model that has some modules offloaded to cpu or disk.") RuntimeError: You can't move a model that has some modules offloaded to cpu or disk.」
展开阅读网页