Skip to content

Instantly share code, notes, and snippets.

@mlazos
Created October 31, 2025 05:11
Show Gist options
  • Select an option

  • Save mlazos/50954c6c956e313d9a70fe9584f801b7 to your computer and use it in GitHub Desktop.

Select an option

Save mlazos/50954c6c956e313d9a70fe9584f801b7 to your computer and use it in GitHub Desktop.
File "/data/users/mlazos/pytorch/torch/_dynamo/convert_frame.py", line 791, in trace_frame
tracer = InstructionTranslator(
^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/mlazos/pytorch/torch/_dynamo/symbolic_convert.py", line 4461, in __init__
self.symbolic_stream_state = SymbolicStreamState()
^^^^^^^^^^^^^^^^^^^^^
File "/data/users/mlazos/pytorch/torch/_dynamo/variables/streams.py", line 76, in __init__
if torch.accelerator.is_available():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/mlazos/pytorch/torch/accelerator/__init__.py", line 90, in is_available
mod = torch.get_device_module(acc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/users/mlazos/pytorch/torch/__init__.py", line 2821, in get_device_module
raise RuntimeError(
torch._dynamo.exc.InternalTorchDynamoError: RuntimeError: Device 'maia' does not have a corresponding module registered as 'torch.maia'.
Set TORCHDYNAMO_VERBOSE=1 for the internal stack trace (please do this especially if you're reporting a bug to PyTorch). For even more developer context, set TORCH_LOGS="+dynamo"
To execute this test, run the following from the base repo dir:
PYTORCH_TEST_WITH_DYNAMO=1 python test/test_rename_privateuse1_to_existing_device.py TestRenamePrivateuseoneToExistingBackend.test_external_module_register_with_existing_backend
This message can be suppressed by setting PYTORCH_PRINT_REPRO_ON_FAILURE=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment