torchrun Keyboard Shortcuts

Complete torchrun keyboard shortcuts and commands reference — 12 shortcuts across 2 categories. Quick reference cheat sheet for Windows & Mac.

Core Flags (6)

ShortcutActionDescription
torchrun script.pySingle-GPU runRun a script with the default single-process, single-GPU configuration.
--nproc_per_node=NProcesses per nodeNumber of processes - typically one per GPU - to launch on each node.
--nnodes=NNode countTotal number of nodes participating in the distributed job.
--node_rank=NNode rankThis node's rank (0-indexed) among all participating nodes; set differently on each machine.
--master_addr=IPMaster addressIP address of the rank-0 node that other workers connect to for coordination.
--master_port=PORTMaster portTCP port on the master node used for the rendezvous connection.

Rendezvous & Elasticity (6)

ShortcutActionDescription
--rdzv_backend=c10dRendezvous backendCoordination backend for elastic launches; c10d is the recommended default.
--rdzv_id=JOBIDRendezvous IDUnique identifier for the job, shared by all nodes so they can find each other.
--rdzv_endpoint=IP:PORTRendezvous endpointAddress workers use to join the rendezvous, an alternative to setting master_addr/master_port.
--standaloneStandalone modeRun a single-node job without needing any rendezvous configuration.
--max_restarts=NMax restartsMaximum number of worker group restarts allowed before the job is marked failed.
--log_dir=PATHLog directoryDirectory where per-worker stdout and stderr logs are written.
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Frequently Asked Questions

What are the most useful torchrun keyboard shortcuts?

The most essential torchrun shortcuts are: torchrun script.py (Single-GPU run), --nproc_per_node=N (Processes per node), --nnodes=N (Node count). These cover the most frequent actions and can significantly speed up your workflow.

How many keyboard shortcuts does torchrun have?

torchrun has 12 keyboard shortcuts across 2 categories on shortcut-tools.com.

How do I use torchrun commands?

These are command-line commands — type them in your terminal or console. Combine them with shell history search (Ctrl + R) and aliases to work even faster.

What is the torchrun shortcut for single-gpu run?

The torchrun shortcut for single-gpu run is torchrun script.py. Run a script with the default single-process, single-GPU configuration.

What Core Flags shortcuts does torchrun have?

torchrun includes 6 Core Flags shortcuts, including torchrun script.py (Single-GPU run) and --nproc_per_node=N (Processes per node). See the full list in the Core Flags section above.

What Rendezvous & Elasticity shortcuts does torchrun have?

torchrun includes 6 Rendezvous & Elasticity shortcuts, including --rdzv_backend=c10d (Rendezvous backend) and --rdzv_id=JOBID (Rendezvous ID). See the full list in the Rendezvous & Elasticity section above.

Can I combine torchrun shortcuts with other tools?

Yes — use My Stack to combine torchrun shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Related Shortcut Pages

NCCL Tests OpenMPI (mpirun) Slurm Jupyter Notebook Google Colab nvidia-smi (GPU)

Search 13,500+ shortcuts across 269 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about torchrun shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok