nemo_rl#

Subpackages#

Submodules#

Package Contents#

Functions#

_patch_nsight_file

Patch the nsight.py file to fix the context.py_executable assignment.

Data#

API#

nemo_rl.megatron_path#

None

nemo_rl._patch_nsight_file()[source]#

Patch the nsight.py file to fix the context.py_executable assignment.

Until this fix is upstreamed, we will maintain this patch here. This patching logic is only applied if the user intends to use nsys profiling which they enable with NRL_NSYS_WORKER_PATTERNS.

If enabled, will effectively apply the following patch in an idempotent manner:

https://github.com/ray-project/ray/compare/master…terrykong:ray:tk/nsight-py-exeutable-fix?expand=1

This hack works b/c the nsight plugin is not called from the main driver process, so as soon as nemo_rl is imported, the patch is applied and the source of the nsight.py module is up to date before the nsight.py is actually needed.