Как исправить ошибку? user@fedora:~/Рабочий стол/mytransformer$ python main.py…
- User
Как исправить ошибку?
user@fedora:~/Рабочий стол/my_transformer$ python main.py Используется устройство: cuda (AMD Radeon Graphics) Обнаружена поддержка ROCm (AMD GPU). Traceback (most recent call last): File "/home/user/Рабочий стол/my_transformer/main.py", line 201, in logits, _ = model(x)
File "/home/user/.local/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1751, in _wrapped_call_impl return self._call_impl(*args, **kwargs) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/home/user/.local/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1762, in _call_impl return forward_call(*args, **kwargs) File "/home/user/Рабочий стол/my_transformer/main.py", line 115, in forward pos = torch.arange(0, T, dtype=torch.long, device=idx.device) # shape (T) RuntimeError: HIP error: invalid device function HIP kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect. For debugging consider passing AMD_SERIALIZE_KERNEL=3 Compile with TORCH_USE_HIP_DSA to enable device-side assertions. Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.