nemo_rl.models.megatron.memory_saver#
Module Contents#
Functions#
Allocation region to build the colocated inference model under. |
|
Back the colocated inference weights to CPU (no-op without torch_memory_saver). |
|
Restore the inference weights to their GPU addresses (no-op without torch_memory_saver). |
Data#
API#
- nemo_rl.models.megatron.memory_saver._INFERENCE_MODEL_OFFLOAD_TAG#
‘nemo_rl_megatron_inference_model’
- nemo_rl.models.megatron.memory_saver.inference_model_alloc_region() ContextManager[None][source]#
Allocation region to build the colocated inference model under.
Returns a CPU-backup-enabled torch_memory_saver region, or a null context.