Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,18 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|