KeyError: 'LOCAL_RANK'

Author: Athon-cyberCreated Feb 28, 2025Updated Nov 25, 2025

Giving the command "--local_rank 0 " while i still got the error "KeyError: 'LOCAL_RANK'". How can I solve this issue? my torch version is 2.0.0+cu118

Source: microsoft/Swin-Transformer