Skip to content

Installation

Sudhanshu edited this page Nov 11, 2026 · 1 revision

Installation — Windows, Linux and Hosted Notebooks

Requirements

  • Python 3.10+; Python 3.12 is a good option on Windows.
  • PyTorch 2.6 or newer compatible with your OS and accelerator.
  • transformers, peft, accelerate and safetensors for Qwen LoRA mode.
  • Network access for downloading pretrained Qwen weights (Qwen mode only).

Windows PowerShell

py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip check

The uploaded manifest is named llm_ddp_requirements_.txt. The publication package includes an identical requirements.txt alias because the original README and notebook refer to that conventional filename. No original dependency specification was modified.

For a GPU, install an official CUDA-enabled PyTorch package appropriate to the driver before installing optional ML libraries. torch>=2.6 alone does not guarantee a CUDA build.

Verify

python -c "import torch; print('Torch:',torch.__version__,'CUDA:',torch.cuda.is_available(),'GPUs:',torch.cuda.device_count())"

For a CPU-only first test, see Quick-Start. On Windows, PowerShell activation might be blocked by an execution policy; running .venv\Scripts\python.exe directly is an alternative to modifying policy settings.

Clone this wiki locally