-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: "addmm_impl_cpu_" not implemented for 'Half' #185
Comments
I am getting the same error, but in CPU mode. It looks like your model is running on CPU as well. |
hi @akashdhruv , It is suppose to run on GPU. do you know why it only runs on CPU? |
I think you need to look into your system and torchrun configuration to figure out why GPU is not being identified. Is your PyTorch installed with GPU support? If yes maybe try,
|
I am using wsl 2 with ubuntu-22.04, this is the gpu information
![image](https://private-user-images.githubusercontent.com/1501241/299503854-fd964023-2df8-43ae-8d7e-96f7fc359f7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0OTg0ODQsIm5iZiI6MTcxODQ5ODE4NCwicGF0aCI6Ii8xNTAxMjQxLzI5OTUwMzg1NC1mZDk2NDAyMy0yZGY4LTQzYWUtOGQ3ZS05NmY3ZmMzNTlmN2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDAzNjI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmM3NjQzNjgxNzk1MTI2MzRhZTUyMmQxYWEzODZiZTdmNzU1ZTBjOTE3ZWE4Y2UwODZhODAwMzQ3NTk3ZTYzOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.nPMFoaWA9Mw5OeMpNeBvfqoehx-NmXGWr3o0qL6SrQQ)
when i run "sudo lshw -C display"
![image](https://private-user-images.githubusercontent.com/1501241/299504099-a244d7c9-4f5c-4dc4-8b24-403efa7644be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg0OTg0ODQsIm5iZiI6MTcxODQ5ODE4NCwicGF0aCI6Ii8xNTAxMjQxLzI5OTUwNDA5OS1hMjQ0ZDdjOS00ZjVjLTRkYzQtOGIyNC00MDNlZmE3NjQ0YmUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTZUMDAzNjI0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWUyMTBmYmMxOWEwZDk3NmIwN2U4NTljM2ZiNmFkMzdiZWExMzY0ZDg0NjRjNmVjMzIyMWUyMmI0NDA5MDMxNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.84n9Kr5qd7GTCQFCPthFGkS0jE-FyCAl0QcHH5rDKy8)
I install torch using this command
pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url
https://download.pytorch.org/whl/cu113
when i run command
"torchrun --nproc_per_node 1 example_instructions.py
--ckpt_dir CodeLlama-7b-Instruct/
--tokenizer_path CodeLlama-7b-Instruct/tokenizer.model
--max_seq_len 512 --max_batch_size 4",
it has error: RuntimeError: "addmm_impl_cpu_" not implemented for 'Half'.
These are full log:
The text was updated successfully, but these errors were encountered: