You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3f36d14
Browse filesBrowse the repository at this point in the historyBrowse files
<em>Note:</em> If you previously ran without checking out the submodules, you may need to rebuild virtual environments by setting <code>NRL_FORCE_REBUILD_VENVS=true</code>. See <ahref="#tips-and-tricks">Tips and Tricks</a>.
139
138
</td>
@@ -203,19 +202,6 @@ uv venv
203
202
> Please do not use `-p/--python` and instead allow `uv venv` to read it from `.python-version`.
204
203
> This ensures that the version of python used is always what we prescribe.
205
204
206
-
If working outside a container, it can help to build [flash-attn](https://github.com/Dao-AILab/flash-attention) and warm the uv cache before your first run.
207
-
```sh
208
-
bash tools/build-flash-attn-in-uv-cache.sh
209
-
```
210
-
> [!NOTE]
211
-
> On the first install, `flash-attn` can take a while to install (~45min with 48 CPU hyperthreads). After it is built once, it is cached in your uv's cache directory, making subsequent installs much quicker.
212
-
213
-
> [!TIP]
214
-
> The NeMo RL Dockerfile will warm the uv cache with flash-attn.
215
-
> See https://docs.nvidia.com/nemo/rl/latest/docker.html for instructions if you are looking for the NeMo RL container.
216
-
217
-
If successful, you should see `✅ flash-attn successfully added to uv cache`.
218
-
219
205
Use `uv run` to launch all commands. It handles pip installing implicitly and ensures your environment is up to date with our lock file.
220
206
> [!NOTE]
221
207
> - It is not recommended to activate the `venv`, and you should use `uv run <command>` instead to execute scripts within the managed environment.
Copy file name to clipboardExpand all lines: examples/configs/grpo_math_1B.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ policy:
84
84
85
85
megatron_cfg:
86
86
enabled: false
87
-
empty_unused_memory_level: 0
87
+
empty_unused_memory_level: 1# 1 is the minimum recommendation for RL since we almost always need to offload before beginning generation. Setting to 0 is faster, but you are more likely to run out of GPU memory.
Copy file name to clipboardExpand all lines: examples/configs/grpo_math_1B_megatron.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ policy:
77
77
78
78
megatron_cfg:
79
79
enabled: true
80
-
empty_unused_memory_level: 0
80
+
empty_unused_memory_level: 1# 1 is the minimum recommendation for RL since we almost always need to offload before beginning generation. Setting to 0 is faster, but you are more likely to run out of GPU memory.
Copy file name to clipboardExpand all lines: examples/configs/grpo_math_8B_megatron.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ policy:
30
30
31
31
megatron_cfg:
32
32
enabled: true
33
-
empty_unused_memory_level: 0
33
+
empty_unused_memory_level: 1# 1 is the minimum recommendation for RL since we almost always need to offload before beginning generation. Setting to 0 is faster, but you are more likely to run out of GPU memory.
34
34
converter_type: "LlamaForCausalLM"
35
35
tensor_model_parallel_size: 1
36
36
# On H100, can run with pp=1 for better performance with expandable segments (which is enabled by default)
0 commit comments