quark-torch-install
Purpose
Install the correct PyTorch build for the user's accelerator backend. PyTorch must be installed before Quark because Quark depends on PyTorch at both install time and runtime. Getting this wrong — installing the CPU build on a GPU machine, or mixing a CUDA-built PyTorch with a ROCm environment — causes cryptic failures that are hard to diagnose later. This skill exists separately from quark-install so that PyTorch setup has a clear, single-responsibility boundary.
Inputs
env_context.jsonwith detected accelerator info
Outputs: pytorch_install_result.json
Records the installed PyTorch build, accelerator backend tag, and verification status.