This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import argparse | |
| import os | |
| import torch | |
| # ---Configuration--- | |
| # Default path can still be overridden via --file at runtime. | |
| FILE_PATH = "model.pth" | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import torch | |
| # Check if CUDA is available | |
| if torch.cuda.is_available(): | |
| # Get the version of CUDA that PyTorch is using | |
| cuda_version = torch.version.cuda | |
| print(f"PyTorch CUDA version: {cuda_version}") | |
| # Get the number of available CUDA devices | |
| num_devices = torch.cuda.device_count() |