ariG23498 HF Staff commited on
Commit
10d04fd
·
verified ·
1 Parent(s): 855e6e8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -1
README.md CHANGED
@@ -1 +1,18 @@
1
- This is a collection of scripts that showcase minimal examples of distributed programming.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ pretty_name: minimal-distribution
6
+ ---
7
+ This is a collection of scripts that showcase minimal examples of distributed programming.
8
+
9
+ To run an example on HF's infra use the following:
10
+ ```
11
+ hf jobs run --detach --flavor l4x4 ghcr.io/astral-sh/uv:debian /bin/bash -c \
12
+ "uv venv .venv --python 3.12 && \
13
+ source .venv/bin/activate && \
14
+ uv pip install --upgrade torch numpy && \
15
+ wget https://huggingface.co/datasets/ariG23498/distributed/raw/main/<SCRIPT_NAME> && \
16
+ torchrun --nproc-per-node=4 <SCRIPT_NAME>"
17
+ ```
18
+ Rememeber to replace the `<SCRIPT_NAME>` with the script that you want to run.