Several core modules (e.g., modelopt/torch/opt/plugins/megatron.py, distribute.py) currently rely on torch.load(weights_only=False) and pickle.loads for state management. While these are documented as internal use cases, they present RCE risks if checkpoints are sourced from untrusted environments (e.g., public hubs).
I suggest exploring safetensors or implementing strict safe_globals allowlists for future releases to harden the library against malicious model files.