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

Error when running the training demo #44

Open
Ramseyous0109 opened this issue Mar 28, 2024 · 1 comment
Open

Error when running the training demo #44

Ramseyous0109 opened this issue Mar 28, 2024 · 1 comment

Comments

@Ramseyous0109
Copy link

Ramseyous0109 commented Mar 28, 2024

Error occurred when running the training demo in README.md:

Traceback (most recent call last):
  File "/home/mt/buaa/try_musa/classification/train_written_network.py", line 64, in <module>
    loss = criterion(outputs, labels.to(device))
  File "/home/mt/buaa/anaconda3/envs/try_musa/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/mt/buaa/anaconda3/envs/try_musa/lib/python3.10/site-packages/torch/nn/modules/loss.py", line 1174, in forward
    return F.cross_entropy(input, target, weight=self.weight,
  File "/home/mt/buaa/anaconda3/envs/try_musa/lib/python3.10/site-packages/torch/nn/functional.py", line 3029, in cross_entropy
    return torch._C._nn.cross_entropy_loss(input, target, weight, _Reduction.get_enum(reduction), ignore_index, label_smoothing)
RuntimeError: MUSA error: invalid device function

The installation of MUSA and torch-musa is successful, versions listed:

  • System: Ubuntu 20.04
  • GPU: S80
  • MUSA-SDK: rc2.0.0
  • MUSA_Toolkit: rc2.0.0
  • muDNN: rc2.4.0
  • torch_musa-1.1.0-cp310
@Ramseyous0109 Ramseyous0109 changed the title Error when mapping the model to device "musa" Error when running the training demo Mar 29, 2024
@hanhaowen-mt
Copy link
Collaborator

hanhaowen-mt commented Apr 1, 2024

It seems that the driver is not installed properly. You can try to use the developer version of Docker

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