[DOC-27] Add an multi-node example based on Accelerate#280
Open
lebrice wants to merge 18 commits intomila-iqia:masterfrom
Open
[DOC-27] Add an multi-node example based on Accelerate#280lebrice wants to merge 18 commits intomila-iqia:masterfrom
lebrice wants to merge 18 commits intomila-iqia:masterfrom
Conversation
2c31075 to
5eb4c79
Compare
obilaniu
reviewed
Jul 30, 2025
| { url = "https://files.pythonhosted.org/packages/24/fd/725b8e73ac2a50e78a4534ac43c6addf5c1c2d65380dd48a9169cc6739a9/yarl-1.20.1-cp313-cp313t-win32.whl", hash = "sha256:b121ff6a7cbd4abc28985b6028235491941b9fe8fe226e6fdc539c977ea1739d", size = 86591 }, | ||
| { url = "https://files.pythonhosted.org/packages/94/c3/b2e9f38bc3e11191981d57ea08cab2166e74ea770024a646617c9cddd9f6/yarl-1.20.1-cp313-cp313t-win_amd64.whl", hash = "sha256:541d050a355bbbc27e55d906bc91cb6fe42f96c01413dd0f4ed5a5240513874f", size = 93003 }, | ||
| { url = "https://files.pythonhosted.org/packages/b4/2d/2345fce04cfd4bee161bf1e7d9cdc702e3e16109021035dbb24db654a622/yarl-1.20.1-py3-none-any.whl", hash = "sha256:83b8eb083fe4683c6115795d9fc1cfaf2cbbefb19b3a1cb68f6527460f483a77", size = 46542 }, | ||
| ] |
Contributor
There was a problem hiding this comment.
Même principe ici - est-ce que les choses dans uv.lock sont d'une réelle importance à l'exemple?
btravouillon
suggested changes
Aug 8, 2025
|
|
||
| 1. Install UV from https://docs.astral.sh/uv | ||
|
|
||
| 2. On SLURM clusters where you do not have internet access on compute nodes, you need to first create the virtual environment: |
Contributor
There was a problem hiding this comment.
As per https://slurm.schedmd.com/faq.html#acronym, use "Slurm", not "SLURM".
Suggested change
| 2. On SLURM clusters where you do not have internet access on compute nodes, you need to first create the virtual environment: | |
| 2. On Slurm clusters where you do not have internet access on compute nodes, you need to first create the virtual environment: |
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
56c1a61 to
00ef6dd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Example of how to use accelerate with SLURM, based on https://github.com/huggingface/accelerate/blob/main/examples/by_feature/checkpointing.py
Compared to that example, here are the differences (benefits):
$SLURM_TMPDIRuv runin that directory to recreate the virtualenv in$SLURM_TMPDIRon each node in a multi-node job.safe_sbatchscript instead ofsbatch.Compared to
sbatch,safe_sbatchwill prevent submitting jobs if there are uncommittedchanges in the code repository.