Skip to content
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

No GPU being used #580

Open
jueljust opened this issue Jun 18, 2024 · 2 comments
Open

No GPU being used #580

jueljust opened this issue Jun 18, 2024 · 2 comments

Comments

@jueljust
Copy link

`/home/gucci/miniconda3/lib/python3.11/site-packages/torch/utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
/home/gucci/miniconda3/lib/python3.11/site-packages/torch/nn/utils/weight_norm.py:30: UserWarning: torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.
warnings.warn("torch.nn.utils.weight_norm is deprecated in favor of torch.nn.utils.parametrizations.weight_norm.")
/home/gucci/miniconda3/lib/python3.11/site-packages/transformers/models/encodec/modeling_encodec.py:120: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad
(True), rather than torch.tensor(sourceTensor).
self.register_buffer("padding_total", torch.tensor(kernel_size - stride, dtype=torch.int64), persistent=False)

NVIDIA-SMI 535.104.12 Driver Version: 535.104.12 CUDA Version: 12.2
pytorch 2.1.0
python 3.11
ubuntu 20.04.6

torch.cuda.is_available() return true

but no process found by nvidia-smi
and the interface is very slow
using more than 300 seconds to generate 4 seconds wav
looks like no gpu acceleration

@jueljust
Copy link
Author

`+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.104.12 Driver Version: 535.104.12 CUDA Version: 12.2 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 Tesla P4 On | 00000000:01:00.0 Off | 0 |
| N/A 47C P8 7W / 75W | 0MiB / 7680MiB | 0% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| No running processes found |
+---------------------------------------------------------------------------------------+
`

@aristides86
Copy link

aristides86 commented Aug 11, 2024

Make sure you have NVidia Cuda drivers Installed. Then install required pytorch version from here DIRECTLY into the Bark folder. Similar to this pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124 --target c:\AI\Bark-Voice\ --upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants