| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "torch==2.8.0", | |
| # ] | |
| # /// | |
| import platform | |
| import subprocess | |
| print(f"Platform: {platform.system()} {platform.machine()}") | |
| print(f"Python: {platform.python_version()}") | |
| # Check for MPS availability | |
| import torch | |
| print(f"PyTorch: {torch.__version__}") | |
| print(f"MPS available: {torch.backends.mps.is_available()}") |