Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions torchtitan_neuron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
core torchtitan. Neuron recipes select them by converting the stock model
config (for example ``to_nki_moe_config`` for each model's NKI MoE).
"""

# Import torch before spmd_types: importing spmd_types first makes the torch_neuronx
# autoload re-import the partially initialized spmd_types (circular import).
import torch # noqa: F401, E402