> This page is for NeMo-RL, version último (default).
> For other versions, use one of these documentation indexes:
> - último (default): https://es.nvidia-localization.ferndocs.com/es/nemo/rl/latest/llms.txt
> - 0.3.0: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-3-0/llms.txt
> - 0.2.1: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-2-1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://es.nvidia-localization.ferndocs.com/es/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://es.nvidia-localization.ferndocs.com/es/_mcp/server.

# nemo_rl.utils.nsys

## Contenido del Módulo

### Clases

| Nombre                                                 | Descripción                          |
| ------------------------------------------------------ | ------------------------------------ |
| [`ProfilablePolicy`](#nemorlutilsnsysprofilablepolicy) | Clase base para clases de protocolo. |

### Funciones

| Nombre                                                          | Descripción                                                                  |
| --------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [`maybe_gpu_profile_step`](#nemorlutilsnsysmaybegpuprofilestep) | Ninguno                                                                      |
| [`wrap_with_nvtx_name`](#nemorlutilsnsyswrapwithnvtxname)       | Un decorador para envolver una función con un rango NVTX con el nombre dado. |

### Datos

`NRL_NSYS_WORKER_PATTERNS`
`NRL_NSYS_PROFILE_STEP_RANGE`

### API

```python
nemo_rl.utils.nsys.NRL_NSYS_WORKER_PATTERNS
```

**Valor**: `get(...)`

```python
nemo_rl.utils.nsys.NRL_NSYS_PROFILE_STEP_RANGE
```

**Valor**: `get(...)`

```python
class nemo_rl.utils.nsys.ProfilablePolicy
```

**Bases**: `typing.Protocol`

```python
start_gpu_profiling() -> None
```

```python
stop_gpu_profiling() -> None
```

```python
nemo_rl.utils.nsys.maybe_gpu_profile_step(
    policy: nemo_rl.utils.nsys.ProfilablePolicy, step: int
)
```

```python
nemo_rl.utils.nsys.wrap_with_nvtx_name(name: str)
```

Un decorador para envolver una función con un rango NVTX con el nombre dado.